|
|
@@ -332,7 +332,7 @@ export const getResource = (url: string) => {
|
|
|
// }
|
|
|
};
|
|
|
|
|
|
-let tempCache: any
|
|
|
+let tempCache: any;
|
|
|
export let getTableTemp = async () => {
|
|
|
if (tempCache) return tempCache;
|
|
|
let table: Record<string, string>;
|
|
|
@@ -345,7 +345,6 @@ export let getTableTemp = async () => {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
if (!table!) {
|
|
|
table = {
|
|
|
案发时间: "",
|
|
|
@@ -364,17 +363,17 @@ export let getTableTemp = async () => {
|
|
|
table.案发地点 = item.caseLocation;
|
|
|
table.绘图单位 = item.orgName;
|
|
|
table.绘图人 = item.investigatorName;
|
|
|
- table.绘图时间 = formatDate(new Date(), 'yyyy.mm.dd hh:MM:ss')
|
|
|
- }
|
|
|
- if (!title) {
|
|
|
- title = `“${item.crimeTimeBegin}”${item.caseLocation}${item.caseTypeName}现场平面示意图`
|
|
|
+ table.绘图时间 = formatDate(new Date(), "yyyy.mm.dd hh:MM:ss");
|
|
|
+ if (!title) {
|
|
|
+ title = `“${item.crimeTimeBegin}”${item.caseLocation}${item.caseTypeName}现场平面示意图`;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
if (!title) {
|
|
|
title = "默认标题";
|
|
|
}
|
|
|
- return tempCache = { table, title }
|
|
|
+ return (tempCache = { table, title });
|
|
|
};
|
|
|
|
|
|
export const getTileGroups = async () => {
|