|
@@ -519,7 +519,6 @@
|
|
this.title = '四平市态势感知平台'
|
|
this.title = '四平市态势感知平台'
|
|
}, 1000)
|
|
}, 1000)
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
- this.getResourcesCount();
|
|
|
|
this.getTodayEvents(this.getCurrentDataStr())
|
|
this.getTodayEvents(this.getCurrentDataStr())
|
|
this.getWeather(this.getCurrentDataStr())
|
|
this.getWeather(this.getCurrentDataStr())
|
|
this.getEventList(this.getCurrentDataStr(), this.pageSize, this.pageNum)
|
|
this.getEventList(this.getCurrentDataStr(), this.pageSize, this.pageNum)
|
|
@@ -528,6 +527,7 @@
|
|
this.getExposureStage(this.getCurrentDataStr())
|
|
this.getExposureStage(this.getCurrentDataStr())
|
|
this.getSupermap(this.getCurrentDataStr())
|
|
this.getSupermap(this.getCurrentDataStr())
|
|
this.getMenuEventType()
|
|
this.getMenuEventType()
|
|
|
|
+ this.getResourcesCount();
|
|
}, 2000)
|
|
}, 2000)
|
|
/** ----------------------------------weosocket开始------------------------------------- */
|
|
/** ----------------------------------weosocket开始------------------------------------- */
|
|
// this.initWebSocket()
|
|
// this.initWebSocket()
|
|
@@ -636,8 +636,8 @@
|
|
eventType.push(item.eventTypeXl)
|
|
eventType.push(item.eventTypeXl)
|
|
eventTypeDl.push(item.eventType)
|
|
eventTypeDl.push(item.eventType)
|
|
})
|
|
})
|
|
- Cookies.set("eventType",eventType)
|
|
|
|
- Cookies.set("eventTypeDl",eventTypeDl)
|
|
|
|
|
|
+ Cookies.set("eventType", eventType)
|
|
|
|
+ Cookies.set("eventTypeDl", eventTypeDl)
|
|
})
|
|
})
|
|
},
|
|
},
|
|
showDefaultImg() {
|
|
showDefaultImg() {
|
|
@@ -694,8 +694,9 @@
|
|
//每个图标对应固定颜色
|
|
//每个图标对应固定颜色
|
|
that.$set(that.resourcesList[index], "bg", getIconBg(icon));
|
|
that.$set(that.resourcesList[index], "bg", getIconBg(icon));
|
|
});
|
|
});
|
|
- console.log(that.resourcesList)
|
|
|
|
- that.fireControlViewPoint("jiaotong", "");
|
|
|
|
|
|
+ if (that.eventList.length == 0) {
|
|
|
|
+ that.fireControlViewPoint("jiaotong", "");
|
|
|
|
+ }
|
|
});
|
|
});
|
|
},
|
|
},
|
|
fireControlViewPoint(resourceTable, name) {
|
|
fireControlViewPoint(resourceTable, name) {
|
|
@@ -706,8 +707,6 @@
|
|
} else {
|
|
} else {
|
|
this.showSearch = true;
|
|
this.showSearch = true;
|
|
}
|
|
}
|
|
- console.log("name=", name);
|
|
|
|
- console.log("this.showSearch=", this.showSearch);
|
|
|
|
if (resourceTable == this.resourceTable) {
|
|
if (resourceTable == this.resourceTable) {
|
|
resourceTable = "jiaotong"
|
|
resourceTable = "jiaotong"
|
|
this.iconCurrentIndex = "jiaotong"
|
|
this.iconCurrentIndex = "jiaotong"
|
|
@@ -1079,11 +1078,13 @@
|
|
},
|
|
},
|
|
getMenuEventType() {
|
|
getMenuEventType() {
|
|
let that = this
|
|
let that = this
|
|
- that.websockSid.userId = Cookies.get('userId')
|
|
|
|
- that.websockSid.eventTypeDl = Cookies.get("eventTypeDl").split(",").length == 0 ? ['-1'] : Cookies.get("eventTypeDl").split(",")
|
|
|
|
- that.websockSid.eventType = Cookies.get("eventType").split(",").length == 0 ? ['-1'] : Cookies.get("eventType").split(",")
|
|
|
|
- that.initWebSocket(that.websockSid.userId, that.websockSid.eventTypeDl, that.websockSid.eventType)
|
|
|
|
- console.log(that.websockSid)
|
|
|
|
|
|
+ that.websockSid.userId = Cookies.get('userId')
|
|
|
|
+ that.websockSid.eventTypeDl = Cookies.get("eventTypeDl").split(",").length == 0 ? ['-1'] : Cookies.get(
|
|
|
|
+ "eventTypeDl").split(",")
|
|
|
|
+ that.websockSid.eventType = Cookies.get("eventType").split(",").length == 0 ? ['-1'] : Cookies.get("eventType")
|
|
|
|
+ .split(",")
|
|
|
|
+ that.initWebSocket(that.websockSid.userId, that.websockSid.eventTypeDl, that.websockSid.eventType)
|
|
|
|
+ console.log(that.websockSid)
|
|
},
|
|
},
|
|
dropLocation(lat, lng, eventCode) {
|
|
dropLocation(lat, lng, eventCode) {
|
|
this.$refs.supermap.dropLocation(lat, lng, 18)
|
|
this.$refs.supermap.dropLocation(lat, lng, 18)
|
|
@@ -1314,8 +1315,9 @@
|
|
let that = this
|
|
let that = this
|
|
//左侧获取事件信息统计
|
|
//左侧获取事件信息统计
|
|
getTodayEvents({
|
|
getTodayEvents({
|
|
- eventTypeIdDl: this.eventTypeIdDl.length == 0 ? Cookies.get("eventTypeDl").split(",") : this.eventTypeIdDl,
|
|
|
|
- eventTypeId: this.eventTypeId.length == 0?Cookies.get("eventType").split(","): this.eventTypeId,
|
|
|
|
|
|
+ eventTypeIdDl: this.eventTypeIdDl.length == 0 ? Cookies.get("eventTypeDl").split(",") : this
|
|
|
|
+ .eventTypeIdDl,
|
|
|
|
+ eventTypeId: this.eventTypeId.length == 0 ? Cookies.get("eventType").split(",") : this.eventTypeId,
|
|
day: day
|
|
day: day
|
|
}, loading).then(res => {
|
|
}, loading).then(res => {
|
|
this.aiTotal = res.data.aiTotal
|
|
this.aiTotal = res.data.aiTotal
|
|
@@ -1479,8 +1481,9 @@
|
|
this.eventList = []
|
|
this.eventList = []
|
|
//右侧获取事件列表
|
|
//右侧获取事件列表
|
|
getEventList({
|
|
getEventList({
|
|
- eventTypeIdDl: that.eventTypeIdDl.length == 0?Cookies.get("eventTypeDl").split(",") : that.eventTypeIdDl,
|
|
|
|
- eventTypeId: that.eventTypeId.length == 0?Cookies.get("eventType").split(",") : that.eventTypeId,
|
|
|
|
|
|
+ eventTypeIdDl: that.eventTypeIdDl.length == 0 ? Cookies.get("eventTypeDl").split(",") : that
|
|
|
|
+ .eventTypeIdDl,
|
|
|
|
+ eventTypeId: that.eventTypeId.length == 0 ? Cookies.get("eventType").split(",") : that.eventTypeId,
|
|
day: day,
|
|
day: day,
|
|
pageSize: pageSize,
|
|
pageSize: pageSize,
|
|
pageNum: pageNum,
|
|
pageNum: pageNum,
|
|
@@ -1506,7 +1509,8 @@
|
|
let that = this
|
|
let that = this
|
|
//右侧获取事件分类
|
|
//右侧获取事件分类
|
|
getEventByEventType({
|
|
getEventByEventType({
|
|
- eventTypeIdDl: that.eventTypeIdDl.length == 0 ? Cookies.get("eventTypeDl").split(",") : that.eventTypeIdDl,
|
|
|
|
|
|
+ eventTypeIdDl: that.eventTypeIdDl.length == 0 ? Cookies.get("eventTypeDl").split(",") : that
|
|
|
|
+ .eventTypeIdDl,
|
|
eventTypeId: that.eventTypeId.length == 0 ? Cookies.get("eventType").split(",") : that.eventTypeId,
|
|
eventTypeId: that.eventTypeId.length == 0 ? Cookies.get("eventType").split(",") : that.eventTypeId,
|
|
day: day
|
|
day: day
|
|
}, loading).then(res => {
|
|
}, loading).then(res => {
|
|
@@ -1531,7 +1535,8 @@
|
|
let that = this
|
|
let that = this
|
|
//右侧获取上报排名
|
|
//右侧获取上报排名
|
|
getEventByReportorOrder({
|
|
getEventByReportorOrder({
|
|
- eventTypeIdDl: that.eventTypeIdDl.length == 0 ? Cookies.get("eventTypeDl").split(",") : that.eventTypeIdDl,
|
|
|
|
|
|
+ eventTypeIdDl: that.eventTypeIdDl.length == 0 ? Cookies.get("eventTypeDl").split(",") : that
|
|
|
|
+ .eventTypeIdDl,
|
|
eventTypeId: that.eventTypeId.length == 0 ? Cookies.get("eventType").split(",") : that.eventTypeId,
|
|
eventTypeId: that.eventTypeId.length == 0 ? Cookies.get("eventType").split(",") : that.eventTypeId,
|
|
day: day
|
|
day: day
|
|
}, loading).then(res => {
|
|
}, loading).then(res => {
|
|
@@ -1644,7 +1649,8 @@
|
|
let that = this
|
|
let that = this
|
|
//右侧获取曝光台
|
|
//右侧获取曝光台
|
|
getExposureStage({
|
|
getExposureStage({
|
|
- eventTypeIdDl: that.eventTypeIdDl.length == 0 ? Cookies.get("eventTypeDl").split(",") : that.eventTypeIdDl,
|
|
|
|
|
|
+ eventTypeIdDl: that.eventTypeIdDl.length == 0 ? Cookies.get("eventTypeDl").split(",") : that
|
|
|
|
+ .eventTypeIdDl,
|
|
eventTypeId: that.eventTypeId.length == 0 ? Cookies.get("eventType").split(",") : that.eventTypeId,
|
|
eventTypeId: that.eventTypeId.length == 0 ? Cookies.get("eventType").split(",") : that.eventTypeId,
|
|
day: day
|
|
day: day
|
|
}, loading).then(res => {
|
|
}, loading).then(res => {
|
|
@@ -1946,4 +1952,4 @@
|
|
background-color: #0f3655;
|
|
background-color: #0f3655;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-</style>
|
|
|
|
|
|
+</style>
|