From 93cc07cb2003348b6ca90d69d46c95d59a8a12c6 Mon Sep 17 00:00:00 2001 From: hui <770260999@qq.com> Date: Fri, 26 Apr 2024 21:18:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=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 | 7 +++-- .../device/strategy/components/TaskItem.vue | 31 +++++++++++++------ .../strategy/components/taskEditDialog.vue | 17 +++++----- .../strategy/components/timeEditDialog.vue | 10 +++--- .../pages/datav/gisAndBim/index.vue | 8 ++--- .../views/JiHeExpressway/utils/api/batch.js | 11 +++++++ 6 files changed, 55 insertions(+), 29 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 8f9733ea..a66c663f 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 @@ -128,6 +128,7 @@ export default { return this.visible; }, set(val) { + this.$emit("onSuccess"); this.$emit("update:value", val); }, }, @@ -143,6 +144,7 @@ export default { // : { // ...this.propData, // }; + this.taskGroupsEditing = []; this.initEditingData(); this.getTaskList(); }, @@ -163,6 +165,7 @@ export default { methods: { onSubmitTaskItem(){ this.isEditing = false; + this.selectedTaskGroup = {}; request({ url: `/business/dcBatchFunctionsJobGroup/${this.propData.id}`, method: "GET" @@ -207,9 +210,9 @@ export default { }, onSubmitTime(time){ this.isShowTimeEdit = false; - - if (this.selectedTaskGroup){ + if (Object.keys(this.selectedTaskGroup).length>0){ this.selectedTaskGroup.time = time; + this.selectedTaskGroup = {}; }else{ this.taskGroupsEditing.push({ time, tasks: [] }); } 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 03c4daf5..70c28b1c 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 @@ -18,15 +18,18 @@ - {{ editData.params.text }} + 内容:{{ editData.params.text }} - - + + + {{ gzmsDic[editData.params.SETMD] }} + 时长:{{ editData.params.SETTM }} + - + - + @@ -45,7 +48,7 @@ diff --git a/ruoyi-ui/src/views/JiHeExpressway/utils/api/batch.js b/ruoyi-ui/src/views/JiHeExpressway/utils/api/batch.js index 370e0509..3f201032 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/utils/api/batch.js +++ b/ruoyi-ui/src/views/JiHeExpressway/utils/api/batch.js @@ -46,6 +46,17 @@ export function submitTaskRequest(id, jobGroup, time, devices, params, others) { } ] + } else if (deviceType == '10') { //疲劳唤醒 + functions = [ + { + "functionId": "SETMD", + "params": { SET: params.SETMD } + }, + { + "functionId": "SETTM", + "params": { SET: params.SETTM } + } + ] } let temp = [{
{{ editData.params.text }}
内容:{{ editData.params.text }}
{{ gzmsDic[editData.params.SETMD] }}
时长:{{ editData.params.SETTM }}