From 4920d84516bc32af903a33f01b769e4979480f69 Mon Sep 17 00:00:00 2001 From: kerwincui <164770707@qq.com> Date: Wed, 19 Mar 2025 16:27:17 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=A9=E6=A8=A1=E5=9E=8B=E5=92=8C=E4=BA=A7?= =?UTF-8?q?=E5=93=81=E6=93=8D=E4=BD=9C=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vue/src/views/iot/product/product-edit.vue | 13 +++++++++++-- vue/src/views/iot/template/index.vue | 5 ----- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/vue/src/views/iot/product/product-edit.vue b/vue/src/views/iot/product/product-edit.vue index 01a72521..eb19bf1b 100644 --- a/vue/src/views/iot/product/product-edit.vue +++ b/vue/src/views/iot/product/product-edit.vue @@ -17,7 +17,7 @@ - @@ -25,7 +25,7 @@ + :disabled="true"> @@ -231,6 +231,7 @@ export default { vertificateMethod: 3, transport: 'MQTT', imgUrl: "", + protocolCode: "JSON", }, // 表单校验 rules: { @@ -497,6 +498,14 @@ export default { this.protocolList = res.rows; }) }, + // 设备类型改变事件 + deviceTypeChange(type){ + if(type===3){ + this.form.transport="GB28181"; + }else{ + this.form.transport="MQTT"; + } + }, // 取消按钮 cancel() { this.open = false; diff --git a/vue/src/views/iot/template/index.vue b/vue/src/views/iot/template/index.vue index 0b4e3485..5bea9395 100644 --- a/vue/src/views/iot/template/index.vue +++ b/vue/src/views/iot/template/index.vue @@ -32,11 +32,6 @@ - - -