|
@@ -271,8 +271,8 @@ export default {
|
|
|
this.bottomMenuList(); //获取底部公共组件消息和任务
|
|
|
this.getTreeselect();
|
|
|
this.deptId = Cookies.get("deptId");
|
|
|
- this.getMonitorDeviceAndDataLists();
|
|
|
- // this.getDlblistBydeptIds();
|
|
|
+ this.getMonitorDeviceAndDataLists(null);
|
|
|
+ // this.getDlblistBydeptIds(null);
|
|
|
this.selectDeviceType(-1);
|
|
|
}, 2000)
|
|
|
},
|
|
@@ -529,16 +529,16 @@ export default {
|
|
|
this.localMark = "chuan";
|
|
|
this.placeholderMsg = "请输入传感器名称";
|
|
|
this.deptId = null;
|
|
|
- this.getMonitorDeviceAndDataList();
|
|
|
+ this.getMonitorDeviceAndDataList(null);
|
|
|
clearInterval(this.cgqTimer);
|
|
|
this.cgqTimer = setInterval(() => {
|
|
|
this.getMonitorDeviceAndDataList();
|
|
|
}, 20000);
|
|
|
},
|
|
|
//传感器2
|
|
|
- getMonitorDeviceAndDataLists() {
|
|
|
+ getMonitorDeviceAndDataLists(deptId) {
|
|
|
let that = this;
|
|
|
- getMonitorDeviceAndDataList().then((res) => {
|
|
|
+ getMonitorDeviceAndDataList(deptId).then((res) => {
|
|
|
that.sensorNum = res.data.length;
|
|
|
});
|
|
|
},
|