|
@@ -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 => {
|