Browse Source

feat:fix bugs

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

4
weapp/package/troubleshooting/index.js

@ -59,7 +59,7 @@ Page({
Request.get(getPatrolRecordIssueHandle(), { Request.get(getPatrolRecordIssueHandle(), {
...params,type:'haveDone',wx:true ...params,type:'haveDone',wx:true
}).then(res => { }).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({ this.setData({
doneLength:rslt.length, doneLength:rslt.length,
dataList: rslt.map(r => { dataList: rslt.map(r => {
@ -75,7 +75,7 @@ Page({
Request.get(getPatrolRecordIssueHandle(), { Request.get(getPatrolRecordIssueHandle(), {
...params,type:'backlog',wx:true ...params,type:'backlog',wx:true
}).then(res => { }).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({ this.setData({
willLength:rslt.length, willLength:rslt.length,
willdoneList: rslt.map(r => { willdoneList: rslt.map(r => {

Loading…
Cancel
Save