This commit is contained in:
duanxiaohai 2024-08-30 11:29:31 +08:00
parent 444dae5dfd
commit 65e80ea739
1 changed files with 40 additions and 39 deletions

View File

@ -225,7 +225,11 @@
退出 退出
</div> </div>
</div> </div>
<div class="btnBj" v-if="!showEdit && !dialogShow && !openD" @click="openqx()"> <div
class="btnBj"
v-if="!showEdit && !dialogShow && !openD"
@click="openqx()"
>
地图权限(123456) 地图权限(123456)
<p :style="{ color: jsqx ? 'green' : 'red' }">{{ bjtitle }}</p> <p :style="{ color: jsqx ? 'green' : 'red' }">{{ bjtitle }}</p>
</div> </div>
@ -1059,14 +1063,12 @@ const openqx = () => {
console.log(1111); console.log(1111);
if (jsqx.value) { if (jsqx.value) {
ElMessageBox.confirm("确定要取消权限吗?") ElMessageBox.confirm("确定要取消权限吗?")
.then(() => { .then(() => {
qxvalue.value='' qxvalue.value = "";
jsqx.value = false; jsqx.value = false;
}) })
.catch(() => { .catch(() => {});
});
} else { } else {
qx.value = true; qx.value = true;
} }
@ -1075,7 +1077,7 @@ const saveqx = () => {
if (qxvalue.value == qxkey) { if (qxvalue.value == qxkey) {
jsqx.value = true; jsqx.value = true;
qx.value = false; qx.value = false;
qxvalue.value='' qxvalue.value = "";
ElMessage.success("解锁成功"); ElMessage.success("解锁成功");
} else { } else {
ElMessage.error("解锁密码错误"); ElMessage.error("解锁密码错误");
@ -2568,33 +2570,33 @@ const createZyys = (polygon, indexx, name) => {
img2.src = this.properties.imgSrc2; img2.src = this.properties.imgSrc2;
// title // title
img2.title = "这是一个图标的提示文字"; img2.title =polygon.name;
// // // //
// let tooltip = document.createElement("div"); // let tooltip = document.createElement("div");
// tooltip.textContent = ""; // tooltip.textContent = "";
// tooltip.style.visibility = "hidden"; // tooltip.style.visibility = "hidden";
// tooltip.style.backgroundColor = "black"; // tooltip.style.backgroundColor = "black";
// tooltip.style.color = "#fff"; // tooltip.style.color = "#fff";
// tooltip.style.textAlign = "center"; // tooltip.style.textAlign = "center";
// tooltip.style.borderRadius = "5px"; // tooltip.style.borderRadius = "5px";
// tooltip.style.padding = "5px"; // tooltip.style.padding = "5px";
// tooltip.style.position = "absolute"; // tooltip.style.position = "absolute";
// tooltip.style.bottom = "100%"; // // tooltip.style.bottom = "100%"; //
// tooltip.style.left = "50%"; // tooltip.style.left = "50%";
// tooltip.style.transform = "translateX(-50%)"; // tooltip.style.transform = "translateX(-50%)";
// tooltip.style.zIndex = "1"; // tooltip.style.zIndex = "1";
// // // //
// content.addEventListener("mouseover", function() { // content.addEventListener("mouseover", function() {
// console.log(556); // console.log(556);
// tooltip.style.visibility = "visible"; // tooltip.style.visibility = "visible";
// }); // });
// // // //
// content.addEventListener("mouseout", function() { // content.addEventListener("mouseout", function() {
// tooltip.style.visibility = "hidden"; // tooltip.style.visibility = "hidden";
// }); // });
content.appendChild(img2); content.appendChild(img2);
// content.appendChild(tooltip); // content.appendChild(tooltip);
@ -3853,8 +3855,7 @@ const DGcreateCs = (polygon, indexx) => {
changeCsqkId.value = polygon.id; changeCsqkId.value = polygon.id;
showEdit.value = !showEdit.value; showEdit.value = !showEdit.value;
} }
}else{ } else {
} }
}); });
}; };