This commit is contained in:
parent
c56c69f19f
commit
33fcfdd592
Binary file not shown.
After Width: | Height: | Size: 1.5 KiB |
Binary file not shown.
After Width: | Height: | Size: 5.0 KiB |
|
@ -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,6 +918,7 @@ const clear = () => {
|
|||
cs_choose_arr.value = [];
|
||||
cs_un_choose_arr.value = [];
|
||||
cs_dd_arr.value = [];
|
||||
xkzCenter.length = 0;
|
||||
xkzDk.length = 0;
|
||||
};
|
||||
//定义地图中点
|
||||
|
@ -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;
|
||||
|
||||
}
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue