|
|
@@ -512,12 +512,25 @@
|
|
|
/** 完成出口「查看结果」:跳清洗结果统计页(导入文件列表带数据量/成功失败条数) */
|
|
|
const handleViewResult = async () => {
|
|
|
if (!shouldRunGovernAfterClean.value) {
|
|
|
- createMessage.warning('数据治理已关闭,本次导入未自动治理,可在数据页手动执行');
|
|
|
+ // 治理未开启时用双按钮弹框:可以直接开始治理,也可以先只看结果再手动治理
|
|
|
+ Modal.confirm({
|
|
|
+ title: '数据治理未开启',
|
|
|
+ content: '本次导入未自动执行数据治理。可以现在开始治理,或先查看清洗结果、稍后在数据页手动治理。',
|
|
|
+ okText: '开始治理',
|
|
|
+ cancelText: '查看结果',
|
|
|
+ centered: true,
|
|
|
+ maskClosable: false,
|
|
|
+ closable: false,
|
|
|
+ keyboard: false,
|
|
|
+ onOk: () => navigateToImportResult({ startGovern: true }),
|
|
|
+ onCancel: () => navigateToImportResult(),
|
|
|
+ });
|
|
|
+ return;
|
|
|
}
|
|
|
await navigateToImportResult();
|
|
|
};
|
|
|
|
|
|
- const navigateToImportResult = async () => {
|
|
|
+ const navigateToImportResult = async (options?: { startGovern?: boolean }) => {
|
|
|
sessionStorage.removeItem(IMPORT_FILE_INFO_STORAGE_KEY);
|
|
|
sessionStorage.removeItem(RECLEAN_CONTEXT_STORAGE_KEY);
|
|
|
markAnalysisDataChanged();
|
|
|
@@ -525,7 +538,11 @@
|
|
|
// 页签与完成出口标记经 sessionStorage 一次性传递——目标页被 keep-alive 缓存,
|
|
|
// 激活时机由 onActivated 消费该上下文决定。
|
|
|
// 跳转**不带任何 URL 参数**:「案件数据」是固定页签,带 query 会让 URL 变脏、也容易把页签身份搞乱。
|
|
|
- sessionStorage.setItem(CLEAN_RESULT_CONTEXT_KEY, JSON.stringify({ tab: 'files', mode: 'manual' }));
|
|
|
+ // startGovern=true:数据页激活后直接弹出治理进度弹框并启动治理。
|
|
|
+ sessionStorage.setItem(
|
|
|
+ CLEAN_RESULT_CONTEXT_KEY,
|
|
|
+ JSON.stringify({ tab: 'files', mode: 'manual', ...(options?.startGovern ? { govern: true } : {}) }),
|
|
|
+ );
|
|
|
await go({ path: PageEnum.BASE_HOME }, true);
|
|
|
await nextTick();
|
|
|
emitter.emit(CASE_DATA_REFRESH_EVENT);
|