|
@@ -116,10 +116,10 @@
|
|
|
v-for="(item, i) in gridList"
|
|
|
:key="i"
|
|
|
:class="{
|
|
|
- greed: item.gridState == '手机已放入',
|
|
|
- red: item.gridState == '手机未放入',
|
|
|
- yellow: item.gridState == '人员请假',
|
|
|
- grey: item.gridState == '未绑定人员',
|
|
|
+ greed: item.gridStateCode == '3',
|
|
|
+ red: item.gridStateCode == '2',
|
|
|
+ yellow: item.gridStateCode == '4',
|
|
|
+ grey: item.gridStateCode == '1',
|
|
|
}"
|
|
|
class="orging"
|
|
|
>
|
|
@@ -368,11 +368,11 @@ export default {
|
|
|
this.gridList = res.data.infos;
|
|
|
console.log(res.data.infos);
|
|
|
this.gridList.forEach((item) => {
|
|
|
- if (item.gridState == "手机未放入") {
|
|
|
+ if (item.gridStateCode == "2") {
|
|
|
this.red += 1;
|
|
|
- } else if (item.gridState == "手机已放入") {
|
|
|
+ } else if (item.gridStateCode == "3") {
|
|
|
this.green += 1;
|
|
|
- } else if (item.gridState == "人员请假") {
|
|
|
+ } else if (item.gridStateCode == "4") {
|
|
|
this.yellow += 1;
|
|
|
} else {
|
|
|
this.grey += 1;
|