From 284dc303e21bb1fda20d7fb952b0c9627e04d5af Mon Sep 17 00:00:00 2001 From: hui <770260999@qq.com> Date: Sun, 28 Apr 2024 18:25:14 +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 --- .../JiHeExpressway/pages/service/board/index.vue | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) 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 51a956d8..0a21499e 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/service/board/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/service/board/index.vue @@ -335,13 +335,13 @@ export default { // } }, created() { - this.____resetForm(); Promise.all([ this.____initDirection(), this.____getBoardPixel(), this.____getTemplateCategory(), this.____getAllTemplate(), ]).then((res) => { + this.____resetForm(); this.____getIotBoard(); }); }, @@ -421,7 +421,6 @@ export default { ____initDirection() { return this.getDicts("iot_board_direction").then((res) => { this.boardDirectionList = res.data; - this.form.selectedDirection = res.data[0].dictValue; }); }, //改变方向 @@ -434,15 +433,15 @@ export default { }, ____resetForm() { this.form = { - selectedDirection: "", + selectedDirection: this.boardDirectionList[0].dictValue, status: ["0", "1"], - stakeFrom: initSearch.startStakeMark, - stakeTo: initSearch.endStakeMark + stakeFrom: [+initSearch.startStakeMark[0], +initSearch.startStakeMark[1]], + stakeTo: [+initSearch.endStakeMark[0], +initSearch.endStakeMark[1]], } }, ____onResetSearchDevice() { this.____resetForm(); - this.____initDirection(); + // this.____initDirection(); this.____getIotBoard(); }, // 情报板设备 折叠面板 @@ -493,7 +492,7 @@ export default { if (!this.selectedSize) { this.selectedSize = item.otherConfig.screenSize; } - console.log(item, item.otherConfig.screenSize) + // console.log(item, item.otherConfig.screenSize) // if (!this.selectedDevices.deviceName) { // this.selectedDevices = item; // }