|
@@ -2100,6 +2100,7 @@ import { getDahuaVideoServer } from "@/api/dahua/dahua";
|
|
|
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: {
|
|
@@ -2817,7 +2818,14 @@ export default {
|
|
|
type: type,
|
|
|
radius: this.radius,
|
|
|
};
|
|
|
- listResourceByWz(param).then((res) => {
|
|
|
+// 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.$message.warning("设定范围内无该资源信息!")
|
|
|
+ }
|
|
|
if (res.data != null && res.data.length > 0) {
|
|
|
this.resourcesListCheck.push(type);
|
|
|
var markersList = [];
|