qinhouyu před 2 roky
rodič
revize
d459b88743

Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 920 - 519
src/components/supermap-2.5d.vue


+ 25 - 1
src/views/datacenter.vue

@@ -10,7 +10,7 @@
         class="leftbar"
         :class="indentleft"
         ref="left"
-        
+
       >
         <div class="forthis" style="width:12rem !important;height: 80vh;overflow-y: hidden;">
           <dv-border-box-13
@@ -88,6 +88,7 @@ import TVWall from "@/components/TVWall.vue"; //电视墙弹窗
 import { getIconBg } from "@/api/components/sookaMapIcon"; //资源底色控制文件
 // import echarts from 'echarts'
 let echarts = require("echarts");
+import {getUserProfile} from "@/api/system/user";
 export default {
   components: {
     supermap,
@@ -104,6 +105,8 @@ export default {
     /** ----------------------------------底部按钮公用组件结束------------------------------------- */
   },
   mounted() {
+    // 初始化地图数据
+    this.getSuperMapUrl();
     this.getResource();
     this.bottomMenuList(); //获取底部公共组件消息和任务
   },
@@ -140,6 +143,27 @@ export default {
   },
 
   methods: {
+    //初始化地图数据
+    getSuperMapUrl(){
+      getUserProfile().then(response => {
+        let mapDeptId=response.mapDeptId
+        let num = 0;
+        if (mapDeptId == "365") {
+          num = 0;
+        } else if (mapDeptId == "369") {
+          num = 1;
+        } else if (mapDeptId == "371") {
+          num = 2;
+        } else if (mapDeptId == "373") {
+          num = 3;
+        } else if (mapDeptId == "372") {
+          num = 4;
+        } else if (mapDeptId == "370") {
+          num = 5;
+        }
+        this.$refs.supermap.removeAllviewer(num, -1);
+      });
+    },
     // 根据名称筛选资源点位
     searchByName() {
       this.$modal.msgSuccess("正在查询,请稍后...");

+ 25 - 0
src/views/forest.vue

@@ -427,6 +427,8 @@ import eventLocation from '@/components/eventLocation.vue' //事件定位弹窗
 import TVWall from '@/components/TVWall.vue' //电视墙弹窗
 import eventdetailsdialog from '@/views/eventdetailsdialog.vue' //事件详情弹窗
 import firespread from '@/views/firespread.vue' //事件详情弹窗
+import {getUserProfile} from "@/api/system/user";
+
 /** ----------------------------------摄像头预览开始------------------------------------- */
 import {
   getDahuaVideoServer
@@ -462,6 +464,8 @@ export default {
     /** ----------------------------------底部按钮公用组件结束------------------------------------- */
   },
   mounted() {
+    // 初始化地图数据
+    this.getSuperMapUrl();
     this.getBaseInfo()
     this.getTodayEvents(this.getCurrentDataStr())
     this.getDeptEventCount(this.getCurrentDataStr())
@@ -562,6 +566,27 @@ export default {
   },
   /** ----------------------------------weosocket结束------------------------------------- */
   methods: {
+    //初始化地图数据
+    getSuperMapUrl(){
+      getUserProfile().then(response => {
+        let mapDeptId=response.mapDeptId
+        let num = 0;
+        if (mapDeptId == "365") {
+          num = 0;
+        } else if (mapDeptId == "369") {
+          num = 1;
+        } else if (mapDeptId == "371") {
+          num = 2;
+        } else if (mapDeptId == "373") {
+          num = 3;
+        } else if (mapDeptId == "372") {
+          num = 4;
+        } else if (mapDeptId == "370") {
+          num = 5;
+        }
+        this.$refs.supermap.removeAllviewer(num, -1);
+      });
+    },
     getMenuEventType() {
       let that = this
       getMenuEventType().then(res => {

+ 24 - 0
src/views/leader.vue

@@ -84,6 +84,7 @@ import vheader from '@/components/v-header.vue' //一体化共用头部
 import vBottomMenu from '@/components/vBottomMenu.vue' //一体化公共底部菜单
 import eventLocation from '@/components/eventLocation.vue' //事件定位弹窗
 import TVWall from '@/components/TVWall.vue' //电视墙弹窗
+import {getUserProfile} from "@/api/system/user";
 
 let echarts = require('echarts')
 export default {
@@ -112,9 +113,32 @@ export default {
     /** ----------------------------------底部按钮公用组件结束------------------------------------- */
   },
   mounted() {
+    // 初始化地图数据
+    this.getSuperMapUrl();
     this.bottomMenuList() //获取底部公共组件消息和任务
   },
   methods: {
+    //初始化地图数据
+    getSuperMapUrl(){
+      getUserProfile().then(response => {
+        let mapDeptId=response.mapDeptId
+        let num = 0;
+        if (mapDeptId == "365") {
+          num = 0;
+        } else if (mapDeptId == "369") {
+          num = 1;
+        } else if (mapDeptId == "371") {
+          num = 2;
+        } else if (mapDeptId == "373") {
+          num = 3;
+        } else if (mapDeptId == "372") {
+          num = 4;
+        } else if (mapDeptId == "370") {
+          num = 5;
+        }
+        this.$refs.supermap.removeAllviewer(num, -1);
+      });
+    },
     /** ----------------------------------底部按钮公用组件开始------------------------------------- */
     bottomMenuList() {
       this.$refs.bottomMenu.selectTaskList()//获取任务列表

+ 24 - 1
src/views/monitor.vue

@@ -137,7 +137,7 @@
   import eventLocation from '@/components/eventLocation.vue' //事件定位弹窗
   import TVWall from '@/components/TVWall.vue' //电视墙弹窗
   import TVWalls from '@/components/TVWalls.vue' //电视墙弹窗
-
+  import {getUserProfile} from "@/api/system/user";
   /** ----------------------------------摄像头预览开始------------------------------------- */
   import {
     getDahuaVideoServer
@@ -174,6 +174,8 @@
       /** ----------------------------------底部按钮公用组件结束------------------------------------- */
     },
     mounted() {
+      // 初始化地图数据
+      this.getSuperMapUrl();
       this.selectKeyAreaList()
       this.bottomMenuList() //获取底部公共组件消息和任务
       this.getTreeselect()
@@ -265,6 +267,27 @@
       }
     },
     methods: {
+      //初始化地图数据
+      getSuperMapUrl(){
+        getUserProfile().then(response => {
+          let mapDeptId=response.mapDeptId
+          let num = 0;
+          if (mapDeptId == "365") {
+            num = 0;
+          } else if (mapDeptId == "369") {
+            num = 1;
+          } else if (mapDeptId == "371") {
+            num = 2;
+          } else if (mapDeptId == "373") {
+            num = 3;
+          } else if (mapDeptId == "372") {
+            num = 4;
+          } else if (mapDeptId == "370") {
+            num = 5;
+          }
+          this.$refs.supermap.removeAllviewer(num, -1);
+        });
+      },
       jump() { // 跳转云广播页面
         window.open("https://sts.sty1818.com");
       },