Browse Source

feat:fix bugs

master
zhaobing 10 months ago
parent
commit
5ed8e51b67
  1. 4
      weapp/package/troubleshooting/index.js

4
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?.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 => {

Loading…
Cancel
Save