Browse Source

事件详情摄像头图标接口

qinhouyu 2 years ago
parent
commit
d234f944cf
1 changed files with 6 additions and 2 deletions
  1. 6 2
      src/views/eventdetailsdialog.vue

+ 6 - 2
src/views/eventdetailsdialog.vue

@@ -1133,6 +1133,7 @@ import {
 import DHWs from '@/dahua/lib/DHWs'
 import { selectConfigKey } from "@/api/system/config";
 import Cookies from 'js-cookie';
+import request from "../utils/request";
 export default {
   dicts: ['task_source'],
   watch: {
@@ -1709,9 +1710,12 @@ console.log(this.dutysystemTableData)
           this.$refs.supermapDialog.clearMByType(type)
         }, 1000)
       } else {
-        //搜索物资
+        //搜索物资/findNearbyCameras/{longitude}/{latitude}/{radius}
         let param = { longitude: this.longitude, latitude: this.latitude, type: type, radius: this.radius }
-        listResourceByWz(param).then(res => {
+        request({
+          url: `/center-monitor/camera/findNearbyCameras/${param.longitude}/${param.latitude}/${param.radius}`,
+          method: 'get'
+        }).then(res => {
           if (res.data != null && res.data.length > 0) {
             this.resourcesListCheck.push(type)
             var markersList = []