feat: 实现清除导入历史记录方法

This commit is contained in:
wkc
2026-02-08 18:43:28 +08:00
parent 51dc466d8e
commit b35d05a9c5

View File

@@ -485,6 +485,20 @@ export default {
handleImportDialogClose() {
// 子组件已处理文件清理
},
/** 清除导入历史记录 */
handleClearImportHistory(importType) {
if (importType === 'person') {
// 清除个人中介导入历史记录
this.clearPersonImportTaskFromStorage();
this.showPersonFailureButton = false;
this.currentPersonTaskId = null;
} else if (importType === 'entity') {
// 清除实体中介导入历史记录
this.clearEntityImportTaskFromStorage();
this.showEntityFailureButton = false;
this.currentEntityTaskId = null;
}
},
/** 处理导入完成 */
handleImportComplete(importData) {
const { taskId, hasFailures, importType, totalCount, successCount, failureCount } = importData;