From bf4cbe97c0f8272f2d699fb15b6a290d80d0be2d Mon Sep 17 00:00:00 2001 From: 3octaves <873551943@qq.com> Date: Wed, 25 Sep 2024 19:31:11 +0800 Subject: [PATCH] =?UTF-8?q?feat(frontend):=20=E6=9D=83=E9=99=90=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E9=A1=B5=20#6905?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/cluster-selector/Index.vue | 59 ++- .../components/instance-selector/Index.vue | 199 +++++++++- .../components/tendb-single-host/Index.vue | 274 ++++++++++++++ .../tendb-single-host/table/Index.vue | 340 ++++++++++++++++++ .../tendb-single-host/table/useTableData.ts | 107 ++++++ .../tendb-single-host/useTopoData.ts | 107 ++++++ .../components/module-group/Mysql.vue | 7 + .../components/module-group/TendbCluster.vue | 7 + dbm-ui/frontend/src/locales/zh-cn.json | 22 ++ .../services/model/mysql/tendbHaMachine.ts | 151 ++++++++ .../model/mysql/tendbSingleMachine.ts | 151 ++++++++ .../tendbcluster/tendbcluster-machine.ts | 12 +- .../services/source/mysqlPermissionAccount.ts | 90 ++++- .../frontend/src/services/source/tendbha.ts | 1 + .../src/services/source/tendbsingle.ts | 23 ++ .../src/views/db-manage/mysql/routes.ts | 11 + .../views/db-manage/tendb-cluster/routes.ts | 12 + .../src/views/permission-retrieve/Index.vue | 85 +++++ .../components/options/Index.vue | 161 +++++++++ .../options/components/common/config.ts | 29 ++ .../options/components/item/Domain.vue | 166 +++++++++ .../components/options/components/item/Ip.vue | 105 ++++++ .../options/components/item/UserSelect.vue | 115 ++++++ .../components/item/components/BatchInput.vue | 134 +++++++ .../components/result/Index.vue | 194 ++++++++++ .../result/components/head/Index.vue | 134 +++++++ .../head/components/MultLineText.vue | 98 +++++ .../result/components/table/DomainTable.vue | 202 +++++++++++ .../result/components/table/IpTable.vue | 213 +++++++++++ .../result/components/table/common/utils.ts | 29 ++ 30 files changed, 3209 insertions(+), 29 deletions(-) create mode 100644 dbm-ui/frontend/src/components/instance-selector/components/tendb-single-host/Index.vue create mode 100644 dbm-ui/frontend/src/components/instance-selector/components/tendb-single-host/table/Index.vue create mode 100644 dbm-ui/frontend/src/components/instance-selector/components/tendb-single-host/table/useTableData.ts create mode 100644 dbm-ui/frontend/src/components/instance-selector/components/tendb-single-host/useTopoData.ts create mode 100644 dbm-ui/frontend/src/services/model/mysql/tendbHaMachine.ts create mode 100644 dbm-ui/frontend/src/services/model/mysql/tendbSingleMachine.ts create mode 100644 dbm-ui/frontend/src/views/permission-retrieve/Index.vue create mode 100644 dbm-ui/frontend/src/views/permission-retrieve/components/options/Index.vue create mode 100644 dbm-ui/frontend/src/views/permission-retrieve/components/options/components/common/config.ts create mode 100644 dbm-ui/frontend/src/views/permission-retrieve/components/options/components/item/Domain.vue create mode 100644 dbm-ui/frontend/src/views/permission-retrieve/components/options/components/item/Ip.vue create mode 100644 dbm-ui/frontend/src/views/permission-retrieve/components/options/components/item/UserSelect.vue create mode 100644 dbm-ui/frontend/src/views/permission-retrieve/components/options/components/item/components/BatchInput.vue create mode 100644 dbm-ui/frontend/src/views/permission-retrieve/components/result/Index.vue create mode 100644 dbm-ui/frontend/src/views/permission-retrieve/components/result/components/head/Index.vue create mode 100644 dbm-ui/frontend/src/views/permission-retrieve/components/result/components/head/components/MultLineText.vue create mode 100644 dbm-ui/frontend/src/views/permission-retrieve/components/result/components/table/DomainTable.vue create mode 100644 dbm-ui/frontend/src/views/permission-retrieve/components/result/components/table/IpTable.vue create mode 100644 dbm-ui/frontend/src/views/permission-retrieve/components/result/components/table/common/utils.ts diff --git a/dbm-ui/frontend/src/components/cluster-selector/Index.vue b/dbm-ui/frontend/src/components/cluster-selector/Index.vue index 2baba4047d..f13fcf3ae4 100644 --- a/dbm-ui/frontend/src/components/cluster-selector/Index.vue +++ b/dbm-ui/frontend/src/components/cluster-selector/Index.vue @@ -101,13 +101,21 @@