Compare commits
3 Commits
0f2f7fe8b6
...
5f94d9fb97
Author | SHA1 | Date |
---|---|---|
姚宇浩 | 5f94d9fb97 | |
姚宇浩 | de8282a502 | |
姚宇浩 | 1dc5973393 |
|
@ -119,7 +119,7 @@
|
||||||
v-for="(item, index) in jbfwqTotal"
|
v-for="(item, index) in jbfwqTotal"
|
||||||
:key="index"
|
:key="index"
|
||||||
>
|
>
|
||||||
<div class="jbggfwq_content_item_left">{{ item.name}}</div>
|
<div class="jbggfwq_content_item_left">{{ item.name }}</div>
|
||||||
<div class="jbggfwq_content_item_right">
|
<div class="jbggfwq_content_item_right">
|
||||||
<div
|
<div
|
||||||
class="jbggfwq_content_item_right_item"
|
class="jbggfwq_content_item_right_item"
|
||||||
|
@ -1825,16 +1825,25 @@ const removeCharFromArray = (arr, charToRemove) => {
|
||||||
const changeys = (name) => {
|
const changeys = (name) => {
|
||||||
if (yaosuList.value.includes(name)) {
|
if (yaosuList.value.includes(name)) {
|
||||||
yaosuList.value = yaosuList.value.filter((ch) => ch !== name);
|
yaosuList.value = yaosuList.value.filter((ch) => ch !== name);
|
||||||
|
// yaosuIcon.value[name].sj.forEach((item, index) => {
|
||||||
|
// map.removeOverlay( yaosuIcon.value[name].sj[index]);
|
||||||
|
// });
|
||||||
} else {
|
} else {
|
||||||
yaosuList.value.push(name);
|
yaosuList.value.push(name);
|
||||||
yaosuIcon.value.forEach((item,index)=>{
|
// getZyys(name);
|
||||||
createZyys()
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
// yaosuList.value = removeCharFromArray(yaosuList.value, name);
|
};
|
||||||
|
const getZyys = (name) => {
|
||||||
|
http.get(``).then((res) => {
|
||||||
|
if (res.code == 200) {
|
||||||
|
res.data.map((item, index) => {
|
||||||
|
createZyys(item, index, name);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
};
|
};
|
||||||
// 添加资源要素的图标
|
// 添加资源要素的图标
|
||||||
const createZyys = (polygon, indexx) => {
|
const createZyys = (polygon, indexx, name) => {
|
||||||
// data.fwqCoordinates = polygon.point;
|
// data.fwqCoordinates = polygon.point;
|
||||||
function createLabelDOM() {
|
function createLabelDOM() {
|
||||||
var content = document.createElement("div");
|
var content = document.createElement("div");
|
||||||
|
@ -1851,7 +1860,7 @@ const createZyys = (polygon, indexx) => {
|
||||||
content.appendChild(img2);
|
content.appendChild(img2);
|
||||||
return content;
|
return content;
|
||||||
}
|
}
|
||||||
fwq_list_arr.value[indexx] = new BMapGL.CustomOverlay(createLabelDOM, {
|
yaosuIcon.value[name].sj[indexx] = new BMapGL.CustomOverlay(createLabelDOM, {
|
||||||
point: new BMapGL.Point(...polygon.point),
|
point: new BMapGL.Point(...polygon.point),
|
||||||
opacity: 0.5,
|
opacity: 0.5,
|
||||||
offsetY: -10,
|
offsetY: -10,
|
||||||
|
@ -1860,7 +1869,7 @@ const createZyys = (polygon, indexx) => {
|
||||||
type: "customOverlay",
|
type: "customOverlay",
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
map.addOverlay(fwq_list_arr.value[indexx]);
|
map.addOverlay(yaosuIcon.value[name].sj[indexx]);
|
||||||
};
|
};
|
||||||
//----------资源要素------------
|
//----------资源要素------------
|
||||||
//点击街道,回到街道
|
//点击街道,回到街道
|
||||||
|
@ -2061,7 +2070,7 @@ const changeFwq = async (id, name, names) => {
|
||||||
); //中心点缩放
|
); //中心点缩放
|
||||||
}, 500);
|
}, 500);
|
||||||
} else {
|
} else {
|
||||||
console.log('无数据11');
|
console.log("无数据11");
|
||||||
ElMessage.warning("无数据");
|
ElMessage.warning("无数据");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -580,14 +580,14 @@ const tableHeaderColor = (arg) => {
|
||||||
return {
|
return {
|
||||||
// paddingLeft: "10px",
|
// paddingLeft: "10px",
|
||||||
letterSpacing: "1px",
|
letterSpacing: "1px",
|
||||||
fontSize: "15px",
|
|
||||||
height: "79px",
|
height: "79px",
|
||||||
backgroundColor: "#455F8A",
|
backgroundColor: "#455F8A",
|
||||||
color: "#fff",
|
color: "#fff",
|
||||||
border: "none",
|
border: "none",
|
||||||
textAlign: "center",
|
textAlign: "center",
|
||||||
fontiWght: "500",
|
fontWeight: "500",
|
||||||
fontSize: "22px",
|
fontSize: "22px",
|
||||||
|
fontFamily: "PingFangSC, PingFang SC",
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
const rowState = (row) => {
|
const rowState = (row) => {
|
||||||
|
@ -684,7 +684,7 @@ onMounted(() => {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
// font-family: YouSheBiaoTiHei;
|
// font-family: YouSheBiaoTiHei;
|
||||||
font-family: titleNore;
|
font-family: titletheRightWay, titletheRightWay;
|
||||||
text-shadow: 0px 2px 4px rgba(56, 50, 50, 0.5);
|
text-shadow: 0px 2px 4px rgba(56, 50, 50, 0.5);
|
||||||
padding: 19px 0 0 17px;
|
padding: 19px 0 0 17px;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue