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") }} - +