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