提交代码

main
姜玉琦 2023-08-28 01:27:35 +08:00
parent a54a5823bd
commit dacb5bdb7f
2 changed files with 28 additions and 26 deletions

View File

@ -310,22 +310,24 @@ Page({
value2:app.globalData.value2, value2:app.globalData.value2,
value3:app.globalData.value3 value3:app.globalData.value3
}) })
let _dataList = app.globalData.projectInfoList; // let _dataList = app.globalData.projectInfoList;
if(app.globalData.type == "1"){ // debugger
that.setData({ // if(app.globalData.type == "1"){
"type":'1', // that.setData({
title:"工程列表", // "type":'1',
proCount:_dataList.length, // title:"工程列表",
projectInfoList:_dataList, // proCount:_dataList.length,
}) // projectInfoList:_dataList,
}else{ // })
that.setData({ // }
projectInfoList:_dataList, // else{
proCount:_dataList.length, // that.setData({
title:"预警列表", // projectInfoList:_dataList,
"type":'2', // proCount:_dataList.length,
}) // title:"预警列表",
} // "type":'2',
// })
// }
//加载用户组织架构信息 //加载用户组织架构信息
that.getFilstDept(res.data.deptId,res.data.userId); that.getFilstDept(res.data.deptId,res.data.userId);
} }
@ -460,16 +462,18 @@ Page({
method:"GET", method:"GET",
success:function(res){ success:function(res){
that.setData({ that.setData({
projectData:res.data proCount:res.data.length,
projectData:res.data,
projectInfoList:res.data
}) })
if(that.data.type == 1){ //if(that.data.type == 1){
that.setData({ // that.setData({
proCount:res.data.length, // proCount:res.data.length,
projectInfoList:res.data, // projectInfoList:res.data,
}) // })
}else{ //}else{
//that.getEnvironCount(deptId,'',provinceId,cityId,areaId); //that.getEnvironCount(deptId,'',provinceId,cityId,areaId);
} //}
//关闭蒙版 //关闭蒙版
that.onClickHide(); that.onClickHide();
} }

View File

@ -17,8 +17,6 @@
<button bindtap="onLogout" style="width: 60px;padding: 0px;height: 60px;line-height: 60px;border-radius: 30px;color: #8ca4ee;position: fixed;bottom: 20px;right: 20px;text-align: center;">退出</button> <button bindtap="onLogout" style="width: 60px;padding: 0px;height: 60px;line-height: 60px;border-radius: 30px;color: #8ca4ee;position: fixed;bottom: 20px;right: 20px;text-align: center;">退出</button>
<view class="max_content"> <view class="max_content">
<view class="list_max"> <view class="list_max">
<van-row gutter="5"> <van-row gutter="5">
<van-col span="6"> <van-col span="6">