feat: 实现清除导入历史记录方法
This commit is contained in:
@@ -485,6 +485,20 @@ export default {
|
|||||||
handleImportDialogClose() {
|
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) {
|
handleImportComplete(importData) {
|
||||||
const { taskId, hasFailures, importType, totalCount, successCount, failureCount } = importData;
|
const { taskId, hasFailures, importType, totalCount, successCount, failureCount } = importData;
|
||||||
|
|||||||
Reference in New Issue
Block a user