|
@@ -201,8 +201,8 @@
|
|
this.bottomMenuList() //获取底部公共组件消息和任务
|
|
this.bottomMenuList() //获取底部公共组件消息和任务
|
|
this.getTreeselect()
|
|
this.getTreeselect()
|
|
this.deptId = Cookies.get("deptId")
|
|
this.deptId = Cookies.get("deptId")
|
|
- // this.getSensorListByDeptId()
|
|
|
|
- // this.getDlblistBydeptId()
|
|
|
|
|
|
+ this.getSensorListByDeptIds()
|
|
|
|
+ this.getDlblistBydeptIds()
|
|
this.selectDeviceType(-1)
|
|
this.selectDeviceType(-1)
|
|
// this.showTVWall();
|
|
// this.showTVWall();
|
|
},
|
|
},
|
|
@@ -426,6 +426,16 @@
|
|
console.error(error);
|
|
console.error(error);
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+ getDlblistBydeptIds() {
|
|
|
|
+ let that = this;
|
|
|
|
+
|
|
|
|
+ getDlblistBydeptId(that.deptId).then(function(res) {
|
|
|
|
+ that.loudspeakerNum = res.data.length
|
|
|
|
+ })
|
|
|
|
+ .catch(function(error) {
|
|
|
|
+ console.error(error);
|
|
|
|
+ });
|
|
|
|
+ },
|
|
// 传感器
|
|
// 传感器
|
|
getSensorListByDeptId() {
|
|
getSensorListByDeptId() {
|
|
let that = this;
|
|
let that = this;
|
|
@@ -489,6 +499,16 @@
|
|
console.error(error);
|
|
console.error(error);
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+ getSensorListByDeptIds() {
|
|
|
|
+ let that = this;
|
|
|
|
+ getSensorListByDeptId(that.deptId).then(function(res) {
|
|
|
|
+ that.sensorNum = res.data.length
|
|
|
|
+
|
|
|
|
+ })
|
|
|
|
+ .catch(function(error) {
|
|
|
|
+ console.error(error);
|
|
|
|
+ });
|
|
|
|
+ },
|
|
selectKeyAreaList() {
|
|
selectKeyAreaList() {
|
|
this.keyAreaList = []
|
|
this.keyAreaList = []
|
|
//获取重点区域列表
|
|
//获取重点区域列表
|
|
@@ -1033,4 +1053,4 @@
|
|
height: 600px;
|
|
height: 600px;
|
|
border: 1px solid red;
|
|
border: 1px solid red;
|
|
}
|
|
}
|
|
-</style>
|
|
|
|
|
|
+</style>
|