Commit 3d2af0bc by yiyu.li

状态优化

parent 0b6df559
......@@ -59,7 +59,7 @@
:key="index"
:style="{
background: item.bgc,
color: item.status != 0 ? fontColor : '',
color: item.machineStatus != 0 ? fontColor : '',
}"
>
<p class="flex">
......@@ -362,17 +362,17 @@ export default {
arr.forEach((ele) => {
let bgc = "";
if (ele.status == 1) {
if (ele.machineStatus == 1) {
bgc = "#ff9900";
}
if (ele.status == 2) {
if (ele.machineStatus == 2) {
bgc = "#19be6b";
}
if (ele.status == 3) {
if (ele.machineStatus == 3) {
bgc = "#2db7f5";
}
if (ele.enable == 0) {
bgc = "red";
bgc = "#ed4014";
}
ele.bgc = bgc;
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment