From 582750f87e037886967cb78d997ab30a71ca477b Mon Sep 17 00:00:00 2001 From: 3octaves <873551943@qq.com> Date: Thu, 7 Nov 2024 18:41:49 +0800 Subject: [PATCH] =?UTF-8?q?feat(frontend):=20=E6=96=B0=E5=A2=9Eredis?= =?UTF-8?q?=E8=BF=81=E7=A7=BB=E5=8D=95=E6=8D=AE=20#7784?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../frontend/src/common/const/ticketTypes.ts | 2 + .../db-card-checkbox/CardCheckbox.vue | 2 +- .../components/instance-selector/Index.vue | 1 + .../manual-content-host/table/Index.vue | 1 + .../common/manual-content/table/Index.vue | 1 + .../components/mysql/useTopoData.ts | 1 - .../components/redis-host/table/Index.vue | 19 +- .../components/redis/table/Index.vue | 6 +- .../components/redis/table/useTableData.ts | 2 +- .../columns/spec-display/Panel.vue | 6 +- .../generateCloneData/index.ts | 4 + .../generateCloneData/redis/index.ts | 2 + .../generateCloneData/redis/migrateCluster.ts | 49 ++ .../generateCloneData/redis/migrateSingle.ts | 76 +++ dbm-ui/frontend/src/locales/zh-cn.json | 22 +- .../services/model/redis/redis-instance.ts | 4 +- .../services/model/ticket/details/redis.ts | 102 ++++ dbm-ui/frontend/src/services/source/redis.ts | 7 +- .../src/views/db-manage/redis/common/const.ts | 9 +- .../redis/common/edit-field/HostName.vue | 2 +- .../common/edit-field/RenderInstance.vue | 162 ++++++ .../redis/common/edit-field/VersionSelect.vue | 7 +- .../views/db-manage/redis/migrate/Index.vue | 48 ++ .../redis/migrate/pages/page1/Index.vue | 175 +++++++ .../components/cluseter-instance/Index.vue | 472 ++++++++++++++++++ .../RenderCurrentVersion.vue | 110 ++++ .../components/cluseter-instance/Row.vue | 194 +++++++ .../common/RenderOldMasterSlaveHost.vue | 228 +++++++++ .../components/common/render-spec/Index.vue | 189 +++++++ .../common/render-spec/SpecPanel.vue | 238 +++++++++ .../master-slave-instance/Index.vue | 395 +++++++++++++++ .../components/master-slave-instance/Row.vue | 223 +++++++++ .../components/master-slave-machine/Index.vue | 423 ++++++++++++++++ .../components/master-slave-machine/Row.vue | 221 ++++++++ .../redis/migrate/pages/page2/Index.vue | 87 ++++ .../src/views/db-manage/redis/routes.ts | 10 + .../src/views/db-manage/redis/toolbox-menu.ts | 6 + .../tickets/common/components/TicketClone.vue | 2 + .../components/demand-factory/Index.vue | 4 + .../demand-factory/redis/AddSlave copy.vue | 63 +++ .../redis/migrate/ClusterMigrate.vue | 76 +++ .../redis/migrate/SingleMigrate.vue | 122 +++++ 42 files changed, 3754 insertions(+), 19 deletions(-) create mode 100644 dbm-ui/frontend/src/hooks/useTicketCloneInfo/generateCloneData/redis/migrateCluster.ts create mode 100644 dbm-ui/frontend/src/hooks/useTicketCloneInfo/generateCloneData/redis/migrateSingle.ts create mode 100644 dbm-ui/frontend/src/views/db-manage/redis/common/edit-field/RenderInstance.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/redis/migrate/Index.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/redis/migrate/pages/page1/Index.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/redis/migrate/pages/page1/components/cluseter-instance/Index.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/redis/migrate/pages/page1/components/cluseter-instance/RenderCurrentVersion.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/redis/migrate/pages/page1/components/cluseter-instance/Row.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/redis/migrate/pages/page1/components/common/RenderOldMasterSlaveHost.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/redis/migrate/pages/page1/components/common/render-spec/Index.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/redis/migrate/pages/page1/components/common/render-spec/SpecPanel.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/redis/migrate/pages/page1/components/master-slave-instance/Index.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/redis/migrate/pages/page1/components/master-slave-instance/Row.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/redis/migrate/pages/page1/components/master-slave-machine/Index.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/redis/migrate/pages/page1/components/master-slave-machine/Row.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/redis/migrate/pages/page2/Index.vue create mode 100644 dbm-ui/frontend/src/views/tickets/common/components/demand-factory/redis/AddSlave copy.vue create mode 100644 dbm-ui/frontend/src/views/tickets/common/components/demand-factory/redis/migrate/ClusterMigrate.vue create mode 100644 dbm-ui/frontend/src/views/tickets/common/components/demand-factory/redis/migrate/SingleMigrate.vue diff --git a/dbm-ui/frontend/src/common/const/ticketTypes.ts b/dbm-ui/frontend/src/common/const/ticketTypes.ts index bb9c81c0e5..aefaf92028 100644 --- a/dbm-ui/frontend/src/common/const/ticketTypes.ts +++ b/dbm-ui/frontend/src/common/const/ticketTypes.ts @@ -79,6 +79,8 @@ export enum TicketTypes { REDIS_INSTANCE_OPEN = 'REDIS_INSTANCE_OPEN', // redis 主从集群启用 REDIS_INSTANCE_CLOSE = 'REDIS_INSTANCE_CLOSE', // redis 主从集群禁用 REDIS_INSTANCE_DESTROY = 'REDIS_INSTANCE_DESTROY', // redis 主从集群删除 + REDIS_CLUSTER_INS_MIGRATE = 'REDIS_CLUSTER_INS_MIGRATE', + REDIS_SINGLE_INS_MIGRATE = 'REDIS_SINGLE_INS_MIGRATE', } export enum TicketTypes { TENDBCLUSTER_APPLY = 'TENDBCLUSTER_APPLY', diff --git a/dbm-ui/frontend/src/components/db-card-checkbox/CardCheckbox.vue b/dbm-ui/frontend/src/components/db-card-checkbox/CardCheckbox.vue index 8e2e97d394..415a07f868 100644 --- a/dbm-ui/frontend/src/components/db-card-checkbox/CardCheckbox.vue +++ b/dbm-ui/frontend/src/components/db-card-checkbox/CardCheckbox.vue @@ -14,7 +14,7 @@