This commit is contained in:
duanxiaohai 2024-08-21 08:59:36 +08:00
commit cc111a3994
1 changed files with 20 additions and 6 deletions

View File

@ -867,6 +867,10 @@ const closeEdit = async () => {
});
addCsChoose();
showEdit.value = false;
let a = document.documentElement.getElementsByClassName("left")[0];
a.style.opacity = "1";
let b = document.documentElement.getElementsByClassName("right")[0];
b.style.opacity = "1";
};
//
const saveDK = async () => {
@ -878,7 +882,10 @@ const saveDK = async () => {
)
.then((res) => {
if (res.code == 200) {
ElMessage.success("编辑成功");
ElMessage.success({
message: "保存成功",
offset: 100, //
});
}
});
await getCssj();
@ -2975,9 +2982,16 @@ const DGcreateCs = (polygon, indexx) => {
});
map.addOverlay(cs_dd_arr.value[indexx]);
cs_dd_arr.value[indexx].addEventListener("click", () => {
if (showEdit.value) {
} else {
console.log(polygon.id);
changeCsqkId.value = polygon.id;
showEdit.value = !showEdit.value;
let a = document.documentElement.getElementsByClassName("left")[0];
a.style.opacity = "0";
let b = document.documentElement.getElementsByClassName("right")[0];
b.style.opacity = "0";
}
});
};
//(+)
@ -3148,7 +3162,7 @@ onMounted(async () => {
flex-direction: column;
z-index: 12;
overflow: hidden;
transition: opacity 1s;
//
.lyx {
.content_item2 {
@ -3396,7 +3410,7 @@ onMounted(async () => {
flex-direction: column;
z-index: 12;
overflow: hidden;
transition: opacity 1s;
.jbggfwq {
.jbggfwq_content {
height: 520px;