|
@@ -56,13 +56,17 @@
|
|
|
<div class="l-flex-RC">
|
|
|
<div class="layer1 flex-col"></div>
|
|
|
<span class="txt1 c-text-line1">{{ item.name }}</span>
|
|
|
+ <div v-if="item.hasTodayAlarm" class="l-flex-between">
|
|
|
+ <div class="box4 flex-col"></div>
|
|
|
+ <span class="o-pl-2" style="color: #fe5d55">{{ $t("device.alarmClock") }}</span>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<div class="l-flex-RC">
|
|
|
<!-- 报警标志 -->
|
|
|
- <div v-if="item.hasTodayAlarm" class="box4 flex-col">
|
|
|
- <!-- <img class="pic1" src="../../assets/device/alarm.png" /> -->
|
|
|
- <!-- <img class="pic1" src="../../assets/home/M15.png" /> -->
|
|
|
- </div>
|
|
|
+ <!-- <div v-if="item.hasTodayAlarm" class="box4 flex-col"> -->
|
|
|
+ <!-- <img class="pic1" src="../../assets/device/alarm.png" /> -->
|
|
|
+ <!-- <img class="pic1" src="../../assets/home/M15.png" /> -->
|
|
|
+ <!-- </div> -->
|
|
|
<div class="layer2 flex-col" :class="{
|
|
|
deviceOn: item.eqeStatus === 1,
|
|
|
layerLeft: item.hasTodayAlarm,
|
|
@@ -111,7 +115,8 @@
|
|
|
<van-button type="primary">重启</van-button>
|
|
|
</span> -->
|
|
|
<div class="word4 o-ptb-10">
|
|
|
- <span class="word3 o-pr-5" v-if="item.machineType == '0' || item.machineType == null">{{ $t("device.furnHeadStatus") }}: </span>
|
|
|
+ <span class="word3 o-pr-5" v-if="item.machineType == '0' || item.machineType == null">{{
|
|
|
+ $t("device.furnHeadStatus") }}: </span>
|
|
|
<span class="word3 o-pr-5" v-else>{{ $t("device.deviceStatus") }}: </span>
|
|
|
<span>{{ item.eqeStatus === 1 ? $t("device.opened") : $t("device.closed") }}
|
|
|
</span>
|
|
@@ -133,7 +138,8 @@
|
|
|
}}</van-button>
|
|
|
</span>
|
|
|
</div>
|
|
|
- <van-row class="layer5 o-ptb-10 kBordBott" justify="space-between" v-if="(item.machineType == '0' || item.machineType == null) && item.equimentType != 'POP320'">
|
|
|
+ <van-row class="layer5 o-ptb-10 kBordBott" justify="space-between"
|
|
|
+ v-if="(item.machineType == '0' || item.machineType == null) && item.equimentType != 'POP320'">
|
|
|
<van-col class="word5">{{ $t("device.furnaceHeadTemperature") }}:{{
|
|
|
item.furnaceTm
|
|
|
}}{{ $t("device.degree") }}</van-col>
|
|
@@ -153,7 +159,7 @@
|
|
|
<van-col class="word5">{{ $t("device.cupQuantity") }}:{{ item.cupQuantity
|
|
|
}}</van-col>
|
|
|
</van-row>
|
|
|
- <template v-if="item.isMaterialUse === '1' && (item.machineType == '0' || item.machineType == null)" >
|
|
|
+ <template v-if="item.isMaterialUse === '1' && (item.machineType == '0' || item.machineType == null)">
|
|
|
<van-row justify="space-between" class="sugarTxt o-ptb-10 kBordBott">
|
|
|
<van-col>
|
|
|
{{ $t("device.whiteSugar") }}:{{ $M_FormatCalcuDecial(item.whiteSugar) }}%
|
|
@@ -190,13 +196,16 @@
|
|
|
showDateTime(item.lastUpdateTime)
|
|
|
}}</span>
|
|
|
<span class="info2 o-ptb-5 kBordBott">{{ $t("device.volume") }}:{{ item.volume }}</span>
|
|
|
- <span class="info3 o-ptb-10 kBordBott">{{ $t("device.alarmContent") }}:{{
|
|
|
- item.alarmList && item.alarmList[0]
|
|
|
- ? item.alarmList[0].alarmContent
|
|
|
- : item.alarmContent
|
|
|
- }}
|
|
|
- <span v-if="item.alarmList && item.alarmList[0]" style="color: #4d6add"
|
|
|
- @click="clearAlarm(item.alarmList[0])">{{ $t("device.eliminateAlarm") }}</span></span>
|
|
|
+ <div class="l-flex-RC" >
|
|
|
+ <span class="info3 o-ptb-2 o-pr-10 kBordBott">{{ $t("device.alarmContent") }}:{{
|
|
|
+ item.alarmList && item.alarmList[0]
|
|
|
+ ? item.alarmList[0].alarmContent
|
|
|
+ : item.alarmContent
|
|
|
+ }}
|
|
|
+ </span>
|
|
|
+ <van-button v-if="item.alarmList && item.alarmList[0]" type="primary" size="small" color="#07c160" :text="$t('device.eliminateAlarm')"
|
|
|
+ @click="clearAlarm(item.alarmList[0])"></van-button>
|
|
|
+ </div>
|
|
|
<div class="editDeviceBtnCon l-flex-center o-mt-10">
|
|
|
<div class="l-flex-RC" @click="deviceSet(item)">
|
|
|
<span class="c-text-14">{{
|
|
@@ -375,7 +384,7 @@ export default {
|
|
|
timeRuleId: e.timeRuleId,
|
|
|
};
|
|
|
const { data } = await eliminate(Object.assign({}, params));
|
|
|
- if (data.code === "00000") {
|
|
|
+ if (data.code) {
|
|
|
Toast.success(t("device.successfullyEliminatedTheAlarm"));
|
|
|
e.alarmList = [];
|
|
|
} else {
|