|
@@ -267,7 +267,7 @@ export default {
|
|
|
// this.getSensorListByDeptIds()
|
|
|
this.getMonitorDeviceAndDataLists();
|
|
|
this.getDlblistBydeptIds();
|
|
|
- this.chuanSet();
|
|
|
+ // this.chuanSet();
|
|
|
this.selectDeviceType(-1);
|
|
|
this.bottomMenuList(); //获取底部公共组件消息和任务
|
|
|
},
|
|
@@ -275,6 +275,7 @@ export default {
|
|
|
return {
|
|
|
// 部门名称
|
|
|
cgqData: [],
|
|
|
+ cgqTimer:null,
|
|
|
deptName: undefined,
|
|
|
deptId: "",
|
|
|
// 部门树选项
|
|
@@ -360,10 +361,7 @@ export default {
|
|
|
},
|
|
|
chuanSet() {
|
|
|
if (this.onChuan) {
|
|
|
- let that = this;
|
|
|
- setInterval(function () {
|
|
|
- that.getMonitorDeviceAndDataList();
|
|
|
- }, 20000);
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
getMonitorDeviceAndDataList() {
|
|
@@ -818,6 +816,7 @@ export default {
|
|
|
this.onShe = true;
|
|
|
this.onChuan = false;
|
|
|
this.localMark = "she";
|
|
|
+ clearInterval(this.cgqTimer);
|
|
|
this.placeholderMsg = "请输入摄像头名称";
|
|
|
this.selectDeviceType();
|
|
|
},
|
|
@@ -827,6 +826,7 @@ export default {
|
|
|
this.onChuan = false;
|
|
|
this.localMark = "la";
|
|
|
this.placeholderMsg = "请输入云广播名称";
|
|
|
+ clearInterval(this.cgqTimer);
|
|
|
this.deptId = Cookies.get("deptId");
|
|
|
this.getDlblistBydeptId();
|
|
|
},
|
|
@@ -837,7 +837,12 @@ export default {
|
|
|
this.localMark = "chuan";
|
|
|
this.placeholderMsg = "请输入传感器名称";
|
|
|
this.deptId = Cookies.get("deptId");
|
|
|
- //this.getSensorListByDeptId()
|
|
|
+ let that = this;
|
|
|
+ this.getMonitorDeviceAndDataList();
|
|
|
+ clearInterval(this.cgqTimer);
|
|
|
+ this.cgqTimer = setInterval(() => {
|
|
|
+ that.getMonitorDeviceAndDataList();
|
|
|
+ }, 20 * 1000);
|
|
|
this.getMonitorDeviceAndDataList();
|
|
|
},
|
|
|
//传感器2
|