From 61a36bb1838af622bab27de49bfaf017edecb483 Mon Sep 17 00:00:00 2001
From: hui <770260999@qq.com>
Date: Sun, 28 Apr 2024 16:03:24 +0800
Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Dialogs/DrivingGuidance/index.vue | 8 ++--
.../device/strategy/components/TaskItem.vue | 40 ++++++++--------
.../strategy/components/taskEditDialog.vue | 47 +++++++++++--------
.../eventPlanDialog/index.vue | 8 ++--
.../plan/addAndEditDialog/index copy.vue | 12 ++---
.../event/plan/addAndEditDialog/index.vue | 8 ++--
.../views/JiHeExpressway/utils/api/batch.js | 16 ++-----
.../src/views/JiHeExpressway/utils/enum.js | 20 ++++++--
ruoyi-ui/vue.config.js | 4 +-
9 files changed, 91 insertions(+), 72 deletions(-)
diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/DrivingGuidance/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/DrivingGuidance/index.vue
index 6ec632b5..5a8efaf2 100644
--- a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/DrivingGuidance/index.vue
+++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/DrivingGuidance/index.vue
@@ -36,7 +36,7 @@ import Video from "@screen/components/Video";
import request from "@/utils/request";
import { delay } from "@screen/utils/common.js";
import { handle3CResult } from "@screen/utils/deviceControl.js";
-import { controlModelMap, gzztMap } from "@screen/utils/enum.js";
+import { inducerModeDic, inducerWorkTypeDic } from "@screen/utils/enum.js";
import { find, assign } from "lodash";
import { dialogDelayVisible } from "./../mixin";
import LineChart from "../../LineChart/index.vue";
@@ -154,11 +154,11 @@ export default {
methods: {
updateFormData(formData) {
formData.workMode &&
- this.$set(this.data, "workMode", controlModelMap[formData.workMode]); //(this.data.workMode = controlModelMap[formData.controlType]);
+ this.$set(this.data, "workMode", inducerModeDic[formData.workMode]); //(this.data.workMode = inducerModeDic[formData.controlType]);
formData.inWorkStatus &&
- this.$set(this.data, "inWorkStatus", gzztMap[formData.inWorkStatus]); //(this.data.inWorkStatus = gzztMap[formData.inWorkStatus]);
+ this.$set(this.data, "inWorkStatus", inducerWorkTypeDic[formData.inWorkStatus]); //(this.data.inWorkStatus = inducerWorkTypeDic[formData.inWorkStatus]);
formData.onWorkStatus &&
- this.$set(this.data, "onWorkStatus", gzztMap[formData.onWorkStatus]); //(this.data.onWorkStatus = gzztMap[formData.onWorkStatus]);
+ this.$set(this.data, "onWorkStatus", inducerWorkTypeDic[formData.onWorkStatus]); //(this.data.onWorkStatus = inducerWorkTypeDic[formData.onWorkStatus]);
},
handleClickTabs() { },
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 f44e8f07..3a88af8e 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
@@ -22,28 +22,31 @@
{{ awakerModeDic[editData.params.SETMD] }} {{ awakerWorkModeDic[editData.params.SETMD] }} 时长:{{ editData.params.SETTM }}分钟 {{ induceModeDic[editData.params.SETMD] }} 时长:{{ editData.params.SETTM }}分钟 {{ inducerModeDic[editData.params.mode] }} 上行:{{ inducerWorkType[editData.params.onWorkStatus] }},
+ 下行:{{inducerWorkType[editData.params.inWorkStatus] }} {{ awakerModeDic[editData.params.SETMD] }} {{ awakerWorkModeDic[editData.params.SETMD] }} 时长:{{ editData.params.SETTM }}分钟