黑蚊香车间生产监控看板修改设备报修审核后产线背景色还原

Signed-off-by: Yangwl <1726150332@qq.com>
master
Yangwl 1 month ago
parent f23140e6a4
commit 951444e5ce

@ -227,6 +227,7 @@ export default {
height:40, height:40,
radius:20, radius:20,
isRight: false, isRight: false,
alpha:'transparent',
equipmentName: "包装线11" equipmentName: "包装线11"
}, },
{ {
@ -237,6 +238,7 @@ export default {
height:40, height:40,
radius:20, radius:20,
isRight: false, isRight: false,
alpha:'transparent',
equipmentName: "包装线10" equipmentName: "包装线10"
}, },
{ {
@ -247,6 +249,7 @@ export default {
height:40, height:40,
radius:20, radius:20,
isRight: false, isRight: false,
alpha:'transparent',
equipmentName: "包装线09" equipmentName: "包装线09"
}, },
{ {
@ -257,6 +260,7 @@ export default {
height:40, height:40,
radius:20, radius:20,
isRight: false, isRight: false,
alpha:'transparent',
equipmentName: "包装线08" equipmentName: "包装线08"
}, },
{ {
@ -266,6 +270,7 @@ export default {
width: 2, width: 2,
height:40, height:40,
isRight: true, isRight: true,
alpha:'transparent',
equipmentName: "包装线07" equipmentName: "包装线07"
}, },
{ {
@ -275,6 +280,7 @@ export default {
width: 2, width: 2,
height:40, height:40,
isRight: false, isRight: false,
alpha:'transparent',
equipmentName: "包装线06" equipmentName: "包装线06"
}, },
{ {
@ -284,6 +290,7 @@ export default {
width: 2, width: 2,
height:40, height:40,
isRight: true, isRight: true,
alpha:'transparent',
equipmentName: "包装线05" equipmentName: "包装线05"
}, },
{ {
@ -293,6 +300,7 @@ export default {
width: 2, width: 2,
height:40, height:40,
isRight: false, isRight: false,
alpha:'transparent',
equipmentName: "包装线04" equipmentName: "包装线04"
}, },
{ {
@ -302,6 +310,7 @@ export default {
width: 2, width: 2,
height:40, height:40,
isRight: true, isRight: true,
alpha:'transparent',
equipmentName: "包装线03" equipmentName: "包装线03"
}, },
{ {
@ -311,6 +320,7 @@ export default {
width: 2, width: 2,
height:40, height:40,
isRight: false, isRight: false,
alpha:'transparent',
equipmentName: "包装线02" equipmentName: "包装线02"
}, },
{ {
@ -320,6 +330,7 @@ export default {
width: 2, width: 2,
height:40, height:40,
isRight: false, isRight: false,
alpha:'transparent',
equipmentName: "包装线01" equipmentName: "包装线01"
}, },
], ],
@ -452,7 +463,6 @@ export default {
sapCode:matchedRow?.sapCode || null, sapCode:matchedRow?.sapCode || null,
}; };
}); });
console.log(this.infoData)
} }
}).catch(error => { }).catch(error => {
console.error("获取数据失败:", error); console.error("获取数据失败:", error);
@ -488,8 +498,7 @@ export default {
pageSize: 20 pageSize: 20
} }
getCsRepairlist(param).then((response) => { getCsRepairlist(param).then((response) => {
if (response) { if (response?.length) {
console.log(response)
// //
this.repairOrders = response.map(item => ({ this.repairOrders = response.map(item => ({
...item, ...item,
@ -509,15 +518,19 @@ export default {
this.infoData.forEach((item, index) => { this.infoData.forEach((item, index) => {
if (activeEquipmentNames.has(item.equipmentName)) { if (activeEquipmentNames.has(item.equipmentName)) {
// alpha // alpha
this.$set(this.infoData[index], 'alpha', '#CB4C4C80'); this.infoData[index].alpha = '#CB4C4C80';
} else { } else {
// alpha // alpha
if (this.infoData[index].hasOwnProperty('alpha')) { this.infoData[index].alpha = 'transparent';
this.$delete(this.infoData[index], 'alpha');
}
} }
}); });
}else {
this.scrollText = "";
this.infoData.forEach((item, index) => {
this.infoData[index].alpha = 'transparent';
});
} }
}) })
}, },

Loading…
Cancel
Save