From df007d0b7f677240d9ab9b01e6bebdbad0762a0f Mon Sep 17 00:00:00 2001
From: lxl <lixuliang_hd@126.com>
Date: 星期一, 07 十一月 2022 16:22:12 +0800
Subject: [PATCH] 菜单

---
 src/views/Synthesis/inquire.vue |   77 ++++++++++++++++++++++++++------------
 1 files changed, 53 insertions(+), 24 deletions(-)

diff --git a/src/views/Synthesis/inquire.vue b/src/views/Synthesis/inquire.vue
index 75600cf..a6734cc 100644
--- a/src/views/Synthesis/inquire.vue
+++ b/src/views/Synthesis/inquire.vue
@@ -1,16 +1,5 @@
 <template>
   <div class="box">
-    <!-- <input  type="file" name="file" id="getF" @change="clickF()"></input> -->
-    <input
-      :accept="'.shp, .shx, .dbf, .prj'"
-      style="display: none"
-      type="file"
-      name="file"
-      id="getF"
-      multiple="multiple"
-      @change="setQueryFile()"
-    />
-
     <ul>
       <li
         style="margin-left: 20px"
@@ -71,18 +60,49 @@
         },
       ],
       rel_name: null,
+      analyStatus: {
+        upload: false,
+        download: false,
+      },
     };
   },
+  created() {
+    var cover_Id = this.$store.state.syntiesis.menu;
+    var cover_perms = this.$store.state.permsEntity;
+
+    for (var i = 0; i < cover_perms.length; i++) {
+      if (cover_perms[i].pid == cover_Id) {
+        this.showViewMenu(cover_perms[i]);
+      }
+    }
+  },
   methods: {
+    showViewMenu(res) {
+      if (res.cnName != '鏌ヨ') return;
+
+      switch (res.tag) {
+        case '/upload':
+          this.analyStatus.upload = true;
+          break;
+        case '/download':
+          this.analyStatus.download = true;
+          break;
+      }
+    },
     changeIquery(res) {
-      if (res.id == '7') {
-        this.getQueryFile();
-      } else {
-        var val = {
-          name: 'Query',
-          id: res.id,
-        };
-        this.$bus.$emit('mapChangeBox', val);
+      this.$store.state.mapMenuBoolean = false;
+      this.$store.state.mapMenuBoxFlag = null;
+      this.$store.state.mapPopBoolean = false;
+      this.$store.state.mapPopBoxFlag = null;
+      switch (res.id) {
+        case '6':
+          this.$store.state.mapMenuBoolean = true;
+          this.$store.state.mapMenuBoxFlag = '2';
+          break;
+        case '7':
+          this.$store.state.mapMenuBoolean = true;
+          this.$store.state.mapMenuBoxFlag = '1';
+          break;
       }
     },
     getQueryFile() {
@@ -107,7 +127,7 @@
         return;
       }
       const data = await comprehensive_uploadShp(formData);
-      debugger;
+
       // $.ajax(BASE_URL + '/comprehensive/uploadShp?token=' + getToken(), {
       //   type: 'post',
       //   data: formData,
@@ -169,6 +189,12 @@
 .e7 {
   background: url('../../assets/img/synthesis/鍥惧眰 24.png') no-repeat center;
 }
+
+.divli {
+  width: 100%;
+  height: 50%;
+  position: relative;
+}
 .backimge5 {
   width: 30px;
   height: 30px;
@@ -177,9 +203,12 @@
   background-size: 100% 100%;
   margin: 0% 30%;
 }
-.divli {
-  width: 100%;
-  height: 50%;
-  position: relative;
+.backimgex {
+  width: 30px;
+  height: 30px;
+  margin-left: 25px;
+  position: absolute;
+  background-size: 100% 100%;
+  margin: 0% 30%;
 }
 </style>

--
Gitblit v1.9.3