|
@@ -445,6 +445,7 @@
|
|
|
getTodayEvents,
|
|
|
getDeptEventCount,
|
|
|
getWeather,
|
|
|
+ selectByMenuId,
|
|
|
getEventList,
|
|
|
getEventByEventType,
|
|
|
getEventByReportorOrder,
|
|
@@ -505,6 +506,7 @@
|
|
|
firespread
|
|
|
},
|
|
|
created() {
|
|
|
+ this.selectByMenuId(7)
|
|
|
/** ----------------------------------底部按钮公用组件开始------------------------------------- */
|
|
|
window.showDialog = this.showDialog
|
|
|
window.choseLayerSwitching = this.choseLayerSwitching
|
|
@@ -553,7 +555,6 @@
|
|
|
return {
|
|
|
nextbutton: false,
|
|
|
title: "",
|
|
|
- // 搜索框
|
|
|
// 搜索名称
|
|
|
searchName: undefined,
|
|
|
// 搜索类型
|
|
@@ -630,7 +631,7 @@
|
|
|
ws: null,
|
|
|
/** ----------------------------------摄像头预览结束------------------------------------- */
|
|
|
markersList: [], //点位列表
|
|
|
- cameraList: [] //摄像头列表
|
|
|
+ cameraList: [], //摄像头列表
|
|
|
}
|
|
|
},
|
|
|
/** ----------------------------------weosocket开始------------------------------------- */
|
|
@@ -643,6 +644,20 @@
|
|
|
},
|
|
|
/** ----------------------------------weosocket结束------------------------------------- */
|
|
|
methods: {
|
|
|
+ selectByMenuId(trafficVal) {
|
|
|
+ let eventType = []
|
|
|
+ let eventTypeDl = []
|
|
|
+ selectByMenuId({
|
|
|
+ menuId: trafficVal
|
|
|
+ }).then(req => {
|
|
|
+ req.data.forEach(item => {
|
|
|
+ eventType.push(item.eventTypeXl)
|
|
|
+ eventTypeDl.push(item.eventType)
|
|
|
+ })
|
|
|
+ Cookies.set("eventType",eventType)
|
|
|
+ Cookies.set("eventTypeDl",eventTypeDl)
|
|
|
+ })
|
|
|
+ },
|
|
|
showDefaultImg() {
|
|
|
let img = event.srcElement;
|
|
|
img.src =
|
|
@@ -1092,7 +1107,6 @@
|
|
|
}, 2000);
|
|
|
}
|
|
|
},
|
|
|
-
|
|
|
getMenuEventType() {
|
|
|
let that = this
|
|
|
getMenuEventType().then(res => {
|
|
@@ -1103,23 +1117,6 @@
|
|
|
console.log(that.websockSid)
|
|
|
})
|
|
|
},
|
|
|
- // searchEvent(pageSize,pageNum,eventSearch) {
|
|
|
- // this.pageSize = pageSize;
|
|
|
- // this.pageNum = pageNum;
|
|
|
- // let that = this
|
|
|
- // //事件列表搜索
|
|
|
- // this.eventList = []
|
|
|
- // //右侧获取事件列表
|
|
|
- // getEventList({ day: that.calendarDay,pageSize:pageSize,pageNum: pageNum ,eventName:eventSearch}).then(res => {
|
|
|
- // this.eventList = res.data
|
|
|
- // if (this.eventList != null && this.eventList.length > 0) {
|
|
|
- // if(this.eventList[0].eventStatusValue == 'forest_event_status_1'){
|
|
|
- // that.$refs.bottomMenu.updateAlert();
|
|
|
- // that.$refs.up.play();
|
|
|
- // }
|
|
|
- // }
|
|
|
- // })
|
|
|
- // },
|
|
|
dropLocation(lat, lng, eventCode) {
|
|
|
this.$refs.supermap.dropLocation(lat, lng, 18)
|
|
|
this.showEventDialog(eventCode, true)
|