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/wander.vue |   83 ++++++++++++++++++++++++-----------------
 1 files changed, 49 insertions(+), 34 deletions(-)

diff --git a/src/views/Synthesis/wander.vue b/src/views/Synthesis/wander.vue
index de38a20..dbbfab7 100644
--- a/src/views/Synthesis/wander.vue
+++ b/src/views/Synthesis/wander.vue
@@ -2,7 +2,7 @@
   <div class="box">
     <ul>
       <li
-style="margin-left: 10px; width: 130px"
+        style="margin-left: 10px; width: 130px"
         @click="changeWander(item)"
         v-for="item in itemsOne"
       >
@@ -21,46 +21,55 @@
     return {
       itemsOne: [
         {
-          id: "1",
-          name: "synthesis.someroaming",
-          class: "c1",
+          id: '1',
+          name: 'synthesis.someroaming',
+          class: 'c1',
         },
         {
-          id: "2",
-          name: "synthesis.lineroaming",
-          class: "c2",
+          id: '2',
+          name: 'synthesis.lineroaming',
+          class: 'c2',
         },
         {
-          id: "3",
-          name: "synthesis.mouseroaming",
-          class: "c3",
+          id: '3',
+          name: 'synthesis.mouseroaming',
+          class: 'c3',
         },
         {
-          id: "4",
-          name: "synthesis.snapshot",
-          class: "c4",
+          id: '4',
+          name: 'synthesis.snapshot',
+          class: 'c4',
         },
         {
-          id: "4",
-          name: "synthesis.tdisplay",
-          class: "c5",
+          id: '4',
+          name: 'synthesis.tdisplay',
+          class: 'c5',
         },
       ],
     };
   },
+  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);
+    },
     changeWander(res) {
-      // var res_val = {
-      //   url: "",
-      //   name: res.name,
-      // };
-      // this.$bus.$emit("changetool", res_val);
       switch (res.id) {
-        case "1":
+        case '1':
           window.sgworld.Analysis.setPointFly();
           break;
-        case "2":
-          window.sgworld.Command.execute(2, 3, "", (data) => {
+        case '2':
+          window.sgworld.Command.execute(2, 3, '', (data) => {
             data.showPoint = false;
             data.showLine = true;
             data.mode = 1;
@@ -70,17 +79,23 @@
             };
             window.PathAnimationData.winIndex = layer.open({
               type: 2,
-              title: "璺緞鍔ㄧ敾",
+              title: '璺緞鍔ㄧ敾',
               shade: false,
-              area: ["352px", "690px"],
-              offset: "r",
-              skin: "other-class",
-              content: "/SmartEarthSDK/Workers/path/Path.html",
+              area: ['352px', '690px'],
+              offset: 'r',
+              skin: 'other-class',
+              content: '/SmartEarthSDK/Workers/path/Path.html',
               end: function () {
                 PathAnimationData.fly && PathAnimationData.fly.exit();
               },
             });
           });
+          break;
+        case '3':
+          sgworld.Analysis.createindoormode({ showHelp: true });
+          break;
+        case '4':
+          window.sgworld.Analysis.createScreenshot();
           break;
       }
     },
@@ -108,22 +123,22 @@
   margin: 0px;
 }
 .c1 {
-  background: url("../../assets/img/synthesis/妞渾 6.png") no-repeat center;
+  background: url('../../assets/img/synthesis/妞渾 6.png') no-repeat center;
 }
 .c2 {
-  background: url("../../assets/img/synthesis/妞渾 7 鎷疯礉 2.png") no-repeat
+  background: url('../../assets/img/synthesis/妞渾 7 鎷疯礉 2.png') no-repeat
     center;
 }
 .c3 {
-  background: url("../../assets/img/synthesis/鍥惧眰 14 鍓湰 鎷疯礉.png") no-repeat
+  background: url('../../assets/img/synthesis/鍥惧眰 14 鍓湰 鎷疯礉.png') no-repeat
     center;
 }
 .c4 {
-  background: url("../../assets/img/synthesis/鍥惧眰 74 鎷疯礉 2.png") no-repeat
+  background: url('../../assets/img/synthesis/鍥惧眰 74 鎷疯礉 2.png') no-repeat
     center;
 }
 .c5 {
-  background: url("../../assets/img/synthesis/妞渾 7 鎷疯礉 4.png") no-repeat
+  background: url('../../assets/img/synthesis/妞渾 7 鎷疯礉 4.png') no-repeat
     center;
 }
 .backimge3 {

--
Gitblit v1.9.3