From 515fc8a1344f905dbc145d9ae3ca08b041228490 Mon Sep 17 00:00:00 2001 From: hui <770260999@qq.com> Date: Fri, 26 Apr 2024 22:06:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E8=AE=BE=E5=A4=87=E7=AE=A1?= =?UTF-8?q?=E6=8E=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../strategy/components/AddNEditDialog.vue | 41 +++++++++------ .../device/strategy/components/TaskItem.vue | 51 ++++++++++++++----- .../strategy/components/taskEditDialog.vue | 31 +++++++---- .../pages/control/device/strategy/index.vue | 3 +- .../views/JiHeExpressway/utils/api/batch.js | 22 ++++++++ 5 files changed, 108 insertions(+), 40 deletions(-) diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/device/strategy/components/AddNEditDialog.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/control/device/strategy/components/AddNEditDialog.vue index a66c663f..a66e0c59 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/device/strategy/components/AddNEditDialog.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/device/strategy/components/AddNEditDialog.vue @@ -189,24 +189,35 @@ export default { this.isShowTimeEdit = true; }, onDeleteTaskGroup(taskG){ - request({ - url: `/business/dcBatchFunctionsJob/time/${this.propData.id}/${taskG.time}`, - method: "DELETE" - }).then(res => { + this.$confirm("确定要删除该任务组么?", "操作确认", { + confirmButtonText: "确定", + cancelButtonText: "取消", + type: "warning", + }).then(() => { + request({ - url: `/business/dcBatchFunctionsJobGroup/${this.propData.id}`, - method: "GET" + url: `/business/dcBatchFunctionsJob/time/${this.propData.id}/${taskG.time}`, + method: "DELETE" }).then(res => { - this.editData = { - id: res.data.id, - groupName: res.data.groupName, - status: res.data.status, - remark: res.data.remark, - detailedConfiguration: res.data.detailedConfiguration - } - this.getTaskList(); //新增task后自动刷新任务列表 + request({ + url: `/business/dcBatchFunctionsJobGroup/${this.propData.id}`, + method: "GET" + }).then(res => { + this.editData = { + id: res.data.id, + groupName: res.data.groupName, + status: res.data.status, + remark: res.data.remark, + detailedConfiguration: res.data.detailedConfiguration + } + this.getTaskList(); //新增task后自动刷新任务列表 + }); + }); + + }) + .catch(() => { + this.$message.warn("取消删除。"); }); - }); }, onSubmitTime(time){ this.isShowTimeEdit = false; diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/device/strategy/components/TaskItem.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/control/device/strategy/components/TaskItem.vue index 70c28b1c..6a77bb63 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/device/strategy/components/TaskItem.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/device/strategy/components/TaskItem.vue @@ -26,11 +26,18 @@

时长:{{ editData.params.SETTM }}

-