From ecdb39202ea37824a1a2c7c6c70a26ddec1662bd Mon Sep 17 00:00:00 2001 From: chenwenchang <479999519@qq.com> Date: Tue, 10 Dec 2024 16:41:53 +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=20#8076?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/editable-table/Index.vue | 3 +- .../components/editable-table/edit/Block.vue | 2 +- .../components/editable-table/edit/Input.vue | 7 +- .../components/editable-table/edit/Select.vue | 27 +- .../components/editable-table/edit/Text.vue | 10 +- .../components/instance-selector/Index.vue | 16 +- .../columns/spec-display/Panel.vue | 16 +- .../resource-host-selector/Index.vue | 24 +- dbm-ui/frontend/src/demo/Index.vue | 2 +- dbm-ui/frontend/src/hooks/index.ts | 1 + dbm-ui/frontend/src/hooks/useCreateTicket.tsx | 55 +- dbm-ui/frontend/src/locales/zh-cn.json | 30 +- .../services/model/db-resource/DbResource.ts | 2 + .../model/mysql/remote-pair-instance.ts | 8 + dbm-ui/frontend/src/services/source/dbbase.ts | 2 + .../frontend/src/services/source/ticket.tsx | 15 + dbm-ui/frontend/src/services/types/common.ts | 5 + .../src/services/types/db/clusterListSpec.ts | 2 + .../src/services/types/instanceInfos.ts | 18 +- .../frontend/src/utils/createToolboxRoute.ts | 19 + dbm-ui/frontend/src/utils/index.ts | 1 + .../cluster-capacity-usage-rate/Index.vue | 2 +- .../common/create-ticket-success/Index.vue | 219 +++++ .../column/hybrid-host-column/Index.vue | 230 +++++ .../column/multiple-host-column/Index.vue | 233 +++++ .../{ => column}/operation-column/Index.vue | 0 .../column/single-host-column/Index.vue | 152 ++++ .../form-item/backup-source/Index.vue | 28 + .../form-item/ignore-biz/Index.vue | 31 + .../form-item/ticket-remark/Index.vue | 18 + .../db-manage/doris/common/shrink/Index.vue | 4 +- .../elastic-search/common/shrink/Index.vue | 6 +- .../db-manage/hdfs/common/shrink/Index.vue | 7 +- .../db-manage/kafka/common/shrink/Index.vue | 4 +- .../mysql/MYSQL_ADD_SLAVE/Create.vue | 213 +++++ .../db-manage/mysql/MYSQL_ADD_SLAVE/Index.vue | 32 + .../mysql/MYSQL_MIGRATE_CLUSTER/Create.vue | 175 ++++ .../mysql/MYSQL_MIGRATE_CLUSTER/Index.vue | 32 + .../components/ClusterColumn.vue | 147 +++ .../components/ClusterMigrateTable.vue | 195 ++++ .../components/HostColumnGroup.vue | 241 +++++ .../components/HostMigrateTable.vue | 222 +++++ .../mysql/MYSQL_MIGRATE_CLUSTER/types.ts | 8 + .../mysql/MYSQL_PROXY_ADD/Create.vue | 206 +++++ .../db-manage/mysql/MYSQL_PROXY_ADD/Index.vue | 32 + .../mysql/MYSQL_PROXY_SWITCH/Create.vue | 170 ++++ .../mysql/MYSQL_PROXY_SWITCH/Index.vue | 32 + .../components/HostColumnGroup.vue | 246 +++++ .../components/HostTable.vue | 209 +++++ .../components/InstanceColumnGroup.vue | 198 ++++ .../components/InstanceTable.vue | 198 ++++ .../mysql/MYSQL_PROXY_SWITCH/types.ts | 8 + .../mysql/MYSQL_RESTORE_SLAVE/Create.vue | 82 ++ .../mysql/MYSQL_RESTORE_SLAVE/Index.vue | 32 + .../components/local-restore/Index.vue | 199 ++++ .../local-restore/SlaveInstanceColumn.vue | 184 ++++ .../components/restore/Index.vue | 216 +++++ .../restore/SlaveHostColumnGroup.vue | 202 +++++ .../WithRelatedClustersColumn.vue | 202 +++++ .../src/views/db-manage/mysql/routes.ts | 51 +- .../src/views/db-manage/mysql/toolbox-menu.ts | 12 +- .../db-manage/pulsar/common/shrink/Index.vue | 7 +- .../redis/REDIS_CLUSTER_CUTOFF/Create.vue | 305 +++++++ .../redis/REDIS_CLUSTER_CUTOFF/Index.vue | 32 + .../components/HostColumn.vue | 179 ++++ .../components/SpecColumn.vue | 64 ++ .../components/instance-selector/Index.vue | 172 ++++ .../instance-selector/common/tableSettings.ts | 67 ++ .../instance-selector/common/utils.ts | 19 + .../instance-selector/components/PanelTab.vue | 82 ++ .../components/RenderManualHost.vue | 249 +++++ .../components/RenderManualInput.vue | 333 +++++++ .../components/RenderRedis.vue | 306 +++++++ .../components/RenderRedisHost.vue | 509 +++++++++++ .../preview-result/CollapseMini.vue | 96 ++ .../components/preview-result/Index.vue | 212 +++++ .../redis/REDIS_PROXY_SCALE_DOWN/Create.vue | 276 ++++++ .../redis/REDIS_PROXY_SCALE_DOWN/Index.vue | 32 + .../components/ClusterColumn.vue | 185 ++++ .../redis/REDIS_SCALE_UPDOWN/Create.vue | 288 ++++++ .../redis/REDIS_SCALE_UPDOWN/Index.vue | 32 + .../components/ClusterColumn.vue | 202 +++++ .../components/CurrentCapacityColumn.vue | 133 +++ .../components/RedisVersionColumn.vue | 101 +++ .../ClusterDeployPlan.vue | 856 ++++++++++++++++++ .../target-capacity-column/Index.vue | 301 ++++++ .../src/views/db-manage/redis/routes.ts | 33 +- .../src/views/db-manage/redis/toolbox-menu.ts | 8 +- .../components/components/DeleteNodes.vue | 14 +- .../components/detail/components/NodeList.vue | 18 +- .../sqlserver/SQLSERVER_ADD_SLAVE/Create.vue | 189 ++++ .../sqlserver/SQLSERVER_ADD_SLAVE/Index.vue | 32 + .../components/ClusterColumn.vue | 162 ++++ .../SQLSERVER_RESTORE_SLAVE/Create.vue | 82 ++ .../SQLSERVER_RESTORE_SLAVE/Index.vue | 32 + .../components/local-restore/Index.vue | 199 ++++ .../local-restore/SlaveInstanceColumn.vue | 185 ++++ .../components/restore/Index.vue | 216 +++++ .../restore/SlaveHostColumnGroup.vue | 203 +++++ .../common/edit-table-column/HaCluster.vue | 147 +++ .../src/views/db-manage/sqlserver/routes.ts | 40 +- .../views/db-manage/sqlserver/toolbox-menu.ts | 6 +- .../TENDBCLUSTER_MIGRATE_CLUSTER/Create.vue | 251 +++++ .../TENDBCLUSTER_MIGRATE_CLUSTER/Index.vue | 32 + .../components/MasterHostColumnGroup.vue | 188 ++++ .../components/SlaveHostColumnGroup.vue | 105 +++ .../TENDBCLUSTER_RESTORE_SLAVE/Create.vue | 82 ++ .../TENDBCLUSTER_RESTORE_SLAVE/Index.vue | 32 + .../components/local-restore/Index.vue | 199 ++++ .../local-restore/SlaveInstanceColumn.vue | 184 ++++ .../components/restore/Index.vue | 224 +++++ .../components/restore/NewSlaveHostColumn.vue | 122 +++ .../restore/SlaveHostColumnGroup.vue | 224 +++++ .../TENDBCLUSTER_SPIDER_MNT_APPLY/Create.vue | 191 ++++ .../TENDBCLUSTER_SPIDER_MNT_APPLY/Index.vue | 32 + .../components/ClusterColumn.vue | 156 ++++ .../Create.vue | 266 ++++++ .../Index.vue | 32 + .../components/ClusterColumn.vue | 172 ++++ .../tendb-cluster/common/edit/SelectInput.vue | 8 +- .../list/components/list/Index.vue | 4 +- .../views/db-manage/tendb-cluster/routes.ts | 73 +- .../db-manage/tendb-cluster/toolbox-menu.ts | 10 +- 123 files changed, 13914 insertions(+), 220 deletions(-) create mode 100644 dbm-ui/frontend/src/utils/createToolboxRoute.ts create mode 100644 dbm-ui/frontend/src/views/db-manage/common/create-ticket-success/Index.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/common/toolbox-field/column/hybrid-host-column/Index.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/common/toolbox-field/column/multiple-host-column/Index.vue rename dbm-ui/frontend/src/views/db-manage/common/toolbox-field/{ => column}/operation-column/Index.vue (100%) create mode 100644 dbm-ui/frontend/src/views/db-manage/common/toolbox-field/column/single-host-column/Index.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/common/toolbox-field/form-item/backup-source/Index.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/common/toolbox-field/form-item/ignore-biz/Index.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/common/toolbox-field/form-item/ticket-remark/Index.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/mysql/MYSQL_ADD_SLAVE/Create.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/mysql/MYSQL_ADD_SLAVE/Index.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/mysql/MYSQL_MIGRATE_CLUSTER/Create.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/mysql/MYSQL_MIGRATE_CLUSTER/Index.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/mysql/MYSQL_MIGRATE_CLUSTER/components/ClusterColumn.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/mysql/MYSQL_MIGRATE_CLUSTER/components/ClusterMigrateTable.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/mysql/MYSQL_MIGRATE_CLUSTER/components/HostColumnGroup.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/mysql/MYSQL_MIGRATE_CLUSTER/components/HostMigrateTable.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/mysql/MYSQL_MIGRATE_CLUSTER/types.ts create mode 100644 dbm-ui/frontend/src/views/db-manage/mysql/MYSQL_PROXY_ADD/Create.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/mysql/MYSQL_PROXY_ADD/Index.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/mysql/MYSQL_PROXY_SWITCH/Create.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/mysql/MYSQL_PROXY_SWITCH/Index.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/mysql/MYSQL_PROXY_SWITCH/components/HostColumnGroup.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/mysql/MYSQL_PROXY_SWITCH/components/HostTable.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/mysql/MYSQL_PROXY_SWITCH/components/InstanceColumnGroup.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/mysql/MYSQL_PROXY_SWITCH/components/InstanceTable.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/mysql/MYSQL_PROXY_SWITCH/types.ts create mode 100644 dbm-ui/frontend/src/views/db-manage/mysql/MYSQL_RESTORE_SLAVE/Create.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/mysql/MYSQL_RESTORE_SLAVE/Index.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/mysql/MYSQL_RESTORE_SLAVE/components/local-restore/Index.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/mysql/MYSQL_RESTORE_SLAVE/components/local-restore/SlaveInstanceColumn.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/mysql/MYSQL_RESTORE_SLAVE/components/restore/Index.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/mysql/MYSQL_RESTORE_SLAVE/components/restore/SlaveHostColumnGroup.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/mysql/common/edit-table-column/WithRelatedClustersColumn.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/redis/REDIS_CLUSTER_CUTOFF/Create.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/redis/REDIS_CLUSTER_CUTOFF/Index.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/redis/REDIS_CLUSTER_CUTOFF/components/HostColumn.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/redis/REDIS_CLUSTER_CUTOFF/components/SpecColumn.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/redis/REDIS_CLUSTER_CUTOFF/components/instance-selector/Index.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/redis/REDIS_CLUSTER_CUTOFF/components/instance-selector/common/tableSettings.ts create mode 100644 dbm-ui/frontend/src/views/db-manage/redis/REDIS_CLUSTER_CUTOFF/components/instance-selector/common/utils.ts create mode 100644 dbm-ui/frontend/src/views/db-manage/redis/REDIS_CLUSTER_CUTOFF/components/instance-selector/components/PanelTab.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/redis/REDIS_CLUSTER_CUTOFF/components/instance-selector/components/RenderManualHost.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/redis/REDIS_CLUSTER_CUTOFF/components/instance-selector/components/RenderManualInput.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/redis/REDIS_CLUSTER_CUTOFF/components/instance-selector/components/RenderRedis.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/redis/REDIS_CLUSTER_CUTOFF/components/instance-selector/components/RenderRedisHost.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/redis/REDIS_CLUSTER_CUTOFF/components/instance-selector/components/preview-result/CollapseMini.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/redis/REDIS_CLUSTER_CUTOFF/components/instance-selector/components/preview-result/Index.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/redis/REDIS_PROXY_SCALE_DOWN/Create.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/redis/REDIS_PROXY_SCALE_DOWN/Index.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/redis/REDIS_PROXY_SCALE_DOWN/components/ClusterColumn.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/redis/REDIS_SCALE_UPDOWN/Create.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/redis/REDIS_SCALE_UPDOWN/Index.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/redis/REDIS_SCALE_UPDOWN/components/ClusterColumn.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/redis/REDIS_SCALE_UPDOWN/components/CurrentCapacityColumn.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/redis/REDIS_SCALE_UPDOWN/components/RedisVersionColumn.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/redis/REDIS_SCALE_UPDOWN/components/target-capacity-column/ClusterDeployPlan.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/redis/REDIS_SCALE_UPDOWN/components/target-capacity-column/Index.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/sqlserver/SQLSERVER_ADD_SLAVE/Create.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/sqlserver/SQLSERVER_ADD_SLAVE/Index.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/sqlserver/SQLSERVER_ADD_SLAVE/components/ClusterColumn.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/sqlserver/SQLSERVER_RESTORE_SLAVE/Create.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/sqlserver/SQLSERVER_RESTORE_SLAVE/Index.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/sqlserver/SQLSERVER_RESTORE_SLAVE/components/local-restore/Index.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/sqlserver/SQLSERVER_RESTORE_SLAVE/components/local-restore/SlaveInstanceColumn.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/sqlserver/SQLSERVER_RESTORE_SLAVE/components/restore/Index.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/sqlserver/SQLSERVER_RESTORE_SLAVE/components/restore/SlaveHostColumnGroup.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/sqlserver/common/edit-table-column/HaCluster.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/tendb-cluster/TENDBCLUSTER_MIGRATE_CLUSTER/Create.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/tendb-cluster/TENDBCLUSTER_MIGRATE_CLUSTER/Index.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/tendb-cluster/TENDBCLUSTER_MIGRATE_CLUSTER/components/MasterHostColumnGroup.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/tendb-cluster/TENDBCLUSTER_MIGRATE_CLUSTER/components/SlaveHostColumnGroup.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/tendb-cluster/TENDBCLUSTER_RESTORE_SLAVE/Create.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/tendb-cluster/TENDBCLUSTER_RESTORE_SLAVE/Index.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/tendb-cluster/TENDBCLUSTER_RESTORE_SLAVE/components/local-restore/Index.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/tendb-cluster/TENDBCLUSTER_RESTORE_SLAVE/components/local-restore/SlaveInstanceColumn.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/tendb-cluster/TENDBCLUSTER_RESTORE_SLAVE/components/restore/Index.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/tendb-cluster/TENDBCLUSTER_RESTORE_SLAVE/components/restore/NewSlaveHostColumn.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/tendb-cluster/TENDBCLUSTER_RESTORE_SLAVE/components/restore/SlaveHostColumnGroup.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/tendb-cluster/TENDBCLUSTER_SPIDER_MNT_APPLY/Create.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/tendb-cluster/TENDBCLUSTER_SPIDER_MNT_APPLY/Index.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/tendb-cluster/TENDBCLUSTER_SPIDER_MNT_APPLY/components/ClusterColumn.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/tendb-cluster/TENDBCLUSTER_SPIDER_REDUCE_NODES/Create.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/tendb-cluster/TENDBCLUSTER_SPIDER_REDUCE_NODES/Index.vue create mode 100644 dbm-ui/frontend/src/views/db-manage/tendb-cluster/TENDBCLUSTER_SPIDER_REDUCE_NODES/components/ClusterColumn.vue diff --git a/dbm-ui/frontend/src/components/editable-table/Index.vue b/dbm-ui/frontend/src/components/editable-table/Index.vue index f443a99719..da5d0f354e 100644 --- a/dbm-ui/frontend/src/components/editable-table/Index.vue +++ b/dbm-ui/frontend/src/components/editable-table/Index.vue @@ -67,6 +67,7 @@ import Input from './edit/Input.vue'; import Select from './edit/Select.vue'; import TagInput from './edit/TagInput.vue'; + import Text from './edit/Text.vue'; import Textarea from './edit/Textarea.vue'; import TimePicker from './edit/TimePicker.vue'; import useResize from './hooks/use-resize'; @@ -112,7 +113,7 @@ } & Expose > = Symbol.for('bk-editable-table'); - export { Block, Column, DatePicker, Input, Row, Select, TagInput, Textarea, TimePicker, useColumn, useTable }; + export { Block, Column, DatePicker, Input, Row, Select, TagInput, Text, Textarea, TimePicker, useColumn, useTable }; diff --git a/dbm-ui/frontend/src/views/db-manage/common/toolbox-field/column/hybrid-host-column/Index.vue b/dbm-ui/frontend/src/views/db-manage/common/toolbox-field/column/hybrid-host-column/Index.vue new file mode 100644 index 0000000000..4da4f6c886 --- /dev/null +++ b/dbm-ui/frontend/src/views/db-manage/common/toolbox-field/column/hybrid-host-column/Index.vue @@ -0,0 +1,230 @@ + + + + + + + + diff --git a/dbm-ui/frontend/src/views/db-manage/common/toolbox-field/column/multiple-host-column/Index.vue b/dbm-ui/frontend/src/views/db-manage/common/toolbox-field/column/multiple-host-column/Index.vue new file mode 100644 index 0000000000..4453fe25e4 --- /dev/null +++ b/dbm-ui/frontend/src/views/db-manage/common/toolbox-field/column/multiple-host-column/Index.vue @@ -0,0 +1,233 @@ + + + + + + diff --git a/dbm-ui/frontend/src/views/db-manage/common/toolbox-field/operation-column/Index.vue b/dbm-ui/frontend/src/views/db-manage/common/toolbox-field/column/operation-column/Index.vue similarity index 100% rename from dbm-ui/frontend/src/views/db-manage/common/toolbox-field/operation-column/Index.vue rename to dbm-ui/frontend/src/views/db-manage/common/toolbox-field/column/operation-column/Index.vue diff --git a/dbm-ui/frontend/src/views/db-manage/common/toolbox-field/column/single-host-column/Index.vue b/dbm-ui/frontend/src/views/db-manage/common/toolbox-field/column/single-host-column/Index.vue new file mode 100644 index 0000000000..99b6cd6b66 --- /dev/null +++ b/dbm-ui/frontend/src/views/db-manage/common/toolbox-field/column/single-host-column/Index.vue @@ -0,0 +1,152 @@ + + + + + + diff --git a/dbm-ui/frontend/src/views/db-manage/common/toolbox-field/form-item/backup-source/Index.vue b/dbm-ui/frontend/src/views/db-manage/common/toolbox-field/form-item/backup-source/Index.vue new file mode 100644 index 0000000000..e3c82ba1bb --- /dev/null +++ b/dbm-ui/frontend/src/views/db-manage/common/toolbox-field/form-item/backup-source/Index.vue @@ -0,0 +1,28 @@ + + + diff --git a/dbm-ui/frontend/src/views/db-manage/common/toolbox-field/form-item/ignore-biz/Index.vue b/dbm-ui/frontend/src/views/db-manage/common/toolbox-field/form-item/ignore-biz/Index.vue new file mode 100644 index 0000000000..c51851dbce --- /dev/null +++ b/dbm-ui/frontend/src/views/db-manage/common/toolbox-field/form-item/ignore-biz/Index.vue @@ -0,0 +1,31 @@ + + + + + diff --git a/dbm-ui/frontend/src/views/db-manage/common/toolbox-field/form-item/ticket-remark/Index.vue b/dbm-ui/frontend/src/views/db-manage/common/toolbox-field/form-item/ticket-remark/Index.vue new file mode 100644 index 0000000000..e3367910ba --- /dev/null +++ b/dbm-ui/frontend/src/views/db-manage/common/toolbox-field/form-item/ticket-remark/Index.vue @@ -0,0 +1,18 @@ + + + diff --git a/dbm-ui/frontend/src/views/db-manage/doris/common/shrink/Index.vue b/dbm-ui/frontend/src/views/db-manage/doris/common/shrink/Index.vue index 25518ac960..c71a0172c1 100644 --- a/dbm-ui/frontend/src/views/db-manage/doris/common/shrink/Index.vue +++ b/dbm-ui/frontend/src/views/db-manage/doris/common/shrink/Index.vue @@ -301,7 +301,6 @@ ip: hostItem.ip, bk_cloud_id: hostItem.bk_cloud_id, bk_host_id: hostItem.bk_host_id, - bk_biz_id: bizId, })); const generateExtInfo = () => Object.entries(nodeInfoMap).reduce((results, [key, item]) => { @@ -327,8 +326,7 @@ bk_biz_id: bizId, details: { cluster_id: props.data.id, - ip_source: 'manual_input', - nodes: { + old_nodes: { hot: fomatHost(nodeInfoMap.hot.nodeList), cold: fomatHost(nodeInfoMap.cold.nodeList), observer: fomatHost(nodeInfoMap.observer.nodeList), diff --git a/dbm-ui/frontend/src/views/db-manage/elastic-search/common/shrink/Index.vue b/dbm-ui/frontend/src/views/db-manage/elastic-search/common/shrink/Index.vue index 283a89de26..a94b44b4b0 100644 --- a/dbm-ui/frontend/src/views/db-manage/elastic-search/common/shrink/Index.vue +++ b/dbm-ui/frontend/src/views/db-manage/elastic-search/common/shrink/Index.vue @@ -53,6 +53,8 @@ import { useGlobalBizs } from '@stores'; + import { TicketTypes } from '@common/const'; + import HostShrink, { type TShrinkNode, } from '@views/db-manage/common/host-shrink/Index.vue'; @@ -307,12 +309,12 @@ }, {} as Record); return createTicket({ - ticket_type: 'ES_SHRINK', + ticket_type: TicketTypes.ES_SHRINK, bk_biz_id: bizId, details: { cluster_id: props.data.id, ip_source: 'manual_input', - nodes: { + old_nodes: { hot: fomatHost(nodeInfoMap.hot.nodeList), cold: fomatHost(nodeInfoMap.cold.nodeList), client: fomatHost(nodeInfoMap.client.nodeList), diff --git a/dbm-ui/frontend/src/views/db-manage/hdfs/common/shrink/Index.vue b/dbm-ui/frontend/src/views/db-manage/hdfs/common/shrink/Index.vue index 9e557f98b5..0998bb8539 100644 --- a/dbm-ui/frontend/src/views/db-manage/hdfs/common/shrink/Index.vue +++ b/dbm-ui/frontend/src/views/db-manage/hdfs/common/shrink/Index.vue @@ -50,6 +50,8 @@ import { useGlobalBizs } from '@stores'; + import { TicketTypes } from '@common/const'; + import HostShrink, { type TShrinkNode, } from '@views/db-manage/common/host-shrink/Index.vue'; @@ -232,12 +234,11 @@ }, {} as Record); createTicket({ - ticket_type: 'HDFS_SHRINK', + ticket_type: TicketTypes.HDFS_SHRINK, bk_biz_id: bizId, details: { cluster_id: props.data.id, - ip_source: 'manual_input', - nodes: { + old_nodes: { [nodeType.value]: fomatHost(nodeInfoMap.datanode.nodeList), }, ext_info: generateExtInfo(), diff --git a/dbm-ui/frontend/src/views/db-manage/kafka/common/shrink/Index.vue b/dbm-ui/frontend/src/views/db-manage/kafka/common/shrink/Index.vue index ab97482171..6eda649da6 100644 --- a/dbm-ui/frontend/src/views/db-manage/kafka/common/shrink/Index.vue +++ b/dbm-ui/frontend/src/views/db-manage/kafka/common/shrink/Index.vue @@ -209,7 +209,6 @@ ip: hostItem.ip, bk_cloud_id: hostItem.bk_cloud_id, bk_host_id: hostItem.bk_host_id, - bk_biz_id: bizId, })); const generateExtInfo = () => Object.entries(nodeInfoMap).reduce((results, [key, item]) => { @@ -235,8 +234,7 @@ bk_biz_id: bizId, details: { cluster_id: props.data.id, - ip_source: 'manual_input', - nodes: { + old_nodes: { broker: fomatHost(nodeInfoMap.broker.nodeList), }, ext_info: generateExtInfo(), diff --git a/dbm-ui/frontend/src/views/db-manage/mysql/MYSQL_ADD_SLAVE/Create.vue b/dbm-ui/frontend/src/views/db-manage/mysql/MYSQL_ADD_SLAVE/Create.vue new file mode 100644 index 0000000000..27d1ed6e12 --- /dev/null +++ b/dbm-ui/frontend/src/views/db-manage/mysql/MYSQL_ADD_SLAVE/Create.vue @@ -0,0 +1,213 @@ + + + + diff --git a/dbm-ui/frontend/src/views/db-manage/mysql/MYSQL_ADD_SLAVE/Index.vue b/dbm-ui/frontend/src/views/db-manage/mysql/MYSQL_ADD_SLAVE/Index.vue new file mode 100644 index 0000000000..7d5a04e740 --- /dev/null +++ b/dbm-ui/frontend/src/views/db-manage/mysql/MYSQL_ADD_SLAVE/Index.vue @@ -0,0 +1,32 @@ + + + + diff --git a/dbm-ui/frontend/src/views/db-manage/mysql/MYSQL_MIGRATE_CLUSTER/Create.vue b/dbm-ui/frontend/src/views/db-manage/mysql/MYSQL_MIGRATE_CLUSTER/Create.vue new file mode 100644 index 0000000000..b46351505c --- /dev/null +++ b/dbm-ui/frontend/src/views/db-manage/mysql/MYSQL_MIGRATE_CLUSTER/Create.vue @@ -0,0 +1,175 @@ + + + + + + diff --git a/dbm-ui/frontend/src/views/db-manage/mysql/MYSQL_MIGRATE_CLUSTER/Index.vue b/dbm-ui/frontend/src/views/db-manage/mysql/MYSQL_MIGRATE_CLUSTER/Index.vue new file mode 100644 index 0000000000..7d5a04e740 --- /dev/null +++ b/dbm-ui/frontend/src/views/db-manage/mysql/MYSQL_MIGRATE_CLUSTER/Index.vue @@ -0,0 +1,32 @@ + + + + diff --git a/dbm-ui/frontend/src/views/db-manage/mysql/MYSQL_MIGRATE_CLUSTER/components/ClusterColumn.vue b/dbm-ui/frontend/src/views/db-manage/mysql/MYSQL_MIGRATE_CLUSTER/components/ClusterColumn.vue new file mode 100644 index 0000000000..3d4e5704ca --- /dev/null +++ b/dbm-ui/frontend/src/views/db-manage/mysql/MYSQL_MIGRATE_CLUSTER/components/ClusterColumn.vue @@ -0,0 +1,147 @@ + + +