|
@@ -140,13 +140,15 @@ const handleModeChange = (value: number) => {
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
const markers = ref<any>([]);
|
|
const markers = ref<any>([]);
|
|
|
-
|
|
|
|
|
|
|
+const isCriminal = String(location.pathname).includes('criminal')
|
|
|
|
|
+let pathname = location.pathname.split('/')
|
|
|
|
|
+const targetValue = pathname[1] || 'fire'
|
|
|
const getQuery = (
|
|
const getQuery = (
|
|
|
caseId: number,
|
|
caseId: number,
|
|
|
share: boolean = false,
|
|
share: boolean = false,
|
|
|
single: boolean = false
|
|
single: boolean = false
|
|
|
) =>
|
|
) =>
|
|
|
-`./#/fireDetails/${caseId}?editOrShow=show&fromRoute=fire`
|
|
|
|
|
|
|
+`./#/fireDetails/${caseId}?editOrShow=show&fromRoute=${targetValue}`
|
|
|
// `${getFuseCodeLink(caseId, true)}${share ? "&share=1" : ""}${single ? "&single=1" : ""
|
|
// `${getFuseCodeLink(caseId, true)}${share ? "&share=1" : ""}${single ? "&single=1" : ""
|
|
|
// }#show/summary`;
|
|
// }#show/summary`;
|
|
|
|
|
|
|
@@ -162,7 +164,6 @@ const mapEl = ref<HTMLDivElement>();
|
|
|
let AMap, map;
|
|
let AMap, map;
|
|
|
const domain = location.protocol + "//" + location.host;
|
|
const domain = location.protocol + "//" + location.host;
|
|
|
let queryURL = ''
|
|
let queryURL = ''
|
|
|
-const isCriminal = String(location.pathname).includes('criminal')
|
|
|
|
|
if (isCriminal) {
|
|
if (isCriminal) {
|
|
|
queryURL = `${domain}/fusion/case/list`;
|
|
queryURL = `${domain}/fusion/case/list`;
|
|
|
const icon = document.querySelector('#app-icon')
|
|
const icon = document.querySelector('#app-icon')
|