Commit c57768c5 by 张晓玮

Merge branch 'zxw-v1.8.0' into 'v1.8.0'

跳转地图页 跳转方式修改,警情研判优化

See merge request !32
2 parents 1d58c1cf 525ef230
......@@ -214,7 +214,7 @@ export default {
alarmLevel:'',
checked: false,
selectedInfo: {},
selectedDay: moment().format('YYYY-MM-DD'),
selectedDay: '',
detailInfo: {},
editModalVisible: false,
form: {
......@@ -240,7 +240,6 @@ export default {
},
created() {
this.month = new Date()
this.defaultDate = new Date()
// 获取警情研判详情数据
this.init()
},
......@@ -258,7 +257,6 @@ export default {
this.filterChange()
},
month(newValue, oldValue) {
this.defaultDate = newValue
this.filterChange(newValue)
}
},
......@@ -272,6 +270,9 @@ export default {
dealStatus: this.checked ? 2 : 0
}
GET_ALARM_INFO_CALENDAR({ ...oParmas }).then(res => {
let firstDate = res.data && res.data.calendarList[0] && res.data.calendarList[0].alarmTime && res.data.calendarList[0].alarmTime.split(' ')[0]
this.selectedDay = firstDate
this.defaultDate = firstDate ? new Date(firstDate) : date
this.calendarData = res.data
})
},
......
......@@ -106,7 +106,7 @@ export default {
// 重置
rest() {
// this.defaultDate();
this.$set(this.searchForm, "offDate", ['', '']);
this.searchForm = {offDate: ["", ""]}
this.$refs.glsxTable.restParams()
this.tableParams = this.getParams();
},
......
......@@ -99,6 +99,7 @@ import GlsxOrganization from "@/components/glsx-organization";
import { GETJUDGMENTSEARCH, ALARM_HADOOP_EXPORT } from "@/services/alarmCenter";
import { deepClone, showToast } from "@/utils/util";
import store from "@/store";
import qs from "qs";
export default {
components: {
GlsxOrganization,
......@@ -253,13 +254,13 @@ export default {
oParams.name = row.ownerName;
oParams.standNo = row.vin;
oParams.time = row.alarmBeginTime;
let path = `/oEshield/#/monitor/activeLocation`;
let path = `/oEshield/#/monitor/activeLocation?${qs.stringify(oParams)}`;
let o = window.location.origin;
// let o = window.location.origin;
//this.$root.parentCommon.setBreadCrumbs(path);
//window.open(`${o}${path}?vin=${row.vin}`)
history.pushState(oParams, "报警位置点", path);
// history.pushState(oParams, "报警位置点", path);
window.open(path)
},
},
};
......
......@@ -104,7 +104,8 @@ import {
GET_DEVICEACTIVE_EXPORT,
} from "@/services/report";
import { deepClone, showToast } from "@/utils/util";
import {deviceActivedShortcuts} from '@/common'
import { deviceActivedShortcuts } from '@/common'
import qs from "qs";
export default {
components: {
GlsxOrganization,
......@@ -227,8 +228,9 @@ export default {
oParams.bsAddress = row.firstBsAddress;
oParams.bsTime = row.activeDate;
oParams.type = 1;
let path = `/oEshield#/monitor/activeLocation`;
history.pushState(oParams, "激活位置点", path);
let path = `/oEshield#/monitor/activeLocation?${qs.stringify(oParams)}`;
// history.pushState(oParams, "激活位置点", path);
window.open(path)
},
},
};
......
......@@ -231,12 +231,13 @@ export default {
},
// 查看轨迹
lookTrack(row){
lookTrack(row) {
let path = `/oEshield#/monitor/replay?sn=${row.sn}&isInitFence=1&name=${row.ownerName}&standno=${row.vin}&startTime=${row.journeyBeginTime||''}&endTime=${row.journeyEndTime||''}&fenceId=${row.fenceId}`;
//let query = {sn:row.sn,isInitFence:1,name:row.name,standno:row.vin};
let query = {}
//this.$router.push({path:path})
history.pushState(query, path, path);
// history.pushState(query, path, path);
window.open(path)
}
},
......
......@@ -115,6 +115,7 @@ import {
} from "@/services/report";
import { deepClone, showToast } from "@/utils/util";
import store from "@/store";
import qs from "qs";
export default {
components: {
GlsxOrganization,
......@@ -308,8 +309,9 @@ export default {
oParams.bsAddress = row.lastBsAddress;
oParams.bsTime = row.finalBsTime;
oParams.type = 2;
let path = `/oEshield#/monitor/activeLocation`;
history.pushState(oParams, "定位位置点", path);
let path = `/oEshield#/monitor/activeLocation?${qs.stringify(oParams)}`;
// history.pushState(oParams, "定位位置点", path);
window.open(path)
},
},
};
......
......@@ -225,7 +225,8 @@ export default {
//let query = {sn:row.sn,isInitFence:1,name:row.name,standno:row.vin};
let query = {};
//this.$router.push({path:path})
history.pushState(query, path, path);
// history.pushState(query, path, path);
window.open(path)
},
// 导出excel
......
......@@ -194,7 +194,8 @@ export default {
//let query = {sn:row.sn,isInitFence:1,name:row.name,standno:row.vin};
let query = {};
//this.$router.push({path:path})
history.pushState(query, path, path);
// history.pushState(query, path, path);
window.open(path)
},
// 导出excel
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!