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(()=>{