|
@@ -219,6 +219,10 @@ export const getOverviewData = genLoading(async (id: string) => {
|
|
|
};
|
|
};
|
|
|
}
|
|
}
|
|
|
const data = await get("fusion/caseOverview/info", { overviewId: id });
|
|
const data = await get("fusion/caseOverview/info", { overviewId: id });
|
|
|
|
|
+ const tabId = await getTabulationId(id)
|
|
|
|
|
+ if (tabId) {
|
|
|
|
|
+ params.value.tabulationId = tabId;
|
|
|
|
|
+ }
|
|
|
return {
|
|
return {
|
|
|
...data,
|
|
...data,
|
|
|
store: JSON.parse(data.store) || {
|
|
store: JSON.parse(data.store) || {
|
|
@@ -253,6 +257,7 @@ export const saveOverviewData = genLoading(
|
|
|
id,
|
|
id,
|
|
|
store: JSON.stringify(data.store),
|
|
store: JSON.stringify(data.store),
|
|
|
viewport: JSON.stringify(data.viewport),
|
|
viewport: JSON.stringify(data.viewport),
|
|
|
|
|
+
|
|
|
caseTabulation: {
|
|
caseTabulation: {
|
|
|
...data.caseTabulation,
|
|
...data.caseTabulation,
|
|
|
store: JSON.stringify(data.caseTabulation.store),
|
|
store: JSON.stringify(data.caseTabulation.store),
|
|
@@ -289,6 +294,9 @@ export const _getTabulationData = genLoading(async (id: string) => {
|
|
|
};
|
|
};
|
|
|
}
|
|
}
|
|
|
const data = await get(`fusion/caseTabulation/info`, { tabulationId: id });
|
|
const data = await get(`fusion/caseTabulation/info`, { tabulationId: id });
|
|
|
|
|
+ if (data.overviewId) {
|
|
|
|
|
+ params.value.overviewId = data.overviewId;
|
|
|
|
|
+ }
|
|
|
return {
|
|
return {
|
|
|
...data,
|
|
...data,
|
|
|
store: JSON.parse(data.store) || {
|
|
store: JSON.parse(data.store) || {
|
|
@@ -305,6 +313,7 @@ export const _getTabulationData = genLoading(async (id: string) => {
|
|
|
|
|
|
|
|
export const getTabulationData = async (...args: any[]) => {
|
|
export const getTabulationData = async (...args: any[]) => {
|
|
|
const result = await _getTabulationData.apply(this, args as any);
|
|
const result = await _getTabulationData.apply(this, args as any);
|
|
|
|
|
+
|
|
|
const temp = await getTableTemp();
|
|
const temp = await getTableTemp();
|
|
|
if (!result.title && temp.title) {
|
|
if (!result.title && temp.title) {
|
|
|
result.title = temp.title;
|
|
result.title = temp.title;
|