Commit e0fd8ae4 by yiyu.li

bug

parent 00a9de85
......@@ -57,7 +57,10 @@
<div
class="stateItem"
:key="index"
:style="{ background: item.bgc,color:item.status!=0?fontColor:'' }"
:style="{
background: item.bgc,
color: item.status != 0 ? fontColor : '',
}"
>
<p class="flex">
<span class="infoLabel">工位:</span>
......@@ -317,7 +320,7 @@ export default {
produceTotal: 0,
waittingTotal: 0,
},
fontColor:'#fff'
fontColor: "#fff",
};
},
created() {
......@@ -346,9 +349,7 @@ export default {
: [];
arr.forEach((ele) => {
let bgc = "";
if (ele.enable == 0) {
bgc = "red";
}
if (ele.status == 1) {
bgc = "#ff9900";
}
......@@ -358,6 +359,9 @@ export default {
if (ele.status == 3) {
bgc = "#2db7f5";
}
if (ele.enable == 0) {
bgc = "red";
}
ele.bgc = bgc;
});
this.stateList = arr;
......@@ -430,7 +434,6 @@ export default {
height: 30px;
line-height: 30px;
font-size: 16px;
}
}
.stateTitle {
......
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