@@ -63,6 +63,13 @@ import Button from "@screen/components/Buttons/Button.vue";
import request from "@/utils/request";
import { Message } from "element-ui";
var moment = require("moment");
+import {
+ getProcessNode,
+ getProcessList,
+ postProcess,
+ postCompleteEvent,
+ postNoSkipClear,
+} from "@/api/commandDispatch";
export default {
name: "EventDetail",
@@ -134,12 +141,7 @@ export default {
}
let directionFlg = true;
-
- request({
- url: `/system/process/list`,
- method: "get",
- params: { eventId: this.formData.id },
- }).then((rows) => {
+ getProcessList(this.formData.id).then((rows) => {
console.log('rows', rows)
// if (result.code != 200) return Message.error(result?.msg);
// const rows = result.rows;
@@ -147,7 +149,7 @@ export default {
this.timeLine2List = [];
this.formData?.processConfigList.forEach((it) => {
- const process = rows.find((row) => it.nodeNode == row.processId);
+ const process = rows.find((row) => it.nodeNode == row.processId && row.processType === 1);
if (process) {
this.timeLine1List.push({
@@ -155,15 +157,6 @@ export default {
label: it.processNode,
isActive: true,
});
- this.timeLine2List.push({
- time: moment(process.operationTime || new Date()).format(
- "yyyy-MM-DD HH:mm:ss"
- ),
- name: process.operator,
- desc: process.context,
- posts: "",
- direction: directionFlg ? "left" : "right",
- });
directionFlg = !directionFlg;
} else {
this.timeLine1List.push({
@@ -173,6 +166,20 @@ export default {
});
}
});
+
+ rows.forEach(item =>{
+ this.timeLine2List.push({
+ time: moment(item.operationTime || new Date()).format(
+ "yyyy-MM-DD HH:mm:ss"
+ ),
+ name: item.operatorName,
+ desc: item.context,
+ source: item.source,
+ posts: "",
+ direction: item.source == 1 ? "right" : "left",
+ });
+ })
+
});
},
getProcessNode() {
diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/service/broadcast/addinfo copy.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/service/broadcast/addinfo copy.vue
new file mode 100644
index 00000000..ea25a129
--- /dev/null
+++ b/ruoyi-ui/src/views/JiHeExpressway/pages/service/broadcast/addinfo copy.vue
@@ -0,0 +1,973 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 左对齐
+ 左右居中
+ 右对齐
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/service/broadcast/editInfo.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/service/broadcast/editInfo.vue
new file mode 100644
index 00000000..9c2f25bc
--- /dev/null
+++ b/ruoyi-ui/src/views/JiHeExpressway/pages/service/broadcast/editInfo.vue
@@ -0,0 +1,963 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 左对齐
+ 左右居中
+ 右对齐
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/service/broadcast/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/service/broadcast/index.vue
new file mode 100644
index 00000000..f9be0a3b
--- /dev/null
+++ b/ruoyi-ui/src/views/JiHeExpressway/pages/service/broadcast/index.vue
@@ -0,0 +1,1174 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 在线
+ 离线
+
+
+
+
+ K
+
+
+
+ +
+
+
+
+
+
+ K
+
+
+
+ +
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+
+
+
+ {{ itm.deviceName }}
+
+
+ {{ itm.deviceName }}
+
+ {{ itm.deviceName }}
+
+
+
+
+
+
+
+
+
+ 暂无数据
+
+
+
+
+
+
+
+
+
+ 添加信息
+ 发布信息
+
+
+
+
+
+
+
+
+
+
+ 添加模板
+
+
+
+
+
+
+
+
{{ item.dictLabel }}
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/service/broadcast/testData/device.js b/ruoyi-ui/src/views/JiHeExpressway/pages/service/broadcast/testData/device.js
new file mode 100644
index 00000000..d88afa8f
--- /dev/null
+++ b/ruoyi-ui/src/views/JiHeExpressway/pages/service/broadcast/testData/device.js
@@ -0,0 +1,116 @@
+export default [
+ {
+ "id": 894,
+ "iotDeviceId": "8162-65535",
+ "groupId": null,
+ "productId": 0,
+ "stakeMark": "k57+595",
+ "direction": "1",
+ "deviceName": "门架式可变信息标志k57+595",
+ "deviceType": 2,
+ "installationDate": null,
+ "productionDate": null,
+ "durableYears": null,
+ "installationSite": null,
+ "useState": null,
+ "otherConfig": "{\"screenSize\":\"768*64\"}",
+ "remark": null,
+ "createTime": "2024-01-10T15:27:34.000+08:00",
+ "updateTime": null
+ },
+ {
+ "id": 895,
+ "iotDeviceId": "8166-65535",
+ "groupId": null,
+ "productId": 0,
+ "stakeMark": "k71+600",
+ "direction": "1",
+ "deviceName": "门架式可变信息标志k71+600",
+ "deviceType": 2,
+ "installationDate": null,
+ "productionDate": null,
+ "durableYears": null,
+ "installationSite": null,
+ "useState": null,
+ "otherConfig": "{\"screenSize\":\"768*64\"}",
+ "remark": null,
+ "createTime": "2024-01-10T15:27:34.000+08:00",
+ "updateTime": null
+ },
+ {
+ "id": 896,
+ "iotDeviceId": "2161-65535",
+ "groupId": null,
+ "productId": 0,
+ "stakeMark": "k82+285",
+ "direction": "1",
+ "deviceName": "门架式可变信息标志k82+285",
+ "deviceType": 2,
+ "installationDate": null,
+ "productionDate": null,
+ "durableYears": null,
+ "installationSite": null,
+ "useState": null,
+ "otherConfig": "{\"screenSize\":\"768*64\"}",
+ "remark": null,
+ "createTime": "2024-01-10T15:27:34.000+08:00",
+ "updateTime": null
+ },
+ {
+ "id": 902,
+ "iotDeviceId": "31115-65535",
+ "groupId": null,
+ "productId": 0,
+ "stakeMark": "k98+208",
+ "direction": "1",
+ "deviceName": "门架式可变信息标志k98+208",
+ "deviceType": 2,
+ "installationDate": null,
+ "productionDate": null,
+ "durableYears": null,
+ "installationSite": null,
+ "useState": null,
+ "otherConfig": "{\"screenSize\":\"768*64\"}",
+ "remark": null,
+ "createTime": "2024-01-10T15:48:59.000+08:00",
+ "updateTime": null
+ },
+ {
+ "id": 903,
+ "iotDeviceId": "31111-65535",
+ "groupId": null,
+ "productId": 0,
+ "stakeMark": "k103+900",
+ "direction": "1",
+ "deviceName": "门架式可变信息标志k103+900",
+ "deviceType": 2,
+ "installationDate": null,
+ "productionDate": null,
+ "durableYears": null,
+ "installationSite": null,
+ "useState": null,
+ "otherConfig": "{\"screenSize\":\"768*64\"}",
+ "remark": null,
+ "createTime": "2024-01-10T15:48:59.000+08:00",
+ "updateTime": null
+ },
+ {
+ "id": 904,
+ "iotDeviceId": "81221-65535",
+ "groupId": null,
+ "productId": 0,
+ "stakeMark": "k59+289",
+ "direction": "1",
+ "deviceName": "大学城入口站前板",
+ "deviceType": 2,
+ "installationDate": null,
+ "productionDate": null,
+ "durableYears": null,
+ "installationSite": null,
+ "useState": null,
+ "otherConfig": "{\"screenSize\":\"160*80\"}",
+ "remark": null,
+ "createTime": "2024-01-10T15:48:59.000+08:00",
+ "updateTime": null
+ }
+ ]
\ No newline at end of file
diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/service/broadcast/testData/direction.js b/ruoyi-ui/src/views/JiHeExpressway/pages/service/broadcast/testData/direction.js
new file mode 100644
index 00000000..aeb8802d
--- /dev/null
+++ b/ruoyi-ui/src/views/JiHeExpressway/pages/service/broadcast/testData/direction.js
@@ -0,0 +1,59 @@
+export default [
+ {
+ "searchValue": null,
+ "createBy": "admin",
+ "createTime": "2023-12-22 15:16:24",
+ "updateBy": null,
+ "updateTime": null,
+ "remark": null,
+ "params": {},
+ "dictCode": 286,
+ "dictSort": 0,
+ "dictLabel": "菏泽方向",
+ "dictValue": "1",
+ "dictType": "iot_board_direction",
+ "cssClass": null,
+ "listClass": "default",
+ "isDefault": "N",
+ "status": "0",
+ "default": false
+ },
+ {
+ "searchValue": null,
+ "createBy": "admin",
+ "createTime": "2023-12-22 15:16:31",
+ "updateBy": null,
+ "updateTime": null,
+ "remark": null,
+ "params": {},
+ "dictCode": 287,
+ "dictSort": 1,
+ "dictLabel": "济南方向",
+ "dictValue": "2",
+ "dictType": "iot_board_direction",
+ "cssClass": null,
+ "listClass": "default",
+ "isDefault": "N",
+ "status": "0",
+ "default": false
+ },
+ {
+ "searchValue": null,
+ "createBy": "admin",
+ "createTime": "2023-12-22 15:16:39",
+ "updateBy": null,
+ "updateTime": null,
+ "remark": null,
+ "params": {},
+ "dictCode": 288,
+ "dictSort": 2,
+ "dictLabel": "双向",
+ "dictValue": "3",
+ "dictType": "iot_board_direction",
+ "cssClass": null,
+ "listClass": "default",
+ "isDefault": "N",
+ "status": "0",
+ "default": false
+ }
+ ]
\ No newline at end of file
diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/service/broadcast/testData/template.js b/ruoyi-ui/src/views/JiHeExpressway/pages/service/broadcast/testData/template.js
new file mode 100644
index 00000000..8d16e15a
--- /dev/null
+++ b/ruoyi-ui/src/views/JiHeExpressway/pages/service/broadcast/testData/template.js
@@ -0,0 +1,166 @@
+export default {
+ "0": [
+ {
+ "id": 3,
+ "category": "0",
+ "content": "保持车距,控制车速",
+ "screenSize": "768*64",
+ "fontColor": "FFFF00",
+ "fontSize": "64",
+ "fontType": "2",
+ "fontSpacing": "0",
+ "rollingSpeed": null,
+ "stopTime": "50",
+ "inScreenMode": "1",
+ "formatStyle": "2",
+ "remark": null,
+ "createTime": "2024-01-06 10:40:19",
+ "updateTime": "2024-01-06 11:04:53"
+ },
+ {
+ "id": 4,
+ "category": "0",
+ "content": "山东高速欢迎您",
+ "screenSize": "768*64",
+ "fontColor": "FFFF00",
+ "fontSize": "64",
+ "fontType": "3",
+ "fontSpacing": "0",
+ "rollingSpeed": null,
+ "stopTime": "50",
+ "inScreenMode": "1",
+ "formatStyle": "2",
+ "remark": null,
+ "createTime": "2024-01-06 10:40:44",
+ "updateTime": "2024-01-06 11:04:58"
+ },
+ {
+ "id": 5,
+ "category": "0",
+ "content": "山东高速热线:96659",
+ "screenSize": "768*64",
+ "fontColor": "FFFF00",
+ "fontSize": "64",
+ "fontType": "1",
+ "fontSpacing": "0",
+ "rollingSpeed": null,
+ "stopTime": "50",
+ "inScreenMode": "1",
+ "formatStyle": "2",
+ "remark": null,
+ "createTime": "2024-01-06 10:40:56",
+ "updateTime": "2024-01-06 11:05:24"
+ },
+ {
+ "id": 9,
+ "category": "0",
+ "content": "安全带=生命带,关键时刻能救命",
+ "screenSize": "768*64",
+ "fontColor": "FFFF00",
+ "fontSize": "48",
+ "fontType": "3",
+ "fontSpacing": "0",
+ "rollingSpeed": null,
+ "stopTime": "50",
+ "inScreenMode": "1",
+ "formatStyle": "2",
+ "remark": null,
+ "createTime": "2024-01-06 10:42:21",
+ "updateTime": "2024-01-06 11:05:15"
+ }
+ ],
+ "1": [
+ {
+ "id": 6,
+ "category": "1",
+ "content": "前方施工,谨慎驾驶",
+ "screenSize": "768*64",
+ "fontColor": "FFFF00",
+ "fontSize": "64",
+ "fontType": "3",
+ "fontSpacing": "0",
+ "rollingSpeed": null,
+ "stopTime": "50",
+ "inScreenMode": "1",
+ "formatStyle": "2",
+ "remark": null,
+ "createTime": "2024-01-06 10:41:07",
+ "updateTime": "2024-01-06 11:05:36"
+ }
+ ],
+ "2": [
+ {
+ "id": 2,
+ "category": "2",
+ "content": "雨天路滑,注意安全",
+ "screenSize": "768*64",
+ "fontColor": "FFFF00",
+ "fontSize": "64",
+ "fontType": "3",
+ "fontSpacing": "0",
+ "rollingSpeed": null,
+ "stopTime": "50",
+ "inScreenMode": "1",
+ "formatStyle": "2",
+ "remark": null,
+ "createTime": "2024-01-06 10:38:44",
+ "updateTime": "2024-01-06 11:05:52"
+ },
+ {
+ "id": 10,
+ "category": "2",
+ "content": "大雾天气\n减速慢行",
+ "screenSize": "160*80",
+ "fontColor": "FFFF00",
+ "fontSize": "40",
+ "fontType": "2",
+ "fontSpacing": "0",
+ "rollingSpeed": null,
+ "stopTime": "50",
+ "inScreenMode": "1",
+ "formatStyle": "2",
+ "remark": null,
+ "createTime": "2024-01-06 10:42:59",
+ "updateTime": "2024-01-06 11:05:48"
+ }
+ ],
+ "3": [],
+ "4": [
+ {
+ "id": 8,
+ "category": "4",
+ "content": "前方发生火灾,请谨慎驾驶",
+ "screenSize": "768*64",
+ "fontColor": "FFFF00",
+ "fontSize": "64",
+ "fontType": "1",
+ "fontSpacing": "0",
+ "rollingSpeed": null,
+ "stopTime": "50",
+ "inScreenMode": "1",
+ "formatStyle": "2",
+ "remark": null,
+ "createTime": "2024-01-06 10:42:00",
+ "updateTime": null
+ }
+ ],
+ "5": [
+ {
+ "id": 7,
+ "category": "5",
+ "content": "前方事故,减速慢行",
+ "screenSize": "768*64",
+ "fontColor": "FFFF00",
+ "fontSize": "64",
+ "fontType": "1",
+ "fontSpacing": "0",
+ "rollingSpeed": null,
+ "stopTime": "50",
+ "inScreenMode": "1",
+ "formatStyle": "2",
+ "remark": null,
+ "createTime": "2024-01-06 10:41:33",
+ "updateTime": null
+ }
+ ]
+}
\ No newline at end of file
diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/service/broadcast/testData/templateCategory.js b/ruoyi-ui/src/views/JiHeExpressway/pages/service/broadcast/testData/templateCategory.js
new file mode 100644
index 00000000..2ee999ab
--- /dev/null
+++ b/ruoyi-ui/src/views/JiHeExpressway/pages/service/broadcast/testData/templateCategory.js
@@ -0,0 +1,116 @@
+export default[
+ {
+ "searchValue": null,
+ "createBy": "admin",
+ "createTime": "2023-12-22 15:14:32",
+ "updateBy": null,
+ "updateTime": null,
+ "remark": null,
+ "params": {},
+ "dictCode": 280,
+ "dictSort": 0,
+ "dictLabel": "日常通用",
+ "dictValue": "0",
+ "dictType": "iot_template_category",
+ "cssClass": null,
+ "listClass": "default",
+ "isDefault": "N",
+ "status": "0",
+ "default": false
+ },
+ {
+ "searchValue": null,
+ "createBy": "admin",
+ "createTime": "2023-12-22 15:14:41",
+ "updateBy": null,
+ "updateTime": null,
+ "remark": null,
+ "params": {},
+ "dictCode": 281,
+ "dictSort": 1,
+ "dictLabel": "施工管控",
+ "dictValue": "1",
+ "dictType": "iot_template_category",
+ "cssClass": null,
+ "listClass": "default",
+ "isDefault": "N",
+ "status": "0",
+ "default": false
+ },
+ {
+ "searchValue": null,
+ "createBy": "admin",
+ "createTime": "2023-12-22 15:14:50",
+ "updateBy": null,
+ "updateTime": null,
+ "remark": null,
+ "params": {},
+ "dictCode": 282,
+ "dictSort": 2,
+ "dictLabel": "恶劣天气",
+ "dictValue": "2",
+ "dictType": "iot_template_category",
+ "cssClass": null,
+ "listClass": "default",
+ "isDefault": "N",
+ "status": "0",
+ "default": false
+ },
+ {
+ "searchValue": null,
+ "createBy": "admin",
+ "createTime": "2023-12-22 15:14:59",
+ "updateBy": null,
+ "updateTime": null,
+ "remark": null,
+ "params": {},
+ "dictCode": 283,
+ "dictSort": 3,
+ "dictLabel": "交通拥堵",
+ "dictValue": "3",
+ "dictType": "iot_template_category",
+ "cssClass": null,
+ "listClass": "default",
+ "isDefault": "N",
+ "status": "0",
+ "default": false
+ },
+ {
+ "searchValue": null,
+ "createBy": "admin",
+ "createTime": "2023-12-22 15:15:08",
+ "updateBy": null,
+ "updateTime": null,
+ "remark": null,
+ "params": {},
+ "dictCode": 284,
+ "dictSort": 4,
+ "dictLabel": "突发事件",
+ "dictValue": "4",
+ "dictType": "iot_template_category",
+ "cssClass": null,
+ "listClass": "default",
+ "isDefault": "N",
+ "status": "0",
+ "default": false
+ },
+ {
+ "searchValue": null,
+ "createBy": "admin",
+ "createTime": "2023-12-22 15:15:16",
+ "updateBy": null,
+ "updateTime": null,
+ "remark": null,
+ "params": {},
+ "dictCode": 285,
+ "dictSort": 5,
+ "dictLabel": "警情播报",
+ "dictValue": "5",
+ "dictType": "iot_template_category",
+ "cssClass": null,
+ "listClass": "default",
+ "isDefault": "N",
+ "status": "0",
+ "default": false
+ }
+ ]
\ No newline at end of file
diff --git a/ruoyi-ui/src/views/JiHeExpressway/utils/enum.js b/ruoyi-ui/src/views/JiHeExpressway/utils/enum.js
index 5091a678..17386c34 100644
--- a/ruoyi-ui/src/views/JiHeExpressway/utils/enum.js
+++ b/ruoyi-ui/src/views/JiHeExpressway/utils/enum.js
@@ -1246,3 +1246,11 @@ export const visibilityType = {
text: "浓雾",
},
};
+
+//语音广播紧急度
+export const broadcastPriority = {
+ "1":"紧急",
+ "2":"重要",
+ "3":"一般",
+ "4":"提示"
+}
\ No newline at end of file
diff --git a/ruoyi-ui/src/views/websocket.vue b/ruoyi-ui/src/views/websocket.vue
index ab8ee3ca..d7e12c1c 100644
--- a/ruoyi-ui/src/views/websocket.vue
+++ b/ruoyi-ui/src/views/websocket.vue
@@ -114,6 +114,7 @@ export default {
mounted(){
let _this = this;
if (process.env.NODE_ENV == "development"){
+ return
let et = 1;
document.onkeydown = function (e) {
let tp = _.sample(["0", "1", "0", "1", "0", "0", "0", "1", "0"]);
@@ -137,7 +138,7 @@ export default {
"inTunnel": 0,
"roadId": 1,
"occurrenceTime": "2024-04-10 16:56:02",
- "warning_time": "2024-04-10 16:56:02",
+ "warningTime": "2024-04-10 16:56:02",
"lang": "",
"dcEventTrafficControl": {
"controlType": 1,