소스 검색

monitor加参数

qinhouyu 2 년 전
부모
커밋
287b9cca6f
2개의 변경된 파일5개의 추가작업 그리고 5개의 파일을 삭제
  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({
   return request({
     url: '/center-resources/VisuForestMonitorCenterController/selectDeviceType',
     url: '/center-resources/VisuForestMonitorCenterController/selectDeviceType',
     method: 'post',
     method: 'post',
-    data:{type:6}
+    data:{"deptId":deptId}
   })
   })
 }
 }
 // 根据设备类型查看列表
 // 根据设备类型查看列表

+ 4 - 4
src/views/monitor.vue

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