From 36c37308b301259f51c15f51fe21c5544bbd2013 Mon Sep 17 00:00:00 2001 From: hui <770260999@qq.com> Date: Wed, 21 Feb 2024 16:48:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../JiHeExpressway/components/infoBoard/BoardInfoEditor.vue | 3 +-- .../JiHeExpressway/components/infoBoard/BoardPreview.vue | 2 +- .../src/views/JiHeExpressway/pages/service/board/index.vue | 4 ++-- ruoyi-ui/vue.config.js | 4 ++-- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/ruoyi-ui/src/views/JiHeExpressway/components/infoBoard/BoardInfoEditor.vue b/ruoyi-ui/src/views/JiHeExpressway/components/infoBoard/BoardInfoEditor.vue index b060020b..1b7d0802 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/components/infoBoard/BoardInfoEditor.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/components/infoBoard/BoardInfoEditor.vue @@ -329,7 +329,6 @@ export default { }, methods: { initData() { - console.log("调用initData+++++++"); if(this.isLocked){ return } @@ -356,7 +355,7 @@ export default { } } else { - tempTpl = _.merge(this.deviceCttDefault, this.tpl.origin); //首页弹窗,新增设备项时,需要传设备尺寸过来 + tempTpl = _.merge({}, this.deviceCttDefault, this.tpl.origin); //首页弹窗,新增设备项时,需要传设备尺寸过来 } this.dataForm = infoBoardUtils.dialogSourceFormat(tempTpl, this.type, this.mode); } else { diff --git a/ruoyi-ui/src/views/JiHeExpressway/components/infoBoard/BoardPreview.vue b/ruoyi-ui/src/views/JiHeExpressway/components/infoBoard/BoardPreview.vue index 74fc9358..ddc37af2 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/components/infoBoard/BoardPreview.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/components/infoBoard/BoardPreview.vue @@ -27,7 +27,7 @@ export default { }, tpl: { type: Object, - default: {} + default: ()=>{} }, }, watch:{ 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 d8042f78..07037a8f 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/service/board/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/service/board/index.vue @@ -498,10 +498,10 @@ export default { if (para.mode == "edit") { this.selectedBdMsg[this.boardItemEdtingIndex] = para.data; } else { - this.selectedBdMsg.push(para.data); + this.selectedBdMsg.push(_.cloneDeep(para.data)); } }else if(para.mode == "toDevice"){ - this.selectedBdMsg.push(para.data); + this.selectedBdMsg.push(_.cloneDeep(para.data)); }else{ this.____refreshPageData(para); } diff --git a/ruoyi-ui/vue.config.js b/ruoyi-ui/vue.config.js index 435592ca..afc77df4 100644 --- a/ruoyi-ui/vue.config.js +++ b/ruoyi-ui/vue.config.js @@ -50,8 +50,8 @@ module.exports = { // target: `http://10.0.81.204:8087`, //现场后台 刘文阁 // target: `http://10.168.69.255:8087`, //正晨后台 连现场物联 刘文阁 // target: `http://10.168.78.135:8087`, //王钦 - // target: `http://10.168.66.196:8087`, //正晨后台 连现场物联 刘文阁2 - target: `http://10.168.68.42:8087`, //王思祥 + target: `http://10.168.66.196:8087`, //正晨后台 连现场物联 刘文阁2 + // target: `http://10.168.68.42:8087`, //王思祥 changeOrigin: true, pathRewrite: { ["^" + process.env.VUE_APP_BASE_API]: "",