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 => {