diff --git a/src/views/jhzx/ydjhzxCX.vue b/src/views/jhzx/ydjhzxCX.vue index 17b918b..cc0389c 100644 --- a/src/views/jhzx/ydjhzxCX.vue +++ b/src/views/jhzx/ydjhzxCX.vue @@ -806,12 +806,13 @@ export default { this.dataChange_mx(this.allList_mx) }, dataChange(arr){ + this.list1=[] //判断是否展示全部数据 已完成 未完成 if(this.wgqk=='0'){ this.list1=arr} if(this.wgqk=='1'){ arr.forEach(item=>{ - if (item.qgCount==item.slxhthCount){ + if (item.qgCount==item.slxhthCount&&item.slxhthCount>0){ this.list1.push(item) } }) @@ -889,7 +890,7 @@ export default { }, //未完成数据颜色 cellStyle({row, column}){ - if (row.qgCount==row.slxhthCount) { + if (row.qgCount==row.slxhthCount&&row.slxhthCount>0) { return { backgroundColor: 'rgba(165,255,40,0.71)', cursor: 'pointer'