From 3fc1fb2e61886d9335ea6dbac931fcbb0145e414 Mon Sep 17 00:00:00 2001 From: chenwenchang <479999519@qq.com> Date: Fri, 10 Jan 2025 11:55:04 +0800 Subject: [PATCH] =?UTF-8?q?feat(frontend):=20=E5=B7=A5=E5=85=B7=E7=AE=B1?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E8=B5=84=E6=BA=90=E6=B1=A0=E5=8D=8F=E8=AE=AE?= =?UTF-8?q?=E5=8F=98=E6=9B=B4=5F=E9=83=A8=E7=BD=B2=E5=8F=AA=E8=AF=BB?= =?UTF-8?q?=E6=8E=A5=E5=85=A5=E5=B1=82=20#8076=20#=20Reviewed,=20transacti?= =?UTF-8?q?on=20id:=2028997?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Create.vue | 206 +++++++++++++++ .../TENDBCLUSTER_SPIDER_SLAVE_APPLY/Index.vue | 32 +++ .../components/ClusterColumn.vue | 176 +++++++++++++ .../components/spec-column/Index.vue | 145 +++++++++++ .../spec-column/components/Panel.vue | 238 ++++++++++++++++++ .../views/db-manage/tendb-cluster/routes.ts | 9 +- .../db-manage/tendb-cluster/toolbox-menu.ts | 2 +- 7 files changed, 799 insertions(+), 9 deletions(-) create mode 100644 dbm-ui/frontend/src/views/db-manage/tendb-cluster/TENDBCLUSTER_SPIDER_SLAVE_APPLY/Create.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/tendb-cluster/TENDBCLUSTER_SPIDER_SLAVE_APPLY/Index.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/tendb-cluster/TENDBCLUSTER_SPIDER_SLAVE_APPLY/components/ClusterColumn.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/tendb-cluster/TENDBCLUSTER_SPIDER_SLAVE_APPLY/components/spec-column/Index.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/tendb-cluster/TENDBCLUSTER_SPIDER_SLAVE_APPLY/components/spec-column/components/Panel.vue diff --git a/dbm-ui/frontend/src/views/db-manage/tendb-cluster/TENDBCLUSTER_SPIDER_SLAVE_APPLY/Create.vue b/dbm-ui/frontend/src/views/db-manage/tendb-cluster/TENDBCLUSTER_SPIDER_SLAVE_APPLY/Create.vue new file mode 100644 index 0000000000..a825de31cc --- /dev/null +++ b/dbm-ui/frontend/src/views/db-manage/tendb-cluster/TENDBCLUSTER_SPIDER_SLAVE_APPLY/Create.vue @@ -0,0 +1,206 @@ + + + + diff --git a/dbm-ui/frontend/src/views/db-manage/tendb-cluster/TENDBCLUSTER_SPIDER_SLAVE_APPLY/Index.vue b/dbm-ui/frontend/src/views/db-manage/tendb-cluster/TENDBCLUSTER_SPIDER_SLAVE_APPLY/Index.vue new file mode 100644 index 0000000000..7d5a04e740 --- /dev/null +++ b/dbm-ui/frontend/src/views/db-manage/tendb-cluster/TENDBCLUSTER_SPIDER_SLAVE_APPLY/Index.vue @@ -0,0 +1,32 @@ + + + + diff --git a/dbm-ui/frontend/src/views/db-manage/tendb-cluster/TENDBCLUSTER_SPIDER_SLAVE_APPLY/components/ClusterColumn.vue b/dbm-ui/frontend/src/views/db-manage/tendb-cluster/TENDBCLUSTER_SPIDER_SLAVE_APPLY/components/ClusterColumn.vue new file mode 100644 index 0000000000..d29f9a58ea --- /dev/null +++ b/dbm-ui/frontend/src/views/db-manage/tendb-cluster/TENDBCLUSTER_SPIDER_SLAVE_APPLY/components/ClusterColumn.vue @@ -0,0 +1,176 @@ + + + + + diff --git a/dbm-ui/frontend/src/views/db-manage/tendb-cluster/TENDBCLUSTER_SPIDER_SLAVE_APPLY/components/spec-column/Index.vue b/dbm-ui/frontend/src/views/db-manage/tendb-cluster/TENDBCLUSTER_SPIDER_SLAVE_APPLY/components/spec-column/Index.vue new file mode 100644 index 0000000000..e6a3365fbb --- /dev/null +++ b/dbm-ui/frontend/src/views/db-manage/tendb-cluster/TENDBCLUSTER_SPIDER_SLAVE_APPLY/components/spec-column/Index.vue @@ -0,0 +1,145 @@ + + + + + diff --git a/dbm-ui/frontend/src/views/db-manage/tendb-cluster/TENDBCLUSTER_SPIDER_SLAVE_APPLY/components/spec-column/components/Panel.vue b/dbm-ui/frontend/src/views/db-manage/tendb-cluster/TENDBCLUSTER_SPIDER_SLAVE_APPLY/components/spec-column/components/Panel.vue new file mode 100644 index 0000000000..9872a6225c --- /dev/null +++ b/dbm-ui/frontend/src/views/db-manage/tendb-cluster/TENDBCLUSTER_SPIDER_SLAVE_APPLY/components/spec-column/components/Panel.vue @@ -0,0 +1,238 @@ + + + + + diff --git a/dbm-ui/frontend/src/views/db-manage/tendb-cluster/routes.ts b/dbm-ui/frontend/src/views/db-manage/tendb-cluster/routes.ts index 6988bc8368..f8d6746e47 100644 --- a/dbm-ui/frontend/src/views/db-manage/tendb-cluster/routes.ts +++ b/dbm-ui/frontend/src/views/db-manage/tendb-cluster/routes.ts @@ -47,14 +47,7 @@ const spiderProxyScaleUpRoute = createRouteItem(TicketTypes.TENDBCLUSTER_SPIDER_ const spiderProxyScaleDownRoute = createRouteItem(TicketTypes.TENDBCLUSTER_SPIDER_REDUCE_NODES, t('缩容接入层')); -const spiderProxySlaveApplyRoute = { - name: 'SpiderProxySlaveApply', - path: 'proxy-slave-apply/:page?', - meta: { - navName: t('部署只读接入层'), - }, - component: () => import('@views/db-manage/tendb-cluster/proxy-slave-apply/Index.vue'), -}; +const spiderProxySlaveApplyRoute = createRouteItem(TicketTypes.TENDBCLUSTER_SPIDER_SLAVE_APPLY, t('部署只读接入层')); const spiderAddMntRoute = createRouteItem(TicketTypes.TENDBCLUSTER_SPIDER_MNT_APPLY, t('添加运维节点')); diff --git a/dbm-ui/frontend/src/views/db-manage/tendb-cluster/toolbox-menu.ts b/dbm-ui/frontend/src/views/db-manage/tendb-cluster/toolbox-menu.ts index 9c30de1723..782d2be534 100644 --- a/dbm-ui/frontend/src/views/db-manage/tendb-cluster/toolbox-menu.ts +++ b/dbm-ui/frontend/src/views/db-manage/tendb-cluster/toolbox-menu.ts @@ -98,7 +98,7 @@ export default [ children: [ { name: t('部署只读接入层'), - id: 'SpiderProxySlaveApply', + id: TicketTypes.TENDBCLUSTER_SPIDER_SLAVE_APPLY, parentId: 'spider_entry', dbConsoleValue: 'tendbCluster.toolbox.proxySlaveApply', },