|
@ -29,47 +29,47 @@ Page({ |
|
|
markers: [], |
|
|
markers: [], |
|
|
pageHeight:0,//屏幕高度
|
|
|
pageHeight:0,//屏幕高度
|
|
|
isShowCallout: false, |
|
|
isShowCallout: false, |
|
|
itemList:[{ |
|
|
itemList:[ |
|
|
picPath:'/images/conduct.png', |
|
|
{ |
|
|
itemName:'指挥中心' |
|
|
picPath:'/images/gas.png', |
|
|
|
|
|
itemName:'燃气仓' |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
picPath:'/images/waterSupply.png', |
|
|
picPath:'/images/waterSupply.png', |
|
|
itemName:'给水仓' |
|
|
itemName:'给水仓' |
|
|
}, |
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
picPath:'/images/electricalStorageRoom.png', |
|
|
|
|
|
itemName:'电气仓' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
picPath:'/images/highTension.png', |
|
|
|
|
|
itemName:'高压电力仓' |
|
|
|
|
|
}, |
|
|
{ |
|
|
{ |
|
|
picPath:'/images/pipeGallery.png', |
|
|
picPath:'/images/pipeGallery.png', |
|
|
itemName:'管廊本体' |
|
|
itemName:'管廊本体' |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
picPath:'/images/elevator.png', |
|
|
picPath:'/images/conduct.png', |
|
|
itemName:'电梯系统' |
|
|
itemName:'指挥中心' |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
picPath:'/images/power.png', |
|
|
picPath:'/images/power.png', |
|
|
itemName:'供配电系统' |
|
|
itemName:'供配电系统' |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
picPath:'/images/gas.png', |
|
|
picPath:'/images/elevator.png', |
|
|
itemName:'燃气仓' |
|
|
itemName:'电梯系统' |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
picPath:'/images/security.png', |
|
|
picPath:'/images/security.png', |
|
|
itemName:'安防系统' |
|
|
itemName:'安防系统' |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
|
|
|
picPath:'/images/highTension.png', |
|
|
|
|
|
itemName:'高压电力仓' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
picPath:'/images/electricalStorageRoom.png', |
|
|
|
|
|
itemName:'电气仓' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
{ |
|
|
picPath:'/images/lightningProtection.png', |
|
|
picPath:'/images/lightningProtection.png', |
|
|
itemName:'防雷与接地' |
|
|
itemName:'防雷与接地' |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
], |
|
|
], |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
@ -96,13 +96,13 @@ Page({ |
|
|
}; |
|
|
}; |
|
|
wx.showLoading({ title: '加载中' }) |
|
|
wx.showLoading({ title: '加载中' }) |
|
|
const date1 = new Date('1970-01-01 00:00:00'); |
|
|
const date1 = new Date('1970-01-01 00:00:00'); |
|
|
promiseArr.push(Request.get(getPatrolRecord('all', moment(date1).format('YYYY-MM-DD') + ' 00:00:00', moment('2099-12-31').format('YYYY-MM-DD') + ' 23:59:59', 'null', 'null'))); |
|
|
promiseArr.push(Request.get(getPatrolRecord('all', moment(date1).format('YYYY-MM-DD') + ' 00:00:00', moment('2099-12-31').format('YYYY-MM-DD') + ' 23:59:59', 'null', 'null',{home:true}))); |
|
|
Promise.all(promiseArr).then(res => { |
|
|
Promise.all(promiseArr).then(res => { |
|
|
wx.hideLoading() |
|
|
wx.hideLoading() |
|
|
//与自己相关的所有巡检记录
|
|
|
//与自己相关的所有巡检记录
|
|
|
let list=res[0] |
|
|
let list=res[0] |
|
|
if(userInfo.username!=='SuperAdmin'){ |
|
|
if(userInfo.username!=='SuperAdmin'){ |
|
|
list=res[0]?.filter(item=> userInfo.structure.find((x) => x === item.points.project.id))||[] |
|
|
list=res[0]?.filter(item=> userInfo.structure.find((x) => x === item.project_id))||[] |
|
|
} |
|
|
} |
|
|
//过去七天的所有巡检记录
|
|
|
//过去七天的所有巡检记录
|
|
|
const sevenDaysList=list?.filter(item=> |
|
|
const sevenDaysList=list?.filter(item=> |
|
|