qinhouyu 2 rokov pred
rodič
commit
287b9cca6f
2 zmenil súbory, kde vykonal 5 pridanie a 5 odobranie
  1. 1 1
      src/api/monitor.js
  2. 4 4
      src/views/monitor.vue

+ 1 - 1
src/api/monitor.js

@@ -5,7 +5,7 @@ export function selectDeviceType() {
   return request({
     url: '/center-resources/VisuForestMonitorCenterController/selectDeviceType',
     method: 'post',
-    data:{type:6}
+    data:{"deptId":deptId}
   })
 }
 // 根据设备类型查看列表

+ 4 - 4
src/views/monitor.vue

@@ -460,7 +460,7 @@
         this.placeholderMsg = "请输入云广播名称"
         this.deptId = Cookies.get("deptId")
         this.getDlblistBydeptId()
-        this.$refs.supermap.clearG();
+        // this.$refs.supermap.clearG();
       },
       chuanClick() {
         this.onLa = false
@@ -470,7 +470,7 @@
         this.placeholderMsg = "请输入传感器名称"
         this.deptId = Cookies.get("deptId")
         this.getMonitorDeviceAndDataList()
-        this.$refs.supermap.clearG();
+        // this.$refs.supermap.clearG();
       },
       chuanSet() {
         let that = this
@@ -483,7 +483,7 @@
       //传感器2
       getMonitorDeviceAndDataLists() {
         let that = this
-        getMonitorDeviceAndDataList(null).then((res) => {
+        getMonitorDeviceAndDataList(that.deptId).then((res) => {
           that.sensorNum = res.data.length
         })
       },
@@ -1068,7 +1068,7 @@
       selectDeviceType() {
         //获取左侧动态感知设备
         let that = this
-        selectDeviceType().then(res => {
+        selectDeviceType(that.deptId).then(res => {
           that.cameraMarkersList = []
           that.tempList = []
           that.visuForestCloudMapDeviceBOList = res.data.visuForestCloudMapDeviceBOList