From f097afcf1f58422be5dad8b7868a1a6671ce6509 Mon Sep 17 00:00:00 2001 From: fangxiang Date: Wed, 22 Jun 2022 17:51:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=80=9A=E8=BF=87=E5=8F=B3?= =?UTF-8?q?=E9=94=AE=E7=AA=97=E5=8F=A3=E6=B7=BB=E5=8A=A0=E8=BD=AE=E8=AF=A2?= =?UTF-8?q?=E5=90=8E=EF=BC=8C=E5=86=8D=E6=AC=A1=E5=8F=B3=E9=94=AE=E7=AA=97?= =?UTF-8?q?=E5=8F=A3=E4=BF=AE=E6=94=B9=E8=BD=AE=E8=AF=A2=E6=97=A0=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E7=9A=84BUG=20=E8=BD=AE=E8=AF=A2=E3=80=81=E9=A2=84?= =?UTF-8?q?=E6=A1=88=E5=AF=B9=E8=AF=9D=E6=A1=86=E8=BE=93=E5=85=A5=E5=BB=B6?= =?UTF-8?q?=E6=97=B6=E6=97=B6=E5=A2=9E=E5=8A=A0=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/common/RemoteDataExangeProcesser.ts | 32 +++++++++++++++++-- src/components/PlanDialog.vue | 22 +++++++++++-- src/components/PollingSettingDialog.vue | 22 +++++++++++-- src/entities/WSProtocol.ts | 18 +++++++++-- src/i18n/zh-CN/index.ts | 1 + src/pages/WallPage.vue | 42 ++++++++++--------------- 7 files changed, 103 insertions(+), 36 deletions(-) diff --git a/package.json b/package.json index e1ea03a..96661b3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "media_player_client", - "version": "1.4.15", + "version": "1.4.16", "description": "A Quasar Framework app", "productName": "MediaPlayerClient", "author": "fangxiang ", diff --git a/src/common/RemoteDataExangeProcesser.ts b/src/common/RemoteDataExangeProcesser.ts index ebbd682..754e15c 100644 --- a/src/common/RemoteDataExangeProcesser.ts +++ b/src/common/RemoteDataExangeProcesser.ts @@ -574,13 +574,39 @@ export default class RemoteDataExangeProcesser { } } break; - case Protocol.Commands.kSetDeviceAttribute: + case Protocol.Commands.kSetDeviceAttribute: { + const temp = JSON.parse( + notify.data + ) as Protocol.SetDeviceAttributeNotifyEntity; + if (temp) { + $store.commit("setDeviceAttribute", temp.attribute); + } + } + case Protocol.Commands.kWindowPropertyValueChanged: { const temp = JSON.parse( notify.data - ) as Protocol.SetDeviceAttributeNotifyEntity; + ) as Protocol.WindowPropertyValueChangeNotifyEntity; if (temp) { - $store.commit("setDeviceAttribute", temp.attribute); + const window = $store.state.windows.find( + (element) => element && element.window_id == temp.window_id + ); + if (window) { + if (temp.name == "polling_uuid") { + $store.commit("setWindowProperty", { + window, + property_name: temp.name, + value: temp.value, + }); + } else { + console.error( + "kWindowPropertyValueChanged: name:" + + temp.name + + " .not support, value:" + + temp.value + ); + } + } } } break; diff --git a/src/components/PlanDialog.vue b/src/components/PlanDialog.vue index 682509c..8766708 100644 --- a/src/components/PlanDialog.vue +++ b/src/components/PlanDialog.vue @@ -207,13 +207,31 @@
{{ props.value }}{{ $t("s") }} - +