修改机械分厂设备二级状态显示

This commit is contained in:
hzz 2023-05-25 11:57:53 +08:00
parent 581028aca6
commit 8352d3042b
2 changed files with 6 additions and 2 deletions

View File

@ -172,8 +172,12 @@ export const useMechanicsStore = defineStore(Names.Mechanics, {
this.mechanicsData.forEach((ele) => { this.mechanicsData.forEach((ele) => {
ele.data?.forEach((item) => { ele.data?.forEach((item) => {
if (item.id == val.id) { if (item.id == val.id) {
if (val.realStatus) {
item.status == val.status?'':item.status = val.status; item.status == val.status?'':item.status = val.status;
} else {
item.status == val.status?'':item.status = 'H_IDLE';
}
} }
}); });
}); });

View File

@ -45,7 +45,7 @@ const gatewayvalue = reactive({
title: null, title: null,
counts: null, counts: null,
gateway: null, gateway: null,
iconname: "", iconname: "icon-beikongshuiwupingtaimenhu-tubiao_zhinengwangguan",
}); });
let boxWH=reactive({ let boxWH=reactive({
width:'0px', width:'0px',