From 3fb99781d2bdf37162fa5a84538b0d31361134a2 Mon Sep 17 00:00:00 2001 From: hui <770260999@qq.com> Date: Tue, 12 Mar 2024 14:47:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=83=85=E6=8A=A5=E6=9D=BF=E5=8F=91=E5=B8=83?= =?UTF-8?q?=E5=A4=9A=E4=B8=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/api/board/board.js | 2 +- .../views/JiHeExpressway/mixins/InfoBoard.js | 4 +- .../pages/service/board/boardData.json | 1 - .../pages/service/board/index.vue | 182 +++--------------- ruoyi-ui/vue.config.js | 4 +- 5 files changed, 31 insertions(+), 162 deletions(-) delete mode 100644 ruoyi-ui/src/views/JiHeExpressway/pages/service/board/boardData.json diff --git a/ruoyi-ui/src/api/board/board.js b/ruoyi-ui/src/api/board/board.js index 3f893fd9..4378d3cc 100644 --- a/ruoyi-ui/src/api/board/board.js +++ b/ruoyi-ui/src/api/board/board.js @@ -43,7 +43,7 @@ export function saveBoardReleaseLog(data) { export function publishToBoard(data) { return request({ - url: '/business/board/publish', + url: '/business/board/batch/publish', method: 'post', data: data }) diff --git a/ruoyi-ui/src/views/JiHeExpressway/mixins/InfoBoard.js b/ruoyi-ui/src/views/JiHeExpressway/mixins/InfoBoard.js index 5d9b420e..f168c54d 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/mixins/InfoBoard.js +++ b/ruoyi-ui/src/views/JiHeExpressway/mixins/InfoBoard.js @@ -78,7 +78,7 @@ export default{ }) }) - let data = { content: content, deviceId: this.selectedDevice.iotDeviceId } + let data = { content: content, deviceIdList: this.checkedDeviceIds } if (IS_TESTING) { // this.saveLog(content); @@ -107,7 +107,7 @@ export default{ // saveLog(content){ let time = moment().format("YYYY-MM-DD HH:mm:ss"); - let device = this.selectedDevice; + let device = this.selectedDevices; let data = { "createBy": store.getters.name, "createTime": time, diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/service/board/boardData.json b/ruoyi-ui/src/views/JiHeExpressway/pages/service/board/boardData.json deleted file mode 100644 index 881570aa..00000000 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/service/board/boardData.json +++ /dev/null @@ -1 +0,0 @@ -"{\"support\":{\"PROTOCOL_TYPE\":\"GUANGDIAN_V33\",\"FONT_SIZE\":\"3232,2424,1616\",\"DEVICEID\":\"102111101\",\"COLOR\":\"红色,绿色,蓝色,黄色\",\"FONT\":\"宋体,黑体,楷体\"},\"content\":[{\"ITEM000\":[{\"SPEED\":\"1\",\"FONT_SIZE\":\"3232\",\"ACTION\":\"1\",\"COLOR\":\"黄色\",\"STATE\":true,\"CONTENT\":\"进入隧道 请开大灯1\",\"COORDINATE\":\"063004\",\"FONT\":\"黑体\",\"STAY\":\"500\"}]}]}" \ No newline at end of file diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/service/board/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/service/board/index.vue index cb8fa6b1..bcd95fe0 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/service/board/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/service/board/index.vue @@ -83,15 +83,21 @@ -
{{ itm.deviceName }}
+ +
{{ itm.deviceName }}
+
+ +
{{ itm.deviceName }}
+
+
{{ itm.deviceName }}
@@ -307,29 +313,12 @@