From a16027777ea271418e518e179e474a604664e00d Mon Sep 17 00:00:00 2001 From: zhaobing Date: Wed, 3 Jan 2024 09:40:28 +0800 Subject: [PATCH] feat:fix bugs --- weapp/package/troubleshooting/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/weapp/package/troubleshooting/index.js b/weapp/package/troubleshooting/index.js index dd5a407..bda7e30 100644 --- a/weapp/package/troubleshooting/index.js +++ b/weapp/package/troubleshooting/index.js @@ -59,7 +59,7 @@ Page({ Request.get(getPatrolRecordIssueHandle(), { ...params,type:'haveDone',wx:true }).then(res => { - const rslt=userInfo?.role?.includes('管理')?res.filter(item=>item?.project?.type==='管廊'):res + const rslt=userInfo?.role?.includes('巡检')?res.filter(item=>item?.PatrolRecord?.project?.type==='管廊'):res this.setData({ doneLength:rslt.length, dataList: rslt.map(r => { @@ -75,7 +75,7 @@ Page({ Request.get(getPatrolRecordIssueHandle(), { ...params,type:'backlog',wx:true }).then(res => { - const rslt=userInfo?.role?.includes('管理')?res.filter(item=>item?.project?.type==='管廊'):res + const rslt=userInfo?.role?.includes('巡检')?res.filter(item=>item?.PatrolRecord?.project?.type==='管廊'):res this.setData({ willLength:rslt.length, willdoneList: rslt.map(r => {