This commit is contained in:
姚宇浩 2024-08-14 15:29:29 +08:00
parent c56c69f19f
commit 33fcfdd592
3 changed files with 12 additions and 7 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

View File

@ -236,7 +236,8 @@ import j7 from "@/assets/images/map/j7.png";
import j8 from "@/assets/images/map/j8.png";
import j9 from "@/assets/images/map/j9.png";
import j10 from "@/assets/images/map/j10.png";
import j11 from "@/assets/images/sxt_map.png";
import j11 from "@/assets/images/map/j11.png";
import j11_map from "@/assets/images/map/j11_map.png";
import dwd from "@/assets/images/map/dwd.png";
import fwqbg1 from "@/assets/images/map/qlv.png";
import fwqbg2 from "@/assets/images/map/qlan.png";
@ -696,6 +697,7 @@ const yaosuTotal = ref([
id: 11,
name: "摄像头",
img: j11,
img_map:j11_map,
wz: false,
url: "/api/ggfwyth/ysyzt/getJashsxt",
},
@ -916,7 +918,8 @@ const clear = () => {
cs_choose_arr.value = [];
cs_un_choose_arr.value = [];
cs_dd_arr.value = [];
xkzDk.length = 0;
xkzCenter.length = 0;
xkzDk.length = 0;
};
//
const goMapCenter = (point, zoom) => {
@ -1763,23 +1766,26 @@ const changeys = (name) => {
yaosuList.value.push(name);
let url;
let img;
let img_map;
yaosuTotal.value.forEach((item, index) => {
if (item.name == name) {
url = item.url;
img = item.img;
img_map=item.img_map;
}
});
if (name == "摄像头") {
getZyys(url, name, img);
getZyys(url, name, img,img_map);
}
}
};
const getZyys = (url, name, img) => {
const getZyys = (url, name, img,img_map) => {
http.get(url).then((res) => {
if (res.code == 200) {
yaosuIcon.value[name].sj = res.data;
yaosuIcon.value[name].sj.forEach((item, index) => {
item.img = img;
item.img_map = img_map;
item.overlay = null;
item.center = [];
item.center.push(Number(item.jd));
@ -1815,7 +1821,7 @@ const createZyys = (polygon, indexx, name) => {
opacity: 0.5,
offsetY: -10,
properties: {
imgSrc2: polygon.img,
imgSrc2: polygon.img_map,
type: "customOverlay",
},
}
@ -1988,7 +1994,6 @@ const person_detail = (age, tagId) => {
index + 1 + (pagination.currentPage - 1) * pagination.pageSize;
});
pagination.total = res.count;
}
});
};
@ -2582,7 +2587,7 @@ const createCustomOverlayJd2 = (polygon, indexx) => {
//
const loadCs = (name) => {
xkzCenter.length = 0;
xkzDk.length=0;
xkzDk.length = 0;
cssj.forEach((item, index) => {
if (item.name == name) {
csqk.value = item.sj;