Compare commits

..

No commits in common. "5f94d9fb97ea40216ca828dcb83ff89cb9bddb1b" and "0f2f7fe8b69dfed157958de86f23d1b31a6b9d75" have entirely different histories.

2 changed files with 13 additions and 22 deletions

View File

@ -1825,25 +1825,16 @@ const removeCharFromArray = (arr, charToRemove) => {
const changeys = (name) => {
if (yaosuList.value.includes(name)) {
yaosuList.value = yaosuList.value.filter((ch) => ch !== name);
// yaosuIcon.value[name].sj.forEach((item, index) => {
// map.removeOverlay( yaosuIcon.value[name].sj[index]);
// });
} else {
yaosuList.value.push(name);
// getZyys(name);
yaosuIcon.value.forEach((item,index)=>{
createZyys()
})
}
};
const getZyys = (name) => {
http.get(``).then((res) => {
if (res.code == 200) {
res.data.map((item, index) => {
createZyys(item, index, name);
});
}
});
// yaosuList.value = removeCharFromArray(yaosuList.value, name);
};
//
const createZyys = (polygon, indexx, name) => {
const createZyys = (polygon, indexx) => {
// data.fwqCoordinates = polygon.point;
function createLabelDOM() {
var content = document.createElement("div");
@ -1860,7 +1851,7 @@ const createZyys = (polygon, indexx, name) => {
content.appendChild(img2);
return content;
}
yaosuIcon.value[name].sj[indexx] = new BMapGL.CustomOverlay(createLabelDOM, {
fwq_list_arr.value[indexx] = new BMapGL.CustomOverlay(createLabelDOM, {
point: new BMapGL.Point(...polygon.point),
opacity: 0.5,
offsetY: -10,
@ -1869,7 +1860,7 @@ const createZyys = (polygon, indexx, name) => {
type: "customOverlay",
},
});
map.addOverlay(yaosuIcon.value[name].sj[indexx]);
map.addOverlay(fwq_list_arr.value[indexx]);
};
//----------------------
//
@ -2070,7 +2061,7 @@ const changeFwq = async (id, name, names) => {
); //
}, 500);
} else {
console.log("无数据11");
console.log('无数据11');
ElMessage.warning("无数据");
}
}

View File

@ -580,14 +580,14 @@ const tableHeaderColor = (arg) => {
return {
// paddingLeft: "10px",
letterSpacing: "1px",
fontSize: "15px",
height: "79px",
backgroundColor: "#455F8A",
color: "#fff",
border: "none",
textAlign: "center",
fontWeight: "500",
fontiWght: "500",
fontSize: "22px",
fontFamily: "PingFangSC, PingFang SC",
};
};
const rowState = (row) => {
@ -684,7 +684,7 @@ onMounted(() => {
text-align: left;
font-style: normal;
// font-family: YouSheBiaoTiHei;
font-family: titletheRightWay, titletheRightWay;
font-family: titleNore;
text-shadow: 0px 2px 4px rgba(56, 50, 50, 0.5);
padding: 19px 0 0 17px;
}