From 16f1ef6e4cfcae87ce07e15c1d902651038653cc Mon Sep 17 00:00:00 2001 From: fangxiang Date: Wed, 11 May 2022 21:03:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=AF=E7=94=A8=E8=87=AA=E5=8A=A8=E8=8E=B7?= =?UTF-8?q?=E5=8F=96IP=E6=97=B6,=E6=98=BE=E7=A4=BA=E5=BD=93=E5=89=8D?= =?UTF-8?q?=E5=AE=9E=E9=99=85=E4=BD=BF=E7=94=A8=E7=9A=84IP=E3=80=82?= =?UTF-8?q?=E5=85=B3=E9=97=AD=E6=97=B6=E6=98=BE=E7=A4=BA=E4=B8=8A=E6=AC=A1?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E7=9A=84=E6=89=8B=E5=8A=A8IP=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/common/ClientConnection.ts | 10 ++++++ src/components/SystemSettingDialog.vue | 41 +++++++++++++++++++++---- src/entities/ApplicationConfigEntity.ts | 1 + src/entities/WSProtocol.ts | 29 +++++++++++++++++ 5 files changed, 76 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 894f8d3..989638d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "media_player_client", - "version": "1.4.4", + "version": "1.4.5", "description": "A Quasar Framework app", "productName": "MediaPlayerClient", "author": "fangxiang ", diff --git a/src/common/ClientConnection.ts b/src/common/ClientConnection.ts index ffa58e1..0f127d1 100644 --- a/src/common/ClientConnection.ts +++ b/src/common/ClientConnection.ts @@ -1044,6 +1044,16 @@ export default class ClientConnection { } } + public async getSystemNetworkInfo() { + try { + return await this.doRpc( + new Protocol.GetSystemNetworkInfoRequestEntity() + ); + } catch (e) { + console.error(e); + } + } + public destory() { if (this.ws) { this.ws.onclose = null; diff --git a/src/components/SystemSettingDialog.vue b/src/components/SystemSettingDialog.vue index 3601f18..caf0691 100644 --- a/src/components/SystemSettingDialog.vue +++ b/src/components/SystemSettingDialog.vue @@ -97,10 +97,11 @@ :options="[$t('enable'), $t('disable')]" :loading="loading" :disable="loading" + @update:model-value="autoIpChanged" /> - + {{ $t("ip address") + ":" }} @@ -108,7 +109,7 @@ + {{ $t("gateway") + ":" }} + {{ $t("netmask") + ":" }}