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('管理')} , - + - + + , - + - +