This commit is contained in:
parent
0994292df8
commit
3bf5f56e22
|
@ -815,31 +815,46 @@ const yaosuTotal = ref([
|
|||
id: 1,
|
||||
name: "幼儿园",
|
||||
img: j1,
|
||||
img_map: j1_map,
|
||||
wz: false,
|
||||
tooltip: "zyysmc",
|
||||
url: "/api/ggfwyth/ysyzt/getZyys?zyyslx=幼儿园",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
name: "小学",
|
||||
img: j2,
|
||||
img_map: j2_map,
|
||||
wz: false,
|
||||
tooltip: "zyysmc",
|
||||
url: "/api/ggfwyth/ysyzt/getZyys?zyyslx=小学",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
name: "初中",
|
||||
img: j3,
|
||||
img_map: j3_map,
|
||||
wz: false,
|
||||
tooltip: "zyysmc",
|
||||
url: "/api/ggfwyth/ysyzt/getZyys?zyyslx=初中",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
name: "高中",
|
||||
img: j4,
|
||||
img_map: j4_map,
|
||||
wz: false,
|
||||
tooltip: "zyysmc",
|
||||
url: "/api/ggfwyth/ysyzt/getZyys?zyyslx=高中",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
name: "医院",
|
||||
img: j5,
|
||||
img_map: j5_map,
|
||||
wz: false,
|
||||
tooltip: "zyysmc",
|
||||
url: "/api/ggfwyth/ysyzt/getZyys?zyyslx=医院",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
|
@ -2665,12 +2680,13 @@ const changeys = (name) => {
|
|||
tooltip = item.tooltip;
|
||||
}
|
||||
});
|
||||
if (name == "摄像头" || name == "AED") {
|
||||
if (name == "摄像头" || name == "AED" || name=='幼儿园' || name=='小学'|| name=='初中' || name=='高中'|| name=='医院') {
|
||||
getZyys(url, name, img, img_map, tooltip);
|
||||
}
|
||||
if (name == "养老机构") {
|
||||
getZyys2(name, img, img_map, tooltip);
|
||||
}
|
||||
|
||||
}
|
||||
};
|
||||
//线上接口资源要素
|
||||
|
@ -2694,6 +2710,7 @@ const getZyys = (url, name, img, img_map, tooltip) => {
|
|||
item.center = JSON.parse(newStr);
|
||||
break;
|
||||
default:
|
||||
item.center = [Number(item.jd), Number(item.wd)];
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue