From 2d9cd7c2f669d12026f56b11dfef88c4ce3f6797 Mon Sep 17 00:00:00 2001 From: wkc <978997012@qq.com> Date: Sun, 8 Feb 2026 14:01:19 +0800 Subject: [PATCH] =?UTF-8?q?feat(purchase-transaction):=20=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0clearImportHistory=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加用户手动清除导入历史功能 - 确认对话框防止误操作 - 清除localStorage中的任务记录 - 重置失败按钮、任务ID和对话框状态 - 操作成功后显示提示消息 Co-Authored-By: Claude Sonnet 4.5 --- .../src/views/ccdiPurchaseTransaction/index.vue | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/ruoyi-ui/src/views/ccdiPurchaseTransaction/index.vue b/ruoyi-ui/src/views/ccdiPurchaseTransaction/index.vue index b7725de..48b8f11 100644 --- a/ruoyi-ui/src/views/ccdiPurchaseTransaction/index.vue +++ b/ruoyi-ui/src/views/ccdiPurchaseTransaction/index.vue @@ -1218,6 +1218,23 @@ export default { return null; } }, + /** + * 清除导入历史记录 + * 用户手动触发 + */ + clearImportHistory() { + this.$confirm('确认清除上次导入记录?', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + this.clearImportTaskFromStorage(); + this.showFailureButton = false; + this.currentTaskId = null; + this.failureDialogVisible = false; + this.$message.success('已清除'); + }).catch(() => {}); + }, /** * 清除localStorage中的导入任务 */