|
@@ -220,8 +220,8 @@ export default {
|
|
|
this.bottomMenuList() //获取底部公共组件消息和任务
|
|
|
this.getTreeselect()
|
|
|
this.deptId = Cookies.get("deptId")
|
|
|
- // this.getSensorListByDeptId()
|
|
|
- // this.getDlblistBydeptId()
|
|
|
+ this.getSensorListByDeptId()
|
|
|
+ this.getDlblistBydeptId()
|
|
|
this.selectDeviceType()
|
|
|
},
|
|
|
data() {
|
|
@@ -399,6 +399,30 @@ export default {
|
|
|
console.error(error);
|
|
|
});
|
|
|
},
|
|
|
+ // 大喇叭
|
|
|
+ getDlblistBydeptId() {
|
|
|
+ let that = this;
|
|
|
+ let markersList = [];
|
|
|
+ getDlblistBydeptId(that.deptId).then(function (res) {
|
|
|
+ that.loudspeakerNum = res.data.length
|
|
|
+
|
|
|
+ })
|
|
|
+ .catch(function (error) {
|
|
|
+ console.error(error);
|
|
|
+ });
|
|
|
+ },
|
|
|
+ // 传感器
|
|
|
+ getSensorListByDeptId() {
|
|
|
+ let that = this;
|
|
|
+ let markersList = [];
|
|
|
+ getSensorListByDeptId(that.deptId).then(function (res) {
|
|
|
+ that.sensorNum = res.data.length
|
|
|
+
|
|
|
+ })
|
|
|
+ .catch(function (error) {
|
|
|
+ console.error(error);
|
|
|
+ });
|
|
|
+ },
|
|
|
// 传感器
|
|
|
getSensorListByDeptId() {
|
|
|
let that = this;
|