From 65e80ea739cf6b51fd9cff63541883e8d8b6deb1 Mon Sep 17 00:00:00 2001
From: duanxiaohai <1812246227@qq.com>
Date: Fri, 30 Aug 2024 11:29:31 +0800
Subject: [PATCH] gx
---
src/view/sy_map.vue | 79 +++++++++++++++++++++++----------------------
1 file changed, 40 insertions(+), 39 deletions(-)
diff --git a/src/view/sy_map.vue b/src/view/sy_map.vue
index 895aa71..ca6551b 100644
--- a/src/view/sy_map.vue
+++ b/src/view/sy_map.vue
@@ -225,7 +225,11 @@
退出
-
+
地图权限(123456):
{{ bjtitle }}
@@ -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 {
}
});
};