From adf21508bea06379ed8a1090640492f225be9884 Mon Sep 17 00:00:00 2001 From: lau572 <1010031226@qq.com> Date: Tue, 22 Apr 2025 09:42:09 +0800 Subject: [PATCH] =?UTF-8?q?=E9=AB=98=E9=80=9F=E4=BA=91=E4=BA=8B=E4=BB=B6?= =?UTF-8?q?=E6=B8=85=E7=A9=BA=E5=8E=86=E5=8F=B2=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/service/analysis/search/index.vue | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/service/analysis/search/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/service/analysis/search/index.vue index bf277929..c29e5232 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/service/analysis/search/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/service/analysis/search/index.vue @@ -39,6 +39,7 @@ 导出 日历 + 清空历史数据 @@ -217,6 +218,24 @@ export default { handledDialogCalendar(bool) { this.dialogVisibleCalendar = bool; }, + onDelete(){ + this.$modal + .confirm("是否清空历史导入数据?") + .then(function () { + request({ + url: "/business/sdhsEvent/deleteData", + method: "post", + }).then((result) => { + + }).catch(() => { + this.$message.error("清空失败"); + }); + }) + .then(() => { + this.onQuery(); + this.$modal.msgSuccess("清空成功"); + }) + }, }, mounted() { this.$nextTick(()=>{