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