|
@@ -70,22 +70,52 @@
|
|
|
<div v-if="!item.hasTodayAlarm" class="layer2 o-mr-5"
|
|
|
:class="{ deviceOn: item.eqeStatus === 1, layerLeft: item.hasTodayAlarm, }"></div>
|
|
|
</div>
|
|
|
- <!-- 所属商家 -->
|
|
|
- <span class="txt1 o-mt-10">{{ $t("device.affiliatedMerchants") }}:{{ item.adminUserName }}</span>
|
|
|
<!-- 机器编码 -->
|
|
|
<span class="txt1 o-mt-10">{{ $t("device.machineUniqueCode") }}:{{ item.clientId }}</span>
|
|
|
<!-- 锁机状态 -->
|
|
|
<span v-if="user.type < 1" class="txt1 o-mt-10">
|
|
|
- {{ $t("device.lockCondition") }}:{{ item.isBlocked ? $t("device.lockState") : $t("device.unLockState")
|
|
|
- }}
|
|
|
+ {{ $t("device.lockCondition") }}:{{ item.isBlocked ? $t("device.lockState") : $t("device.unLockState") }}
|
|
|
</span>
|
|
|
+ <!-- 温湿度 -->
|
|
|
+ <!-- <span v-if="(item.machineType == '0' || item.machineType == null) && item.equimentType != 'P30'"
|
|
|
+ class="txt1 o-mt-10">
|
|
|
+ <van-col class="word5" style="">{{ $t("device.furnaceHeadTemperature") + ':' +
|
|
|
+ item.furnaceTm
|
|
|
+ + $t("device.degree") }}</van-col>
|
|
|
+ <van-col class="word5" style="">{{ ' ' + $t("device.temperatureInCabinet") + ':' + item.cabinetTm
|
|
|
+ + $t("device.degree") }}</van-col>
|
|
|
+ <van-col class="word5" style="">{{ ' ' + $t("device.humidityInCabinet") + ':' + item.cabinetHd
|
|
|
+ + $t("device.humidity") }}</van-col>
|
|
|
+ </span> -->
|
|
|
+ <span v-if="(item.machineType == '0' || item.machineType == null) && item.equimentType != 'P30'"
|
|
|
+ class="txt1 o-mt-10">
|
|
|
+ {{ $t("device.furnaceHeadTemperature") + ':' +
|
|
|
+ item.furnaceTm
|
|
|
+ + $t("device.degree") }}
|
|
|
+ </span>
|
|
|
+ <span v-if="(item.machineType == '0' || item.machineType == null) && item.equimentType != 'P30'"
|
|
|
+ class="txt1 o-mt-10">
|
|
|
+ {{ $t("device.temperatureInCabinet") + ':' + item.cabinetTm
|
|
|
+ + $t("device.degree") }}
|
|
|
+ </span>
|
|
|
+ <span v-if="(item.machineType == '0' || item.machineType == null) && item.equimentType != 'P30'"
|
|
|
+ class="txt1 o-mt-10">
|
|
|
+ {{ $t("device.humidityInCabinet") + ':' + item.cabinetHd
|
|
|
+ + $t("device.humidity") }}
|
|
|
+ </span>
|
|
|
+
|
|
|
<img v-if="item.checkType" class="pic1" referrerpolicy="no-referrer" src="../../assets/home/line.png" />
|
|
|
<div class="contentBottomCon" v-if="item.checkType">
|
|
|
+
|
|
|
+ <!-- 所属商家 -->
|
|
|
+ <!-- <span class="txt1 o-mt-10">{{ $t("device.affiliatedMerchants") }}:{{ item.adminUserName }}</span> -->
|
|
|
+ <div class="contentWord kBordBott">{{ $t("device.affiliatedMerchants") }}:{{ item.adminUserName }}
|
|
|
+ </div>
|
|
|
<!-- 睡眠状态 -->
|
|
|
<div class="contentWord kBordBott">
|
|
|
<span class="o-mr-10">{{ $t("device.sleepState") }}:{{ item.isSleep ? $t("device.sleeping") :
|
|
|
- $t("device.notSleeping") }}</span>
|
|
|
- <van-switch :model-value="item.isSleep" size="23px" @click="changeSleep(item)" />
|
|
|
+ $t("device.notSleeping") }}</span>
|
|
|
+ <van-switch :model-value="item.isSleep" size="23px" @click="changeSleep(item)" />
|
|
|
</div>
|
|
|
<!-- 睡眠描述 -->
|
|
|
<div v-if="item.isSleep" class="contentWord kBordBott">
|
|
@@ -114,7 +144,7 @@
|
|
|
<div class="contentWord kBordBott" v-if="item.machineType == null || item.machineType == '0'">
|
|
|
<span>
|
|
|
{{ (item.machineType == '0' || item.machineType == null) ? $t("device.furnHeadStatus") :
|
|
|
- $t("device.deviceStatus") }}:
|
|
|
+ $t("device.deviceStatus") }}:
|
|
|
{{ item.eqeStatus === 1 ? $t("device.opened") : $t("device.closed") }}
|
|
|
</span>
|
|
|
<div class="o-ml-10">
|
|
@@ -145,26 +175,15 @@
|
|
|
<span>{{ $t("device.position") }}:</span>
|
|
|
<a class="clickable-link" @click="viewPosiClk(item)">{{ item.fullName }}</a>
|
|
|
</span>
|
|
|
- <!-- 机器参数 -->
|
|
|
- <van-row class="layer5 kBordBott" justify="space-between"
|
|
|
- v-if="(item.machineType == '0' || item.machineType == null) && item.equimentType != 'P30'">
|
|
|
- <van-col class="word5" style="">{{ $t("device.furnaceHeadTemperature") }}:{{
|
|
|
- item.furnaceTm
|
|
|
- }}{{ $t("device.degree") }}</van-col>
|
|
|
- <van-col class="word5" style="">{{ $t("device.temperatureInCabinet") }}:{{
|
|
|
- item.cabinetTm
|
|
|
- }}{{ $t("device.degree") }}</van-col>
|
|
|
- <van-col class="word5" style="">{{ $t("device.humidityInCabinet") }}:{{
|
|
|
- item.cabinetHd
|
|
|
- }}{{ $t("device.humidity") }}</van-col>
|
|
|
- </van-row>
|
|
|
+
|
|
|
+
|
|
|
<van-row class="layer5 kBordBott" justify="space-between" v-if="item.machineType == '1'">
|
|
|
<van-col class="word5" style="">{{ $t("device.cornGeneratorTemperature") }}:{{
|
|
|
- item.cabinetTm
|
|
|
- }}{{ $t("device.degree") }}</van-col>
|
|
|
+ item.cabinetTm
|
|
|
+ }}{{ $t("device.degree") }}</van-col>
|
|
|
<van-col class="word5" style="">{{ $t("device.stirringTemperature") }}:{{
|
|
|
- item.cabinetHd
|
|
|
- }}{{ $t("device.degree") }}</van-col>
|
|
|
+ item.cabinetHd
|
|
|
+ }}{{ $t("device.degree") }}</van-col>
|
|
|
<van-col class="word5" style="">{{ $t("device.cupQuantity") }}:{{ item.furnaceTm
|
|
|
}}</van-col>
|
|
|
</van-row>
|
|
@@ -185,8 +204,8 @@
|
|
|
</van-row>
|
|
|
<div class="sugarTxt kBordBott">
|
|
|
<span>{{ $t("device.stick") }}:{{
|
|
|
- Format_calcuDecial(item.stick)
|
|
|
- }}%</span>
|
|
|
+ Format_calcuDecial(item.stick)
|
|
|
+ }}%</span>
|
|
|
</div>
|
|
|
<van-row gutter="20" class="sugarTxt kBordBott">
|
|
|
<van-col>
|
|
@@ -200,7 +219,7 @@
|
|
|
<span class="contentWord kBordBott">
|
|
|
<span class="l-flex-RC">{{ $t("device.oneKeyFeed") }}:
|
|
|
<van-button class="replenishment" @click="replenishmentClk(item)" type="primary">{{
|
|
|
- $t("device.replenishment") }}
|
|
|
+ $t("device.replenishment") }}
|
|
|
</van-button>
|
|
|
</span>
|
|
|
<!-- <a class="replenishment" @click="replenishmentClk(item)">{{ $t("device.replenishment")
|
|
@@ -209,20 +228,20 @@
|
|
|
</template>
|
|
|
<!-- 最近刷新时间 -->
|
|
|
<span class="contentWord kBordBott">{{ $t("device.lastRefreshTime") }}:{{
|
|
|
- showDateTime(item.lastUpdateTime)
|
|
|
- }}</span>
|
|
|
+ showDateTime(item.lastUpdateTime)
|
|
|
+ }}</span>
|
|
|
<!-- 音量 -->
|
|
|
<span v-if="item.machineType != '2'" class="contentWord kBordBott">{{ $t("device.volume") }}:{{
|
|
|
- item.volume }}</span>
|
|
|
+ item.volume }}</span>
|
|
|
<!-- 报警内容 -->
|
|
|
<div class="contentWord kBordBott l-flex-LC justify-space-between">
|
|
|
<span>{{ $t("device.alarmContent") }}:</span>
|
|
|
<!-- <div class="l-flex-RC"> -->
|
|
|
<span class="word3">{{
|
|
|
- item.alarmList && item.alarmList[0] && item.alarmList[0].alarmContent
|
|
|
- ? showDateTime(item.alarmList[0].occurrenceTime) + " " + item.alarmList[0].alarmContent
|
|
|
- : $t("device.alarmContentNoData")
|
|
|
- }}
|
|
|
+ item.alarmList && item.alarmList[0] && item.alarmList[0].alarmContent
|
|
|
+ ? showDateTime(item.alarmList[0].occurrenceTime) + " " + item.alarmList[0].alarmContent
|
|
|
+ : $t("device.alarmContentNoData")
|
|
|
+ }}
|
|
|
</span>
|
|
|
<van-button v-if="item.alarmList && item.alarmList[0] && item.alarmList[0].alarmContent"
|
|
|
style="flex-shrink: 0; margin: 0;" type="primary" color="#07c160"
|
|
@@ -230,16 +249,19 @@
|
|
|
<!-- </div> -->
|
|
|
</div>
|
|
|
<div class="editDeviceBtnCon l-flex-center o-mt-10">
|
|
|
+ <!-- 详细信息 -->
|
|
|
<div class="l-flex-RC" @click="deviceSet(item)">
|
|
|
<span class="c-text-14">{{
|
|
|
- $t("device.editDevice")
|
|
|
- }}</span>
|
|
|
+ $t("device.editDevice")
|
|
|
+ }}</span>
|
|
|
<div class="box2 flex-col"></div>
|
|
|
</div>
|
|
|
+
|
|
|
+ <!-- 远程操作 -->
|
|
|
<div class="l-flex-RC" @click="deviceOprShow(item)">
|
|
|
<span class="c-text-14">{{
|
|
|
$t("device.commonOperations")
|
|
|
- }}</span>
|
|
|
+ }}</span>
|
|
|
<div class="box2 flex-col"></div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -249,7 +271,7 @@
|
|
|
<div class="l-flex-RC">
|
|
|
<span class="info2 o-mr-2">{{
|
|
|
item.checkType ? $t("device.stow") : $t("device.seeMore")
|
|
|
- }}</span>
|
|
|
+ }}</span>
|
|
|
<div class="group2 flex-col" :class="{ checkType: item.checkType }"></div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -524,7 +546,7 @@ export default {
|
|
|
equipmentId: row.id
|
|
|
});
|
|
|
if (data.code) {
|
|
|
- showSuccessToast(t("device.sentSuccessfully"));
|
|
|
+ showSuccessToast(t("device.sentSuccessfully"));
|
|
|
setTimeout(() => {
|
|
|
// router.go(0);
|
|
|
init();
|