From 99cb3700bb67c679a827ea6ff5955c1a1ff1c90c Mon Sep 17 00:00:00 2001 From: Austin <1344583166@qq.com> Date: Tue, 3 Dec 2024 11:10:49 +0800 Subject: [PATCH] =?UTF-8?q?feat(frontend):=20po=E7=8E=AF=E5=A2=83=E5=90=84?= =?UTF-8?q?db=E9=9B=86=E7=BE=A4=E8=AF=A6=E6=83=85tab=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E5=BC=80=E5=85=B3=E6=8E=A7=E5=88=B6=20#8367=20#=20Reviewed,=20?= =?UTF-8?q?transaction=20id:=2025616?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../function-controller/functionController.ts | 176 ++++-------------- .../doris/list/components/detail/Index.vue | 6 + .../doris/list/components/list/Index.vue | 29 ++- .../list/components/detail/Index.vue | 2 + .../hdfs/list/components/detail/Index.vue | 2 + .../kafka/list/components/detail/Index.vue | 2 + .../components/detail/Index.vue | 5 + .../components/detail/Index.vue | 5 + .../components/detail/Index.vue | 1 + .../components/detail/Index.vue | 1 + .../pulsar/list/components/detail/Index.vue | 2 + .../redis/list-ha/components/detail/Index.vue | 1 + .../redis/list/components/detail/Index.vue | 1 + .../riak/list/components/detail/Index.vue | 9 +- .../riak/list/components/list/Index.vue | 26 ++- .../components/detail/index.vue | 6 +- .../components/detail/index.vue | 6 +- .../list/components/detail/Index.vue | 1 + 18 files changed, 123 insertions(+), 158 deletions(-) diff --git a/dbm-ui/frontend/src/services/model/function-controller/functionController.ts b/dbm-ui/frontend/src/services/model/function-controller/functionController.ts index a05108fe6f..845c381147 100644 --- a/dbm-ui/frontend/src/services/model/function-controller/functionController.ts +++ b/dbm-ui/frontend/src/services/model/function-controller/functionController.ts @@ -42,145 +42,7 @@ interface ControllerItem extends ControllerBaseInfo { children: Record; } -interface ControllerData { - addons: ControllerItem; - mysql: ControllerItem; - redis: ControllerItem; - bigdata: ControllerItem; - monitor: ControllerItem; - mongodb: ControllerItem; - sqlserver: ControllerItem; - - personalWorkbench: ControllerItem; - 'personalWorkbench.serviceApply': ControllerItem; - 'personalWorkbench.myTickets': ControllerItem; - 'personalWorkbench.myTodos': ControllerItem; - observableManage: ControllerItem; - 'observableManage.DBHASwitchEvents': ControllerItem; - 'observableManage.healthReport': ControllerItem; - globalConfigManage: ControllerItem; - 'globalConfigManage.dbConfig': ControllerItem; - 'globalConfigManage.versionFile': ControllerItem; - 'globalConfigManage.monitorStrategy': ControllerItem; - 'globalConfigManage.rotationManage': ControllerItem; - 'globalConfigManage.passwordSafe': ControllerItem; - 'globalConfigManage.staffManage': ControllerItem; - 'globalConfigManage.ticketFlowSetting': ControllerItem; - 'globalConfigManage.alarmGroup': ControllerItem; - 'globalConfigManage.whitelistManage': ControllerItem; - resourceManage: ControllerItem; - 'resourceManage.resourceSpec': ControllerItem; - 'resourceManage.resourcePool': ControllerItem; - 'resourceManage.dirtyHostManage': ControllerItem; - 'resourceManage.resourceOperationRecord': ControllerItem; - bizConfigManage: ControllerItem; - 'bizConfigManage.monitorStrategy': ControllerItem; - 'bizConfigManage.alarmGroup': ControllerItem; - 'bizConfigManage.dbConfigure': ControllerItem; - 'bizConfigManage.StaffManage': ControllerItem; - 'bizConfigManage.ticketFlowSetting': ControllerItem; - databaseManage: ControllerItem; - 'databaseManage.missionManage': ControllerItem; - 'databaseManage.whitelistManage': ControllerItem; - 'databaseManage.temporaryPaasswordModify': ControllerItem; - 'mysql.haInstanceList': ControllerItem; - 'mysql.dataSubscription': ControllerItem; - 'mysql.permissionManage': ControllerItem; - 'mysql.partitionManage': ControllerItem; - 'mysql.toolbox.sqlExecute': ControllerItem; - 'mysql.toolbox.dbRename': ControllerItem; - 'mysql.toolbox.rollback': ControllerItem; - 'mysql.toolbox.flashback': ControllerItem; - 'mysql.toolbox.dbTableBackup': ControllerItem; - 'mysql.toolbox.dbBackup': ControllerItem; - 'mysql.toolbox.clientPermissionClone': ControllerItem; - 'mysql.toolbox.dbInstancePermissionClone': ControllerItem; - 'mysql.toolbox.slaveRebuild': ControllerItem; - 'mysql.toolbox.slaveAdd': ControllerItem; - 'mysql.toolbox.masterSlaveClone': ControllerItem; - 'mysql.toolbox.masterSlaveSwap': ControllerItem; - 'mysql.toolbox.proxyReplace': ControllerItem; - 'mysql.toolbox.proxyAdd': ControllerItem; - 'mysql.toolbox.masterFailover': ControllerItem; - 'mysql.toolbox.dbClear': ControllerItem; - 'mysql.toolbox.checksum': ControllerItem; - 'mysql.toolbox.openareaTemplate': ControllerItem; - 'tendbCluster.clusterManage.proxyScaleUp': ControllerItem; - 'tendbCluster.clusterManage.proxyScaleDown': ControllerItem; - 'tendbCluster.clusterManage.removeMNTNode': ControllerItem; - 'tendbCluster.clusterManage.removeReadonlyNode': ControllerItem; - 'tendbCluster.clusterManage.disable': ControllerItem; - 'tendbCluster.instanceManage': ControllerItem; - 'tendbCluster.partitionManage': ControllerItem; - 'tendbCluster.permissionManage': ControllerItem; - 'tendbCluster.toolbox.sqlExecute': ControllerItem; - 'tendbCluster.toolbox.dbRename': ControllerItem; - 'tendbCluster.toolbox.rollback': ControllerItem; - 'tendbCluster.toolbox.rollbackRecord': ControllerItem; - 'tendbCluster.toolbox.flashback': ControllerItem; - 'tendbCluster.toolbox.dbTableBackup': ControllerItem; - 'tendbCluster.toolbox.dbBackup': ControllerItem; - 'tendbCluster.toolbox.clientPermissionClone': ControllerItem; - 'tendbCluster.toolbox.dbInstancePermissionClone': ControllerItem; - 'tendbCluster.toolbox.addMnt': ControllerItem; - 'tendbCluster.toolbox.proxySlaveApply': ControllerItem; - 'tendbCluster.toolbox.masterSlaveSwap': ControllerItem; - 'tendbCluster.toolbox.masterFailover': ControllerItem; - 'tendbCluster.toolbox.capacityChange': ControllerItem; - 'tendbCluster.toolbox.proxyScaleDown': ControllerItem; - 'tendbCluster.toolbox.proxyScaleUp': ControllerItem; - 'tendbCluster.toolbox.dbClear': ControllerItem; - 'tendbCluster.toolbox.checksum': ControllerItem; - 'tendbCluster.toolbox.openareaTemplate': ControllerItem; - 'tendbCluster.toolbox.slaveRebuild': ControllerItem; - 'tendbCluster.toolbox.masterSlaveClone': ControllerItem; - 'redis.clusterManage.getAccess': ControllerItem; - 'redis.clusterManage.enableCLB': ControllerItem; - 'redis.clusterManage.DNSDomainToCLB': ControllerItem; - 'redis.clusterManage.enablePolaris': ControllerItem; - 'redis.clusterManage.disable': ControllerItem; - 'redis.clusterManage.enable': ControllerItem; - 'redis.clusterManage.delete': ControllerItem; - 'redis.instanceManage': ControllerItem; - 'redis.haClusterManage': ControllerItem; - 'redis.haInstanceManage': ControllerItem; - 'redis.toolbox.installModule': ControllerItem; - 'redis.toolbox.capacityChange': ControllerItem; - 'redis.toolbox.proxyScaleUp': ControllerItem; - 'redis.toolbox.proxyScaleDown': ControllerItem; - 'redis.toolbox.clusterShardChange': ControllerItem; - 'redis.toolbox.clusterTypeChange': ControllerItem; - 'redis.toolbox.slaveRebuild': ControllerItem; - 'redis.toolbox.masterSlaveSwap': ControllerItem; - 'redis.toolbox.dbReplace': ControllerItem; - 'redis.toolbox.versionUpgrade': ControllerItem; - 'redis.toolbox.rollback': ControllerItem; - 'redis.toolbox.rollbackRecord': ControllerItem; - 'redis.toolbox.recoverFromInstance': ControllerItem; - 'redis.toolbox.dataCopy': ControllerItem; - 'redis.toolbox.dataCopyRecord': ControllerItem; - 'mysql.haClusterList.clusterTopo': ControllerItem; - 'mysql.haClusterList.changeLog': ControllerItem; - 'mysql.singleClusterList.clusterTopo': ControllerItem; - 'mysql.singleClusterList.changeLog': ControllerItem; - 'tendbCluster.clusterManage.clusterTopo': ControllerItem; - 'tendbCluster.clusterManage.changeLog': ControllerItem; - 'redis.clusterManage.clusterTopo': ControllerItem; - 'redis.clusterManage.changeLog': ControllerItem; - 'redis.haClusterManage.clusterTopo': ControllerItem; - 'redis.haClusterManage.changeLog': ControllerItem; - 'es.clusterManage.clusterTopo': ControllerItem; - 'es.clusterManage.changeLog': ControllerItem; - 'kafka.clusterManage.clusterTopo': ControllerItem; - 'kafka.clusterManage.changeLog': ControllerItem; - 'hdfs.clusterManage.clusterTopo': ControllerItem; - 'hdfs.clusterManage.changeLog': ControllerItem; - 'pulsar.clusterManage.clusterTopo': ControllerItem; - 'pulsar.clusterManage.changeLog': ControllerItem; - 'personalWorkbench.myTickets.viewDetails': ControllerItem; -} - -export type ExtractedControllerDataKeys = Extract; +export type ExtractedControllerDataKeys = Extract; export default class FunctionController { addons: ControllerItem; @@ -319,8 +181,41 @@ export default class FunctionController { 'pulsar.clusterManage.clusterTopo': ControllerItem; 'pulsar.clusterManage.changeLog': ControllerItem; 'personalWorkbench.myTickets.viewDetails': ControllerItem; + 'mysql.haClusterList.basicInfo': ControllerItem; + 'mysql.singleClusterList.basicInfo': ControllerItem; + 'tendbCluster.clusterManage.basicInfo': ControllerItem; + 'redis.clusterManage.baseInfo': ControllerItem; + 'redis.haClusterManage.baseInfo': ControllerItem; + 'sqlserver.haClusterList.clusterTopo': ControllerItem; + 'sqlserver.haClusterList.basicInfo': ControllerItem; + 'sqlserver.haClusterList.changeLog': ControllerItem; + 'sqlserver.singleClusterList.clusterTopo': ControllerItem; + 'sqlserver.singleClusterList.basicInfo': ControllerItem; + 'sqlserver.singleClusterList.changeLog': ControllerItem; + 'es.clusterManage.nodeList': ControllerItem; + 'es.clusterManage.baseInfo': ControllerItem; + 'hdfs.clusterManage.nodeList': ControllerItem; + 'hdfs.clusterManage.baseInfo': ControllerItem; + 'kafka.clusterManage.nodeList': ControllerItem; + 'kafka.clusterManage.baseInfo': ControllerItem; + 'mongodb.replicaSetList.clusterTopo': ControllerItem; + 'mongodb.replicaSetList.basicInfo': ControllerItem; + 'mongodb.replicaSetList.changeLog': ControllerItem; + 'mongodb.sharedClusterList.clusterTopo': ControllerItem; + 'mongodb.sharedClusterList.basicInfo': ControllerItem; + 'mongodb.sharedClusterList.changeLog': ControllerItem; + 'pulsar.clusterManage.nodeList': ControllerItem; + 'pulsar.clusterManage.baseInfo': ControllerItem; + 'doris.clusterManage.clusterTopo': ControllerItem; + 'doris.clusterManage.baseInfo': ControllerItem; + 'doris.clusterManage.changeLog': ControllerItem; + 'doris.clusterManage.nodeList': ControllerItem; + 'riak.clusterManage.clusterTopo': ControllerItem; + 'riak.clusterManage.baseInfo': ControllerItem; + 'riak.clusterManage.changeLog': ControllerItem; + 'riak.clusterManage.nodeList': ControllerItem; - constructor(payload = {} as ControllerData) { + constructor(payload = {} as FunctionController) { this.addons = payload.addons; this.mysql = payload.mysql; this.redis = payload.redis; @@ -328,7 +223,6 @@ export default class FunctionController { this.bigdata = payload.bigdata; this.monitor = payload.monitor; this.sqlserver = payload.sqlserver; - this.personalWorkbench = payload.personalWorkbench; this.observableManage = payload.observableManage; this.globalConfigManage = payload.globalConfigManage; diff --git a/dbm-ui/frontend/src/views/db-manage/doris/list/components/detail/Index.vue b/dbm-ui/frontend/src/views/db-manage/doris/list/components/detail/Index.vue index 1a56d2d8f1..027745d38f 100644 --- a/dbm-ui/frontend/src/views/db-manage/doris/list/components/detail/Index.vue +++ b/dbm-ui/frontend/src/views/db-manage/doris/list/components/detail/Index.vue @@ -20,15 +20,19 @@ class="detail-tab" type="card-tab">
- + { if (data.isOnline) { return [ - + , - + ( <> - + {t('管理')} , - + - + + , - + - +