From 7fccd2f28b235bd21987d9ff5c1e23734ba9c93f Mon Sep 17 00:00:00 2001 From: xiaoning <1097449274@qq.com> Date: Tue, 25 Mar 2025 15:05:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=88=E5=BA=A6=E8=AE=A1=E5=88=92=E6=B1=87?= =?UTF-8?q?=E6=80=BB=E9=A1=B5=EF=BC=8C=E6=98=8E=E7=BB=86=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=20=E5=AE=8C=E5=B7=A5=E6=83=85=E5=86=B5=E7=AD=9B=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/jhzx/ydjhzxCX.vue | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/src/views/jhzx/ydjhzxCX.vue b/src/views/jhzx/ydjhzxCX.vue index 9adc4fc..fa93621 100644 --- a/src/views/jhzx/ydjhzxCX.vue +++ b/src/views/jhzx/ydjhzxCX.vue @@ -146,6 +146,7 @@ export default { zt: '' }, list: [], + allList_mx:[], list1: [], checkedList: [], heads: { token: getToken() }, @@ -781,6 +782,7 @@ export default { this.dateTime=XEUtils.toDateString(XEUtils.getWhatDay(new Date(), 0, 'first'),'yyyy/MM/dd') }, changeData(){ + this.dataChange_mx(this.allList_mx) this.dataChange(this.allList) }, dataChange(arr){ @@ -800,7 +802,27 @@ export default { this.list1.push(item) } }) - } }, + } + }, + dataChange_mx(arr){ + this.list=[] + //判断是否展示全部数据 已完成 未完成 + if(this.wgqk=='0'){ this.list=arr} + if(this.wgqk=='1'){ + arr.forEach(item=>{ + if (item.qgfkry||item.qgfkrq){ + this.list.push(item) + } + }) + } + if(this.wgqk=='2'){ + arr.forEach(item=>{ + if (!item.qgfkry||!item.qgfkrq){ + this.list.push(item) + } + }) + } + }, formatWorker({cellValue}){ return this.workers[cellValue] }, @@ -1028,7 +1050,10 @@ export default { this.activeName = 'second' const zyqColumn=this.$refs.xGrid.getColumnByField('zyq') zyqColumn.editRender.options=this.zyqList - this.list = res.data + //明细——根据切割反馈人或时间有没有判断 + this.allList_mx= res.data + this.dataChange_mx(this.allList_mx) + }) }, }