From a8c424e49db9213e879bf6c44cebccdfddaa1808 Mon Sep 17 00:00:00 2001 From: BradyXu Date: Sun, 12 May 2024 02:00:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dsip=E7=BB=91=E5=AE=9A?= =?UTF-8?q?=E7=9B=91=E5=90=AC=E5=A4=9A=E7=BD=91=E5=8D=A1IP=E6=97=B6?= =?UTF-8?q?=EF=BC=8C=E6=96=B0=E5=A2=9E=E4=B8=8A=E7=BA=A7=E5=B9=B3=E5=8F=B0?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=A4=B1=E8=B4=A5=E7=9A=84=E9=97=AE=E9=A2=98?= =?UTF-8?q?=EF=BC=8C=E6=9C=AC=E5=9C=B0IP=E6=94=B9=E6=88=90=E4=BB=8E?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E7=9A=84=E5=A4=9AIP=E4=B8=8B=E6=8B=89?= =?UTF-8?q?=E9=80=89=E6=8B=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web_src/src/components/dialog/platformEdit.vue | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/web_src/src/components/dialog/platformEdit.vue b/web_src/src/components/dialog/platformEdit.vue index 4c02dfcd..06cb7c41 100755 --- a/web_src/src/components/dialog/platformEdit.vue +++ b/web_src/src/components/dialog/platformEdit.vue @@ -32,7 +32,14 @@ - + + + + @@ -165,6 +172,7 @@ export default { administrativeDivision: "", sendStreamIp: null, }, + deviceIp: [], // 存储用户选择的设备IP rules: { name: [{ required: true, message: "请输入平台名称", trigger: "blur" }], serverGBId: [ @@ -198,7 +206,7 @@ export default { console.log(res); if (res.data.code === 0) { that.platform.deviceGBId = res.data.data.username; - that.platform.deviceIp = res.data.data.deviceIp; + that.deviceIp = res.data.data.deviceIp.split(','); that.platform.devicePort = res.data.data.devicePort; that.platform.username = res.data.data.username; that.platform.password = res.data.data.password; @@ -222,7 +230,7 @@ export default { this.platform.serverIP = platform.serverIP; this.platform.serverPort = platform.serverPort; this.platform.deviceGBId = platform.deviceGBId; - this.platform.deviceIp = platform.deviceIp; + this.deviceIp = platform.deviceIp.split(','); this.platform.devicePort = platform.devicePort; this.platform.username = platform.username; this.platform.password = platform.password;