From 9ce29c536ba2a636416c618761985e2b9a711ee6 Mon Sep 17 00:00:00 2001
From: lxl <lixuliang_hd@126.com>
Date: 星期四, 27 十月 2022 14:17:45 +0800
Subject: [PATCH] user

---
 src/views/Synthesis/orientation.vue |   47 +++++++++++++++++++++++++++++++----------------
 1 files changed, 31 insertions(+), 16 deletions(-)

diff --git a/src/views/Synthesis/orientation.vue b/src/views/Synthesis/orientation.vue
index a97b802..3a564a4 100644
--- a/src/views/Synthesis/orientation.vue
+++ b/src/views/Synthesis/orientation.vue
@@ -2,14 +2,14 @@
   <div class="box">
     <ul>
       <li
-        style="width: 86px"
+        style="margin-left: 20px"
         @click="changeOrietnt(item)"
         v-for="item in itemsOne"
       >
         <div class="divli">
-          <div :class="item.class" class="backimge1"></div>
+          <div :class="item.class" class="backimge6"></div>
         </div>
-        <div class="div_li">{{ item.name }}</div>
+        <div class="div_li">{{ $t(item.name) }}</div>
       </li>
     </ul>
   </div>
@@ -21,25 +21,39 @@
     return {
       itemsOne: [
         {
-          id: "1",
-          name: "鍧愭爣瀹氫綅",
-          class: "f1",
+          id: '1',
+          name: 'synthesis.gpsrtk',
+          class: 'f1',
         },
         {
-          id: "2",
-          name: "鍦板悕瀹氫綅",
-          class: "f2",
+          id: '2',
+          name: 'synthesis.placenamelocation',
+          class: 'f2',
         },
       ],
     };
   },
+  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;
+      console.log('瀹氫綅', res.tag);
+    },
     changeOrietnt(res) {
-      var res_val = {
-        url: "",
-        name: res.name,
+      var val = {
+        name: 'Coord',
+        id: res.id,
       };
-      this.$bus.$emit("changetool", res_val);
+      this.$bus.$emit('mapChangeBox', val);
     },
   },
 };
@@ -65,17 +79,18 @@
   margin: 0px;
 }
 .f1 {
-  background: url("../../assets/img/synthesis/鍥惧眰 27.png") no-repeat center;
+  background: url('../../assets/img/synthesis/鍥惧眰 27.png') no-repeat center;
 }
 .f2 {
-  background: url("../../assets/img/synthesis/鍥惧眰 28.png") no-repeat center;
+  background: url('../../assets/img/synthesis/鍥惧眰 28.png') no-repeat center;
 }
-.backimge1 {
+.backimge6 {
   width: 30px;
   height: 30px;
   margin-left: 25px;
   position: absolute;
   background-size: 100% 100%;
+  margin: 0% 35%;
 }
 .divli {
   width: 100%;

--
Gitblit v1.9.3