From 7c8a5c53ba5d9958bbfc9616b0d8ae5b1ed80aef Mon Sep 17 00:00:00 2001 From: Joe <1712833832@qq.com> Date: Thu, 18 Jan 2024 09:11:49 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=8C=E8=BD=A6=E8=AF=B1=E5=AF=BC=E6=8F=90?= =?UTF-8?q?=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Dialogs/DrivingGuidance/index.vue | 39 +++++++++++-------- 1 file changed, 22 insertions(+), 17 deletions(-) diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/DrivingGuidance/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/DrivingGuidance/index.vue index 3b5074f2..13ef63c6 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/DrivingGuidance/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/DrivingGuidance/index.vue @@ -9,6 +9,9 @@ + 摄相机参数 @@ -76,31 +79,33 @@ export default { }, { label: '设备状态', - key: "useState", + key: "device_state", }, { label: '设备厂商', - key: "deviceVendors", + key: "brand", }, ] } }, - // watch: { - // v: { - // immediate: true, - // handler() { - // request({ - // url: `/business/stakeMark/${this.dialogData.stakeMarkId}`, - // method: "get", - // }) - // .then((result) => { - // console.log(result) - // }).catch((err) => { + watch: { + dialogData: { + immediate: true, + handler() { + request({ + url: `/business/product/${this.dialogData.product_id}`, + method: "get", + }) + .then(({ code, data }) => { + if (code != 200) return; + + this.dialogData.brand = data.brand; + }).catch((err) => { - // }); - // } - // } - // }, + }); + } + } + }, methods: { handleClickTabs() { } }