|
@@ -259,29 +259,33 @@ export default {
|
|
},
|
|
},
|
|
//获取报警信息详情
|
|
//获取报警信息详情
|
|
async laboratoryInfo(item){
|
|
async laboratoryInfo(item){
|
|
- let self=this;
|
|
|
|
- const {data} = await laboratoryInfo(item.subDiyVo.id);
|
|
|
|
- if(data.code == 200){
|
|
|
|
- let obj = data.data[0];
|
|
|
|
- obj.subClassVO = item.subDiyVo.subClassVO;
|
|
|
|
- obj.name = item.subDiyVo.name;
|
|
|
|
- obj.subTypeLable = item.subDiyVo.subTypeLable;
|
|
|
|
- obj.deptName = item.subDiyVo.deptName;
|
|
|
|
- obj.subAddrrStr = item.subDiyVo.subAddrrStr;
|
|
|
|
- //循环判断如果是排风扇的话,启动的时候是人工还是预案还是定时
|
|
|
|
- for(let i=0;i<obj.labHardwareVOList.length;i++){
|
|
|
|
- if(obj.labHardwareVOList[i].hardwareTypeEnum.hardwareTypeCode == '2'){
|
|
|
|
- for(let b=0;b<self.fanList.length;b++){
|
|
|
|
- if(self.fanList[b].dictValue==obj.labHardwareVOList[i].triggerModes){
|
|
|
|
- obj.labHardwareVOList[i].dictLabel=self.fanList[b].dictLabel
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
- url: '/pages_manage/workbench/laboratory/laboratoryInfo?item='+encodeURIComponent(JSON.stringify(obj))+'&deptId='+obj.deptId
|
|
|
|
|
|
+ url: '/pages/earlyWarningManage/earlyWarningList'
|
|
});
|
|
});
|
|
- }
|
|
|
|
|
|
+
|
|
|
|
+ // let self=this;
|
|
|
|
+ // const {data} = await laboratoryInfo(item.subDiyVo.id);
|
|
|
|
+ // if(data.code == 200){
|
|
|
|
+ // let obj = data.data[0];
|
|
|
|
+ // obj.subClassVO = item.subDiyVo.subClassVO;
|
|
|
|
+ // obj.name = item.subDiyVo.name;
|
|
|
|
+ // obj.subTypeLable = item.subDiyVo.subTypeLable;
|
|
|
|
+ // obj.deptName = item.subDiyVo.deptName;
|
|
|
|
+ // obj.subAddrrStr = item.subDiyVo.subAddrrStr;
|
|
|
|
+ // //循环判断如果是排风扇的话,启动的时候是人工还是预案还是定时
|
|
|
|
+ // for(let i=0;i<obj.labHardwareVOList.length;i++){
|
|
|
|
+ // if(obj.labHardwareVOList[i].hardwareTypeEnum.hardwareTypeCode == '2'){
|
|
|
|
+ // for(let b=0;b<self.fanList.length;b++){
|
|
|
|
+ // if(self.fanList[b].dictValue==obj.labHardwareVOList[i].triggerModes){
|
|
|
|
+ // obj.labHardwareVOList[i].dictLabel=self.fanList[b].dictLabel
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
+ // uni.navigateTo({
|
|
|
|
+ // url: '/pages_manage/workbench/laboratory/laboratoryInfo?item='+encodeURIComponent(JSON.stringify(obj))+'&deptId='+obj.deptId
|
|
|
|
+ // });
|
|
|
|
+ // }
|
|
},
|
|
},
|
|
//获取实验室详情
|
|
//获取实验室详情
|
|
async laboratoryInfoOne(item){
|
|
async laboratoryInfoOne(item){
|
|
@@ -303,7 +307,7 @@ export default {
|
|
obj.labHardwareVOList[i].dictLabel=self.fanList[b].dictLabel
|
|
obj.labHardwareVOList[i].dictLabel=self.fanList[b].dictLabel
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
+ }
|
|
}
|
|
}
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
url: '/pages_manage/workbench/laboratory/laboratoryInfo?item='+encodeURIComponent(JSON.stringify(obj))+'&deptId='+item.deptId
|
|
url: '/pages_manage/workbench/laboratory/laboratoryInfo?item='+encodeURIComponent(JSON.stringify(obj))+'&deptId='+item.deptId
|
|
@@ -320,18 +324,21 @@ export default {
|
|
};
|
|
};
|
|
const {data} = await getSafeWarnList(obj);
|
|
const {data} = await getSafeWarnList(obj);
|
|
if(data.code == 200){
|
|
if(data.code == 200){
|
|
- this.alarmList = data.rows;
|
|
|
|
- if(data.rows[0]){
|
|
|
|
- this.securityAlertNum = data.rows[0].todayHappenCount;
|
|
|
|
- }else{
|
|
|
|
- this.securityAlertNum = 0;
|
|
|
|
- }
|
|
|
|
|
|
+ this.alarmList = data.data.list;
|
|
|
|
+ this.securityAlertNum = data.data.count;
|
|
|
|
+ // if(data.rows[0]){
|
|
|
|
+ // this.securityAlertNum = data.rows[0].todayHappenCount;
|
|
|
|
+ // }else{
|
|
|
|
+ // this.securityAlertNum = 0;
|
|
|
|
+ // }
|
|
}
|
|
}
|
|
},
|
|
},
|
|
//获取实验室列表
|
|
//获取实验室列表
|
|
async laboratoryList(){
|
|
async laboratoryList(){
|
|
let self = this;
|
|
let self = this;
|
|
let obj = {
|
|
let obj = {
|
|
|
|
+ pageNum:1,
|
|
|
|
+ pageSize:10,
|
|
deptId:this.facultyIndex?this.facultyList[this.facultyIndex].deptId:'',
|
|
deptId:this.facultyIndex?this.facultyList[this.facultyIndex].deptId:'',
|
|
subDept:this.subjectIndex?this.subjectList[this.subjectIndex].dictValue:'',
|
|
subDept:this.subjectIndex?this.subjectList[this.subjectIndex].dictValue:'',
|
|
level:this.levelIndex?this.levelList[this.levelIndex].dictValue:'',
|
|
level:this.levelIndex?this.levelList[this.levelIndex].dictValue:'',
|
|
@@ -587,8 +594,6 @@ export default {
|
|
.big-icon-button-box_bg{
|
|
.big-icon-button-box_bg{
|
|
width:372rpx;
|
|
width:372rpx;
|
|
height:260rpx;
|
|
height:260rpx;
|
|
- position: absolute;
|
|
|
|
- z-index: 100;
|
|
|
|
}
|
|
}
|
|
.big-icon-button-box_t1{
|
|
.big-icon-button-box_t1{
|
|
width: 149rpx;
|
|
width: 149rpx;
|
|
@@ -604,7 +609,6 @@ export default {
|
|
position:absolute;
|
|
position:absolute;
|
|
right: 42rpx;
|
|
right: 42rpx;
|
|
top: 94rpx;
|
|
top: 94rpx;
|
|
- z-index: 200;
|
|
|
|
|
|
|
|
}
|
|
}
|
|
.big-icon-button-box_t2{
|
|
.big-icon-button-box_t2{
|
|
@@ -618,7 +622,6 @@ export default {
|
|
position:absolute;
|
|
position:absolute;
|
|
right: 28rpx;
|
|
right: 28rpx;
|
|
top: 148rpx;
|
|
top: 148rpx;
|
|
- z-index: 200;
|
|
|
|
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -781,7 +784,7 @@ export default {
|
|
background #fff
|
|
background #fff
|
|
padding-left:25rpx;
|
|
padding-left:25rpx;
|
|
display flex
|
|
display flex
|
|
- margin:0 20rpx;
|
|
|
|
|
|
+ margin:20rpx 20rpx 0;
|
|
border-bottom:1rpx solid #e0e0e0;
|
|
border-bottom:1rpx solid #e0e0e0;
|
|
.left-img{
|
|
.left-img{
|
|
height:34rpx;
|
|
height:34rpx;
|
|
@@ -823,7 +826,6 @@ export default {
|
|
.for-box{
|
|
.for-box{
|
|
border-top:4rpx solid #dedede;
|
|
border-top:4rpx solid #dedede;
|
|
background #fff
|
|
background #fff
|
|
- margin-bottom:20rpx;
|
|
|
|
overflow: hidden
|
|
overflow: hidden
|
|
.title-box{
|
|
.title-box{
|
|
margin:20rpx 20rpx 0;
|
|
margin:20rpx 20rpx 0;
|