|
|
@ -59,7 +59,7 @@ Page({ |
|
|
|
Request.get(getPatrolRecordIssueHandle(), { |
|
|
|
...params,type:'haveDone',wx:true |
|
|
|
}).then(res => { |
|
|
|
const rslt=userInfo?.role?.includes('巡检')?res.filter(item=>item?.PatrolRecord?.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?.PatrolRecord?.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 => { |
|
|
|