Commit e0fd8ae4 by yiyu.li

bug

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