diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/Broadcast/components/BroadcastReleases.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/Broadcast/components/BroadcastReleases.vue
index 6bd999ca..b8ce4ed6 100644
--- a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/Broadcast/components/BroadcastReleases.vue
+++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/Broadcast/components/BroadcastReleases.vue
@@ -10,28 +10,65 @@
{{ data.deviceName }}(当前)
-
-
-
+
+
+
+
+
+
+
+ 取值范围 1 - 9
+
+
+
+
+
+
+
+ 取值范围 1 - 16
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -46,7 +83,7 @@ import request from "@/utils/request";
import { getDeviceList } from "@screen/pages/Home/components/RoadAndEvents/utils/httpList.js";
import { Message } from "element-ui";
-
+import { broadcastPriority } from "@screen/utils/enum.js";
export default {
name: "BroadcastReleases",
components: {
@@ -67,10 +104,25 @@ export default {
},
data() {
return {
+ broadcastPriority,
submitting: false,
checkList: [],
- releaseMessage: null,
+ dataForm: {
+ content:"",
+ priority:"1",
+ repeatTimes:3,
+ outVol:6
+ },
musicList: [],
+ dataRule: {
+ content: [
+ {
+ required: true,
+ message: "请输入详细内容",
+ trigger: "blur",
+ },
+ ]
+ },
};
},
computed: {
@@ -94,7 +146,7 @@ export default {
},
methods: {
handleSubmit() {
- if (!this.releaseMessage?.trim())
+ if (!this.dataForm.content?.trim())
return Message.error("发布内容不能为空!");
if (!this.checkList.length)
return Message.error("请至少选择一个广播设备!");
@@ -113,12 +165,11 @@ export default {
"functionId": "A1",
"params": {
"name": "task-3",
- "outVol": "6",
- "priority": "1",
- "text": "山东高速欢迎您",
- "repeatTimes": "3",
+ "outVol": "" + this.dataForm.outVol,
+ "priority": "" + this.dataForm.priority,
+ "text": this.dataForm.content.trim(),
+ "repeatTimes": "" + this.dataForm.repeatTimes,
"termList": [
-
{
...JSON.parse(i)
}
@@ -157,7 +208,7 @@ export default {