From bf07873b4de9390b3f1e86b9026ee878f33929d1 Mon Sep 17 00:00:00 2001 From: hui <770260999@qq.com> Date: Fri, 12 Jan 2024 18:22:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B6=88=E9=99=A4bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../{boardBaseData.js => getBoardBaseData.js} | 0 ruoyi-ui/src/main.js | 4 +- ruoyi-ui/src/views/JiHeExpressway/index.vue | 3 + .../pages/service/board/testData/template.js | 330 +++++++++--------- 4 files changed, 171 insertions(+), 166 deletions(-) rename ruoyi-ui/src/common/{boardBaseData.js => getBoardBaseData.js} (100%) diff --git a/ruoyi-ui/src/common/boardBaseData.js b/ruoyi-ui/src/common/getBoardBaseData.js similarity index 100% rename from ruoyi-ui/src/common/boardBaseData.js rename to ruoyi-ui/src/common/getBoardBaseData.js diff --git a/ruoyi-ui/src/main.js b/ruoyi-ui/src/main.js index ca6e3c8e..23857822 100644 --- a/ruoyi-ui/src/main.js +++ b/ruoyi-ui/src/main.js @@ -90,8 +90,8 @@ Vue.prototype.handleTree = handleTree Vue.prototype.socket = Socket Vue.prototype.numberMul = numberMul -import boardBaseData from '@/common/boardBaseData' -boardBaseData(); +import getBoardBaseData from '@/common/getBoardBaseData' +Vue.prototype.getBoardBaseData = getBoardBaseData; // gis Vue.prototype.$GlobalConfig = config.GlobalConfig diff --git a/ruoyi-ui/src/views/JiHeExpressway/index.vue b/ruoyi-ui/src/views/JiHeExpressway/index.vue index d5817ef0..325a3dfc 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/index.vue @@ -24,6 +24,9 @@ export default { return { }; }, + mounted(){ + this.getBoardBaseData(); + }, methods: { handleChange(activeMenu) { this.$route.path != activeMenu.path && this.$router.push(activeMenu.path); diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/service/board/testData/template.js b/ruoyi-ui/src/views/JiHeExpressway/pages/service/board/testData/template.js index b5d829ca..8d16e15a 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/service/board/testData/template.js +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/service/board/testData/template.js @@ -1,164 +1,166 @@ -export default [ - { - "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 - } - ] +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