From c2a697c7399dcfb3ebae5333f05f91f488d2cb41 Mon Sep 17 00:00:00 2001
From: Surpriseplus <845948745@qq.com>
Date: 星期二, 21 三月 2023 09:15:00 +0800
Subject: [PATCH] 项目管理修改,底图切换修改

---
 src/components/mapsdk.vue |   20 +++++++++++++++-----
 1 files changed, 15 insertions(+), 5 deletions(-)

diff --git a/src/components/mapsdk.vue b/src/components/mapsdk.vue
index 81e2456..2ae02a8 100644
--- a/src/components/mapsdk.vue
+++ b/src/components/mapsdk.vue
@@ -360,7 +360,7 @@
             <span>灞炴�т俊鎭�</span>
             <div style="float: right; cursor: pointer">
               <el-link
-                v-if="$store.state.propertiesName.tabDesc == '鍕樺療宸ョ偣'"
+                v-if="$store.state.propertiesName.enName == 's_surveyworksite'"
                 type="primary"
                 :underline="false"
                 @click="getPointInfo"
@@ -398,6 +398,7 @@
       </div>
       <!--鍕樺療淇℃伅寮圭獥-->
       <div
+        v-drag
         class="attributionPop"
         v-if="showAttribute"
       >
@@ -1340,6 +1341,7 @@
         tabName: tabName,
       };
       const res = await dataLib_selectFiles(obj);
+
       if (res.code != 200) {
         this.$message.error('闄勪欢鏌ヨ澶辫触');
         return
@@ -1414,12 +1416,13 @@
     },
     //鍕樺療淇℃伅琛�
     getPointInfo() {
-      this.showAttribute = !this.showAttribute;
+
       if (this.showAttribute) {
-        let attrbuteOption = workSite;
-        var name = attrbuteOption[0].table.replaceAll("_", "");
-        this.getAttributeDomFiled(name);
+
       }
+      let attrbuteOption = workSite;
+      var name = attrbuteOption[0].table.replaceAll("_", "");
+      this.getAttributeDomFiled(name);
     },
     //鑾峰彇姣忎釜琛ㄥ瓧娈靛悕绉板強闃堝��
     async getAttributeDomFiled(res) {
@@ -1467,11 +1470,18 @@
         title: title,
         filter: "workname = " + "'" + title + "'",
       }
+
       const data = await dataQuery_selectByPage(parmams);
       if (data.code != 200) {
         this.$message.error("璋冪敤鍒楄〃澶辫触,璇疯仈绯诲伐浣滀汉鍛�!");
         return;
       }
+
+      if (!data.result.length) {
+        this.$message.error("鏈煡璇㈠埌鍕樻帰淇℃伅鏁版嵁");
+        return
+      }
+      this.showAttribute = !this.showAttribute;
       var res_val = attributeFild;
       for (var i in data.result) {
         let val_Data = data.result[i];

--
Gitblit v1.9.3