From f0084331664d6b3a309fd2914e8001f0f5abf407 Mon Sep 17 00:00:00 2001 From: fangxiang Date: Tue, 10 Aug 2021 15:09:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=A1=E5=8F=B7=E6=BA=90=E7=BB=84=E7=9A=84?= =?UTF-8?q?=E5=A2=9E=E5=88=A0=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/ClientConnection.ts | 30 +++++++++ src/components/GroupDialog.vue | 108 ++++++++++++++++++++++++--------- src/entities/WSProtocol.ts | 52 ++++++++++++++++ src/i18n/zh-CN/index.ts | 1 + src/pages/LeftToolBar.vue | 75 +++++++++++++++++++++-- src/store/index.ts | 1 + 6 files changed, 235 insertions(+), 32 deletions(-) diff --git a/src/common/ClientConnection.ts b/src/common/ClientConnection.ts index c4046d0..a5b2991 100644 --- a/src/common/ClientConnection.ts +++ b/src/common/ClientConnection.ts @@ -302,6 +302,36 @@ export default class ClientConnection { } } + public async editSignalSourceGroup(uuid: string, name: string) { + try { + return await this.doRpc( + new Protocol.EditSignalSourcesGroupRequestEntity(0, uuid, name) + ); + } catch (e) { + console.error(e); + } + } + + public async deleteSignalSourceGroup(uuid: string) { + try { + return await this.doRpc( + new Protocol.DeleteSignalSourcesGroupRequestEntity(0, uuid) + ); + } catch (e) { + console.error(e); + } + } + + public async deleteSignalSource(uuid: string) { + try { + return await this.doRpc( + new Protocol.DeleteSignalSourcesGroupRequestEntity(0, uuid) + ); + } catch (e) { + console.error(e); + } + } + private _destoryed = false; public destory() { this._destoryed = true; diff --git a/src/components/GroupDialog.vue b/src/components/GroupDialog.vue index 0155137..cbbed7f 100644 --- a/src/components/GroupDialog.vue +++ b/src/components/GroupDialog.vue @@ -1,6 +1,6 @@