|
@@ -1,223 +1,554 @@
|
|
|
<template>
|
|
|
- <div>
|
|
|
- <van-nav-bar :title="$t('rollPrinting.name')" left-text="" left-arrow @click-left="onClickLeft"> </van-nav-bar>
|
|
|
- <equipmentTop></equipmentTop>
|
|
|
- <div style="padding: 12px 12px 0 12px">
|
|
|
- <van-row :gutter="12">
|
|
|
- <van-col span="8">
|
|
|
- <div class="modules">
|
|
|
- <div style="display: flex">
|
|
|
- <img class="img" src="../../assets/images/icon_sbzt1.png" alt="" />
|
|
|
- <div class="label">{{ $t("rollPrinting.state") }}</div>
|
|
|
- </div>
|
|
|
- <div class="value" style="color: #3fbf31">{{ $t("common.normal") }}</div>
|
|
|
- </div>
|
|
|
- </van-col>
|
|
|
- <van-col span="8">
|
|
|
- <div class="modules">
|
|
|
- <div style="display: flex">
|
|
|
- <img class="img" src="../../assets/images/icon_gzms1.png" alt="" />
|
|
|
- <div class="label">{{ $t("rollPrinting.mode") }}</div>
|
|
|
- </div>
|
|
|
- <div class="value" style="color: #ff8800">{{ $t("common.auto") }}</div>
|
|
|
- </div>
|
|
|
- </van-col>
|
|
|
- <van-col span="8">
|
|
|
- <div class="modules">
|
|
|
- <div style="display: flex">
|
|
|
- <img class="img" src="../../assets/images/icon_zdjpl1.png" alt="" />
|
|
|
- <div class="label">{{ $t("rollPrinting.frequencyOfMainMotor") }}</div>
|
|
|
- </div>
|
|
|
- <div class="value" style="color: black; font-weight: 700">300HZ</div>
|
|
|
- </div>
|
|
|
- </van-col>
|
|
|
- </van-row>
|
|
|
- </div>
|
|
|
- <commonCharts></commonCharts>
|
|
|
- <div style="margin: 12px">
|
|
|
- <van-row :gutter="12">
|
|
|
- <van-col span="8">
|
|
|
- <div class="submodule">
|
|
|
- <div class="top">
|
|
|
- <img class="imgOne" src="../../assets/images/icon_pyf.png" alt="" />
|
|
|
- <div class="point" style="background-color: #3fbf31"></div>
|
|
|
- </div>
|
|
|
- <div style="text-align: center; margin-top: 10px; font-size: 14px">1#{{ $t("rollPrinting.injectionValve") }}</div>
|
|
|
- </div>
|
|
|
- </van-col>
|
|
|
- <van-col span="8">
|
|
|
- <div class="submodule">
|
|
|
- <div class="top">
|
|
|
- <img class="imgOne" src="../../assets/images/icon_pyf.png" alt="" />
|
|
|
- <div class="point" style="background-color: #3fbf31"></div>
|
|
|
- </div>
|
|
|
- <div style="text-align: center; margin-top: 10px; font-size: 14px">2#{{ $t("rollPrinting.injectionValve") }}</div>
|
|
|
- </div>
|
|
|
- </van-col>
|
|
|
- <van-col span="8">
|
|
|
- <div class="submodule">
|
|
|
- <div class="top">
|
|
|
- <img class="imgOne" src="../../assets/images/icon_pyf.png" alt="" />
|
|
|
- <div class="point" style="background-color: #bbbbbb"></div>
|
|
|
- </div>
|
|
|
- <div style="text-align: center; margin-top: 10px; font-size: 14px">3#{{ $t("rollPrinting.injectionValve") }}</div>
|
|
|
- </div>
|
|
|
- </van-col>
|
|
|
- </van-row>
|
|
|
- </div>
|
|
|
- <div style="margin: 12px">
|
|
|
- <van-row :gutter="12">
|
|
|
- <van-col span="12">
|
|
|
- <div class="submodule" style="position: relative; display: flex">
|
|
|
- <img class="imgTwo" src="../../assets/images/icon_bpdj.png" alt="" />
|
|
|
- <div style="height: 50px; line-height: 50px; padding-left: 12px">{{ $t("rollPrinting.variableFrequencyMotor") }}</div>
|
|
|
- <div class="pointTwo" style="background-color: #3fbf31"></div>
|
|
|
- </div>
|
|
|
- </van-col>
|
|
|
- <van-col span="12">
|
|
|
- <div class="submodule" style="display: flex">
|
|
|
- <img class="imgTwo" src="../../assets/images/icon_pl.png" alt="" />
|
|
|
- <div>
|
|
|
- <div style="height: 25px; line-height: 25px; padding-left: 12px; color: black; font-weight: 700">300HZ</div>
|
|
|
- <div style="height: 25px; line-height: 25px; padding-left: 12px">{{ $t("rollPrinting.frequency") }}</div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </van-col>
|
|
|
- </van-row>
|
|
|
- </div>
|
|
|
- <div style="margin: 12px">
|
|
|
- <van-row :gutter="12">
|
|
|
- <van-col span="8">
|
|
|
- <div class="submodule">
|
|
|
- <div class="top">
|
|
|
- <img class="imgOne" src="../../assets/images/icon_jrdj.png" alt="" />
|
|
|
- <div class="point" style="background-color: #3fbf31"></div>
|
|
|
- </div>
|
|
|
- <div style="text-align: center; margin-top: 10px; font-size: 14px">{{ $t("rollPrinting.heatingMotor") }}</div>
|
|
|
- </div>
|
|
|
- </van-col>
|
|
|
- <van-col span="8">
|
|
|
- <div class="submodule">
|
|
|
- <div class="top">
|
|
|
- <div style="font-size: 26px; height: 41px">80℃</div>
|
|
|
- <img style="position: absolute; width: 16px; height: 16px; right: 0px; top: 0px" src="../../assets/images/icon_wdj.png" alt="" />
|
|
|
- </div>
|
|
|
- <div style="text-align: center; margin-top: 10px; font-size: 14px">{{ $t("rollPrinting.firstCurrentTemperature") }}</div>
|
|
|
- </div>
|
|
|
- </van-col>
|
|
|
- <van-col span="8">
|
|
|
- <div class="submodule">
|
|
|
- <div class="top">
|
|
|
- <div style="font-size: 26px; height: 41px">80℃</div>
|
|
|
- <img style="position: absolute; width: 16px; height: 16px; right: 0px; top: 0px" src="../../assets/images/icon_wdj.png" alt="" />
|
|
|
- </div>
|
|
|
- <div style="text-align: center; margin-top: 10px; font-size: 14px">{{ $t("rollPrinting.secondCurrentTemperature") }}</div>
|
|
|
- </div>
|
|
|
- </van-col>
|
|
|
- </van-row>
|
|
|
- </div>
|
|
|
- <div style="margin: 12px">
|
|
|
- <van-row :gutter="12">
|
|
|
- <van-col span="12">
|
|
|
- <div class="submodule" style="position: relative; display: flex">
|
|
|
- <img class="imgTwo" src="../../assets/images/icon_pydj.png" alt="" />
|
|
|
- <div style="height: 50px; line-height: 50px; padding-left: 12px">{{ $t("rollPrinting.fuelInjectionMotor") }}</div>
|
|
|
- <div class="pointTwo" style="background-color: #3fbf31"></div>
|
|
|
- </div>
|
|
|
- </van-col>
|
|
|
- <van-col span="12">
|
|
|
- <div class="submodule" style="position: relative; display: flex">
|
|
|
- <img class="imgTwo" src="../../assets/images/icon_ybdj.png" alt="" />
|
|
|
- <div style="height: 50px; line-height: 50px; padding-left: 12px">{{ $t("rollPrinting.oilPumpMotor") }}</div>
|
|
|
- <div class="pointTwo" style="background-color: #3fbf31"></div>
|
|
|
- </div>
|
|
|
- </van-col>
|
|
|
- </van-row>
|
|
|
- </div>
|
|
|
- <div style="margin: 12px">
|
|
|
- <van-row :gutter="12">
|
|
|
- <van-col span="12">
|
|
|
- <div class="submodule" style="position: relative; display: flex">
|
|
|
- <img class="imgTwo" src="../../assets/images/icon_xldj.png" alt="" />
|
|
|
- <div style="height: 50px; line-height: 50px; padding-left: 12px">{{ $t("rollPrinting.storageMotor") }}</div>
|
|
|
- <div class="pointTwo" style="background-color: #3fbf31"></div>
|
|
|
- </div>
|
|
|
- </van-col>
|
|
|
- <van-col span="12">
|
|
|
- <div class="submodule" style="position: relative; display: flex">
|
|
|
- <img class="imgTwo" src="../../assets/images/icon_lxdj.png" alt="" />
|
|
|
- <div style="height: 50px; line-height: 50px; padding-left: 12px">{{ $t("rollPrinting.centrifugalMotor") }}</div>
|
|
|
- <div class="pointTwo" style="background-color: #3fbf31"></div>
|
|
|
- </div>
|
|
|
- </van-col>
|
|
|
- </van-row>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+ <div>
|
|
|
+ <van-nav-bar
|
|
|
+ :title="$t('rollPrinting.name')"
|
|
|
+ left-text=""
|
|
|
+ left-arrow
|
|
|
+ @click-left="onClickLeft"
|
|
|
+ >
|
|
|
+ </van-nav-bar>
|
|
|
+ <equipmentTop></equipmentTop>
|
|
|
+ <div style="">
|
|
|
+ <div class="fermentator-header">
|
|
|
+ <div class="status">
|
|
|
+ <div class="img">
|
|
|
+ <img src="../../assets/images/icon_sbzt@2x.png" alt="" />
|
|
|
+ </div>
|
|
|
+ <div class="text">
|
|
|
+ <div class="label">{{$t('common.equipmentStatus')}}</div>
|
|
|
+ <div class="value" :style="equData.coils[0] ? 'color: #3fbf31' : 'color:#F54A45'">
|
|
|
+ {{equData.coils[0] ? $t('common.normal') : $t('common.offline')}}
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="mode">
|
|
|
+ <div class="img">
|
|
|
+ <img src="../../assets/images/icon_gzms@2x.png" alt="" />
|
|
|
+ </div>
|
|
|
+ <div class="text">
|
|
|
+ <div class="label">{{$t('common.operatingMode')}}</div>
|
|
|
+ <div class="value">{{equData.discreteInputs[3] ? $t('common.auto') : $t('common.manual')}}</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </div>
|
|
|
+ <!-- <commonCharts></commonCharts> -->
|
|
|
+ <!-- <div style="margin: 12px">
|
|
|
+ <van-row :gutter="12">
|
|
|
+ <van-col span="8">
|
|
|
+ <div class="submodule">
|
|
|
+ <div class="top">
|
|
|
+ <img
|
|
|
+ class="imgOne"
|
|
|
+ src="../../assets/images/icon_pyf.png"
|
|
|
+ alt=""
|
|
|
+ />
|
|
|
+ <div
|
|
|
+ class="point"
|
|
|
+ style="background-color: #3fbf31"
|
|
|
+ ></div>
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ style="
|
|
|
+ text-align: center;
|
|
|
+ margin-top: 10px;
|
|
|
+ font-size: 14px;
|
|
|
+ "
|
|
|
+ >
|
|
|
+ 1#{{ $t('rollPrinting.injectionValve') }}
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </van-col>
|
|
|
+ <van-col span="8">
|
|
|
+ <div class="submodule">
|
|
|
+ <div class="top">
|
|
|
+ <img
|
|
|
+ class="imgOne"
|
|
|
+ src="../../assets/images/icon_pyf.png"
|
|
|
+ alt=""
|
|
|
+ />
|
|
|
+ <div
|
|
|
+ class="point"
|
|
|
+ style="background-color: #3fbf31"
|
|
|
+ ></div>
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ style="
|
|
|
+ text-align: center;
|
|
|
+ margin-top: 10px;
|
|
|
+ font-size: 14px;
|
|
|
+ "
|
|
|
+ >
|
|
|
+ 2#{{ $t('rollPrinting.injectionValve') }}
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </van-col>
|
|
|
+ <van-col span="8">
|
|
|
+ <div class="submodule">
|
|
|
+ <div class="top">
|
|
|
+ <img
|
|
|
+ class="imgOne"
|
|
|
+ src="../../assets/images/icon_pyf.png"
|
|
|
+ alt=""
|
|
|
+ />
|
|
|
+ <div
|
|
|
+ class="point"
|
|
|
+ style="background-color: #bbbbbb"
|
|
|
+ ></div>
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ style="
|
|
|
+ text-align: center;
|
|
|
+ margin-top: 10px;
|
|
|
+ font-size: 14px;
|
|
|
+ "
|
|
|
+ >
|
|
|
+ 3#{{ $t('rollPrinting.injectionValve') }}
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </van-col>
|
|
|
+ </van-row>
|
|
|
+ </div> -->
|
|
|
+ <div style="margin: 12px">
|
|
|
+ <van-row :gutter="12">
|
|
|
+ <van-col span="12">
|
|
|
+ <div
|
|
|
+ class="submodule"
|
|
|
+ style="position: relative; display: flex"
|
|
|
+ >
|
|
|
+ <img
|
|
|
+ class="imgTwo"
|
|
|
+ src="../../assets/images/icon_bpdj.png"
|
|
|
+ alt=""
|
|
|
+ />
|
|
|
+ <div
|
|
|
+ style="
|
|
|
+ height: 50px;
|
|
|
+ line-height: 50px;
|
|
|
+ padding-left: 12px;
|
|
|
+ "
|
|
|
+ >
|
|
|
+ {{ $t('rollPrinting.variableFrequencyMotor') }}
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ class="pointTwo"
|
|
|
+ :style="equData.coils[14] ? 'background-color: #3fbf31' : 'background-color: #bbb'"
|
|
|
+ ></div>
|
|
|
+ </div>
|
|
|
+ </van-col>
|
|
|
+ <van-col span="12">
|
|
|
+ <div class="submodule" style="display: flex">
|
|
|
+ <img
|
|
|
+ class="imgTwo"
|
|
|
+ src="../../assets/images/icon_pl.png"
|
|
|
+ alt=""
|
|
|
+ />
|
|
|
+ <div>
|
|
|
+ <div
|
|
|
+ style="
|
|
|
+ height: 25px;
|
|
|
+ line-height: 25px;
|
|
|
+ padding-left: 12px;
|
|
|
+ color: black;
|
|
|
+ font-weight: 700;
|
|
|
+ "
|
|
|
+ >
|
|
|
+ {{equData.holdingRegisters[0]}}HZ
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ style="
|
|
|
+ height: 25px;
|
|
|
+ line-height: 25px;
|
|
|
+ padding-left: 12px;
|
|
|
+ "
|
|
|
+ >
|
|
|
+ {{ $t('rollPrinting.frequency') }}
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </van-col>
|
|
|
+ </van-row>
|
|
|
+ </div>
|
|
|
+ <div style="margin: 12px">
|
|
|
+ <van-row :gutter="12">
|
|
|
+ <van-col span="12">
|
|
|
+ <div
|
|
|
+ class="submodule"
|
|
|
+ style="position: relative; display: flex"
|
|
|
+ >
|
|
|
+ <img
|
|
|
+ class="imgTwo"
|
|
|
+ src="../../assets/images/icon_lxdj.png"
|
|
|
+ alt=""
|
|
|
+ />
|
|
|
+ <div
|
|
|
+ style="
|
|
|
+ height: 50px;
|
|
|
+ line-height: 50px;
|
|
|
+ padding-left: 12px;
|
|
|
+ "
|
|
|
+ >
|
|
|
+ {{ $t('rollPrinting.heatingMotor') }}
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ class="pointTwo"
|
|
|
+ :style="equData.coils[15] ? 'background-color: #3fbf31' : 'background-color: #bbb'"
|
|
|
+ ></div>
|
|
|
+ </div>
|
|
|
+ </van-col>
|
|
|
+ <van-col span="12">
|
|
|
+ <div class="submodule" style="display: flex">
|
|
|
+ <img
|
|
|
+ class="imgTwo"
|
|
|
+ src="@/assets/images/icon_clsj@2x.png"
|
|
|
+ alt=""
|
|
|
+ />
|
|
|
+ <div>
|
|
|
+ <div
|
|
|
+ style="
|
|
|
+ height: 25px;
|
|
|
+ line-height: 25px;
|
|
|
+ padding-left: 12px;
|
|
|
+ color: black;
|
|
|
+ font-weight: 700;
|
|
|
+ "
|
|
|
+ >
|
|
|
+ {{equData.holdingRegisters[3]}}
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ style="
|
|
|
+ height: 25px;
|
|
|
+ line-height: 25px;
|
|
|
+ padding-left: 12px;
|
|
|
+ "
|
|
|
+ >
|
|
|
+ {{ $t('assemblingMachine.yield') }}
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </van-col>
|
|
|
+ </van-row>
|
|
|
+ </div>
|
|
|
+ <!-- <div style="margin: 12px">
|
|
|
+ <van-row :gutter="12">
|
|
|
+ <van-col span="8">
|
|
|
+ <div class="submodule">
|
|
|
+ <div class="top">
|
|
|
+ <img
|
|
|
+ class="imgOne"
|
|
|
+ src="../../assets/images/icon_jrdj.png"
|
|
|
+ alt=""
|
|
|
+ />
|
|
|
+ <div
|
|
|
+ class="point"
|
|
|
+ style="background-color: #3fbf31"
|
|
|
+ ></div>
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ style="
|
|
|
+ text-align: center;
|
|
|
+ margin-top: 10px;
|
|
|
+ font-size: 14px;
|
|
|
+ "
|
|
|
+ >
|
|
|
+ {{ $t('rollPrinting.heatingMotor') }}
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </van-col>
|
|
|
+ <van-col span="8">
|
|
|
+ <div class="submodule">
|
|
|
+ <div class="top">
|
|
|
+ <div style="font-size: 26px; height: 41px">80℃</div>
|
|
|
+ <img
|
|
|
+ style="
|
|
|
+ position: absolute;
|
|
|
+ width: 16px;
|
|
|
+ height: 16px;
|
|
|
+ right: 0px;
|
|
|
+ top: 0px;
|
|
|
+ "
|
|
|
+ src="../../assets/images/icon_wdj.png"
|
|
|
+ alt=""
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ style="
|
|
|
+ text-align: center;
|
|
|
+ margin-top: 10px;
|
|
|
+ font-size: 14px;
|
|
|
+ "
|
|
|
+ >
|
|
|
+ {{ $t('rollPrinting.firstCurrentTemperature') }}
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </van-col>
|
|
|
+ <van-col span="8">
|
|
|
+ <div class="submodule">
|
|
|
+ <div class="top">
|
|
|
+ <div style="font-size: 26px; height: 41px">80℃</div>
|
|
|
+ <img
|
|
|
+ style="
|
|
|
+ position: absolute;
|
|
|
+ width: 16px;
|
|
|
+ height: 16px;
|
|
|
+ right: 0px;
|
|
|
+ top: 0px;
|
|
|
+ "
|
|
|
+ src="../../assets/images/icon_wdj.png"
|
|
|
+ alt=""
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ style="
|
|
|
+ text-align: center;
|
|
|
+ margin-top: 10px;
|
|
|
+ font-size: 14px;
|
|
|
+ "
|
|
|
+ >
|
|
|
+ {{ $t('rollPrinting.secondCurrentTemperature') }}
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </van-col>
|
|
|
+ </van-row>
|
|
|
+ </div>
|
|
|
+ <div style="margin: 12px">
|
|
|
+ <van-row :gutter="12">
|
|
|
+ <van-col span="12">
|
|
|
+ <div
|
|
|
+ class="submodule"
|
|
|
+ style="position: relative; display: flex"
|
|
|
+ >
|
|
|
+ <img
|
|
|
+ class="imgTwo"
|
|
|
+ src="../../assets/images/icon_pydj.png"
|
|
|
+ alt=""
|
|
|
+ />
|
|
|
+ <div
|
|
|
+ style="
|
|
|
+ height: 50px;
|
|
|
+ line-height: 50px;
|
|
|
+ padding-left: 12px;
|
|
|
+ "
|
|
|
+ >
|
|
|
+ {{ $t('rollPrinting.fuelInjectionMotor') }}
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ class="pointTwo"
|
|
|
+ style="background-color: #3fbf31"
|
|
|
+ ></div>
|
|
|
+ </div>
|
|
|
+ </van-col>
|
|
|
+ <van-col span="12">
|
|
|
+ <div
|
|
|
+ class="submodule"
|
|
|
+ style="position: relative; display: flex"
|
|
|
+ >
|
|
|
+ <img
|
|
|
+ class="imgTwo"
|
|
|
+ src="../../assets/images/icon_ybdj.png"
|
|
|
+ alt=""
|
|
|
+ />
|
|
|
+ <div
|
|
|
+ style="
|
|
|
+ height: 50px;
|
|
|
+ line-height: 50px;
|
|
|
+ padding-left: 12px;
|
|
|
+ "
|
|
|
+ >
|
|
|
+ {{ $t('rollPrinting.oilPumpMotor') }}
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ class="pointTwo"
|
|
|
+ style="background-color: #3fbf31"
|
|
|
+ ></div>
|
|
|
+ </div>
|
|
|
+ </van-col>
|
|
|
+ </van-row>
|
|
|
+ </div>
|
|
|
+ <div style="margin: 12px">
|
|
|
+ <van-row :gutter="12">
|
|
|
+ <van-col span="12">
|
|
|
+ <div
|
|
|
+ class="submodule"
|
|
|
+ style="position: relative; display: flex"
|
|
|
+ >
|
|
|
+ <img
|
|
|
+ class="imgTwo"
|
|
|
+ src="../../assets/images/icon_xldj.png"
|
|
|
+ alt=""
|
|
|
+ />
|
|
|
+ <div
|
|
|
+ style="
|
|
|
+ height: 50px;
|
|
|
+ line-height: 50px;
|
|
|
+ padding-left: 12px;
|
|
|
+ "
|
|
|
+ >
|
|
|
+ {{ $t('rollPrinting.storageMotor') }}
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ class="pointTwo"
|
|
|
+ style="background-color: #3fbf31"
|
|
|
+ ></div>
|
|
|
+ </div>
|
|
|
+ </van-col>
|
|
|
+ <van-col span="12">
|
|
|
+ <div
|
|
|
+ class="submodule"
|
|
|
+ style="position: relative; display: flex"
|
|
|
+ >
|
|
|
+ <img
|
|
|
+ class="imgTwo"
|
|
|
+ src="../../assets/images/icon_lxdj.png"
|
|
|
+ alt=""
|
|
|
+ />
|
|
|
+ <div
|
|
|
+ style="
|
|
|
+ height: 50px;
|
|
|
+ line-height: 50px;
|
|
|
+ padding-left: 12px;
|
|
|
+ "
|
|
|
+ >
|
|
|
+ {{ $t('rollPrinting.centrifugalMotor') }}
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ class="pointTwo"
|
|
|
+ style="background-color: #3fbf31"
|
|
|
+ ></div>
|
|
|
+ </div>
|
|
|
+ </van-col>
|
|
|
+ </van-row>
|
|
|
+ </div> -->
|
|
|
+ </div>
|
|
|
</template>
|
|
|
<script setup>
|
|
|
-import equipmentTop from "@/components/equipment-top.vue";
|
|
|
-import commonCharts from "./components/commonCharts.vue";
|
|
|
+import equipmentTop from '@/components/equipment-top.vue'
|
|
|
+import commonCharts from './components/commonCharts.vue'
|
|
|
+import * as echarts from 'echarts'
|
|
|
+import { useRoute } from "vue-router";
|
|
|
+import { ref, reactive, onMounted,getCurrentInstance } from 'vue'
|
|
|
+const proxy = getCurrentInstance().proxy
|
|
|
+const route = useRoute();
|
|
|
+const onClickLeft = () => history.go(-1)
|
|
|
+let equData = ref({
|
|
|
+ coils:[],
|
|
|
+ discreteInputs:[],
|
|
|
+ holdingRegisters:[],
|
|
|
+ inputRegisters:[],
|
|
|
+})
|
|
|
+const getData = () => {
|
|
|
+ // 获取数据
|
|
|
+ let listData = JSON.parse(localStorage.getItem('listData'))
|
|
|
+ for (let i = 0; i < listData.length; i++) {
|
|
|
+ const element = listData[i];
|
|
|
+ if(route.query.equipmentNo == element.equipmentNo){
|
|
|
+ equData.value = JSON.parse(element.data)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ console.log(equData.value)
|
|
|
+ setTimeout(() => {
|
|
|
+ if(route.name == '滚印机') {
|
|
|
+ getData()
|
|
|
+ }
|
|
|
+ }, 5000);
|
|
|
+}
|
|
|
+onMounted(() => {
|
|
|
+ getData()
|
|
|
+})
|
|
|
|
|
|
-const onClickLeft = () => proxy.$router.push("/main/working");
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
+.fermentator-header {
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ margin-top: 12px;
|
|
|
+ padding: 0 12px;
|
|
|
+ .status,
|
|
|
+ .mode {
|
|
|
+ width: 49%;
|
|
|
+ background: #fff;
|
|
|
+ padding: 12px;
|
|
|
+ box-sizing: border-box;
|
|
|
+ display: flex;
|
|
|
+ .label {
|
|
|
+ font-size: 14px;
|
|
|
+ color: #666;
|
|
|
+ }
|
|
|
+ .value {
|
|
|
+ font-weight: bold;
|
|
|
+ font-size: 16px;
|
|
|
+ color: #ff8800;
|
|
|
+ margin-top: 6px;
|
|
|
+ }
|
|
|
+ .img {
|
|
|
+ width: 50px;
|
|
|
+ height: 50px;
|
|
|
+ margin-right: 12px;
|
|
|
+ img {
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
.modules {
|
|
|
- background-color: white;
|
|
|
- padding: 12px;
|
|
|
- border-radius: 5px;
|
|
|
- .img {
|
|
|
- width: 20px;
|
|
|
- height: 20px;
|
|
|
- margin-right: 8px;
|
|
|
- }
|
|
|
- .label {
|
|
|
- font-size: 12px;
|
|
|
- color: #666;
|
|
|
- }
|
|
|
- .value {
|
|
|
- font-weight: bold;
|
|
|
- font-size: 16px;
|
|
|
- color: #ff8800;
|
|
|
- margin-top: 6px;
|
|
|
- text-align: center;
|
|
|
- height: 21px;
|
|
|
- line-height: 21px;
|
|
|
- }
|
|
|
+ background-color: white;
|
|
|
+ padding: 12px;
|
|
|
+ border-radius: 5px;
|
|
|
+ .img {
|
|
|
+ width: 20px;
|
|
|
+ height: 20px;
|
|
|
+ margin-right: 8px;
|
|
|
+ }
|
|
|
+ .label {
|
|
|
+ font-size: 12px;
|
|
|
+ color: #666;
|
|
|
+ }
|
|
|
+ .value {
|
|
|
+ font-weight: bold;
|
|
|
+ font-size: 16px;
|
|
|
+ color: #ff8800;
|
|
|
+ margin-top: 6px;
|
|
|
+ text-align: center;
|
|
|
+ height: 21px;
|
|
|
+ line-height: 21px;
|
|
|
+ }
|
|
|
}
|
|
|
.submodule {
|
|
|
- background-color: white;
|
|
|
- padding: 12px;
|
|
|
- border-radius: 5px;
|
|
|
- .top {
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- justify-content: center;
|
|
|
- position: relative;
|
|
|
- .imgOne {
|
|
|
- width: 41px;
|
|
|
- height: 41px;
|
|
|
- }
|
|
|
- .point {
|
|
|
- position: absolute;
|
|
|
- width: 12px;
|
|
|
- height: 12px;
|
|
|
- border-radius: 50px;
|
|
|
- right: 0px;
|
|
|
- top: 0px;
|
|
|
- }
|
|
|
- }
|
|
|
- .imgTwo {
|
|
|
- width: 50px;
|
|
|
- height: 50px;
|
|
|
- }
|
|
|
- .pointTwo {
|
|
|
- position: absolute;
|
|
|
- width: 12px;
|
|
|
- height: 12px;
|
|
|
- border-radius: 50px;
|
|
|
- right: 8px;
|
|
|
- top: 8px;
|
|
|
- }
|
|
|
+ background-color: white;
|
|
|
+ padding: 12px;
|
|
|
+ border-radius: 5px;
|
|
|
+ .top {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ position: relative;
|
|
|
+ .imgOne {
|
|
|
+ width: 41px;
|
|
|
+ height: 41px;
|
|
|
+ }
|
|
|
+ .point {
|
|
|
+ position: absolute;
|
|
|
+ width: 12px;
|
|
|
+ height: 12px;
|
|
|
+ border-radius: 50px;
|
|
|
+ right: 0px;
|
|
|
+ top: 0px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .imgTwo {
|
|
|
+ width: 50px;
|
|
|
+ height: 50px;
|
|
|
+ }
|
|
|
+ .pointTwo {
|
|
|
+ position: absolute;
|
|
|
+ width: 12px;
|
|
|
+ height: 12px;
|
|
|
+ border-radius: 50px;
|
|
|
+ right: 8px;
|
|
|
+ top: 8px;
|
|
|
+ }
|
|
|
}
|
|
|
</style>
|