diff --git a/dbm-ui/frontend/src/common/const.ts b/dbm-ui/frontend/src/common/const.ts index 2782e3474..5d5a07b86 100644 --- a/dbm-ui/frontend/src/common/const.ts +++ b/dbm-ui/frontend/src/common/const.ts @@ -28,6 +28,7 @@ export enum DBTypes { INFLUXDB = 'influxdb', SPIDER = 'spider', RIAK = 'riak', + DORIS = 'doris', } export type DBTypesValues = `${DBTypes}`; @@ -61,6 +62,7 @@ export enum ClusterTypes { PULSAE = 'pulsar', INFLUXDB = 'influxdb', RIAK = 'riak', + DORIS = 'doris', } // 机器类型 @@ -149,6 +151,9 @@ export const clusterTypeInfos = { [ClusterTypes.SQLSERVER_SINGLE]: { dbType: DBTypes.SQLSERVER, }, + [ClusterTypes.DORIS]: { + dbType: DBTypes.DORIS, + }, }; export type ClusterTypeInfos = keyof typeof clusterTypeInfos; @@ -336,6 +341,14 @@ export enum TicketTypes { REDIS_INSTANCE_PROXY_OPEN = 'REDIS_INSTANCE_PROXY_OPEN', // redis 主从集群启用 REDIS_INSTANCE_PROXY_CLOSE = 'REDIS_INSTANCE_PROXY_CLOSE', // redis 主从集群禁用 REDIS_INSTANCE_DESTROY = 'REDIS_INSTANCE_DESTROY', // redis 主从集群删除 + DORIS_APPLY = 'DORIS_APPLY', // doris 部署 + DORIS_ENABLE = 'DORIS_ENABLE', // doris 启用 + DORIS_DISABLE = 'DORIS_DISABLE', // doris 禁用 + DORIS_DESTROY = 'DORIS_DESTROY', // doris 删除 + DORIS_REBOOT = 'DORIS_REBOOT', // doris 重启 + DORIS_REPLACE = 'DORIS_REPLACE', // doris 替换 + DORIS_SCALE_UP = 'DORIS_SCALE_UP', // doris 扩容 + DORIS_SHRINK = 'DORIS_SHRINK', // doris 缩容 MYSQL_DUMP_DATA = 'MYSQL_DUMP_DATA', // 数据导出 } export type TicketTypesStrings = keyof typeof TicketTypes; @@ -434,6 +447,11 @@ export const bigDataType = { name: t('Riak集群部署'), type: ClusterTypes.RIAK, }, + [TicketTypes.DORIS_APPLY]: { + id: TicketTypes.DORIS_APPLY, + name: t('Doris集群部署'), + type: ClusterTypes.DORIS, + }, }; export const mongoType = { @@ -534,6 +552,7 @@ export enum UserPersonalSettings { REDIS_HA_INSTANCE_SETTINGS = 'REDIS_HA_INSTANCE_SETTINGS', SQLSERVER_TOOLBOX_MENUS = 'SQLSERVER_TOOLBOX_MENUS', SQLSERVER_TOOLBOX_FAVOR = 'SQLSERVER_TOOLBOX_FAVOR', + DORIS_TABLE_SETTINGS = 'DORIS_TABLE_SETTINGS', } /** diff --git a/dbm-ui/frontend/src/components/bigdata-instance-detail/Index.vue b/dbm-ui/frontend/src/components/bigdata-instance-detail/Index.vue new file mode 100644 index 000000000..6d2038c4d --- /dev/null +++ b/dbm-ui/frontend/src/components/bigdata-instance-detail/Index.vue @@ -0,0 +1,435 @@ + + + + + + + + diff --git a/dbm-ui/frontend/src/components/cluster-common/RenderOperationTagNew.vue b/dbm-ui/frontend/src/components/cluster-common/RenderOperationTagNew.vue index 3561c7c08..7c8a144b9 100644 --- a/dbm-ui/frontend/src/components/cluster-common/RenderOperationTagNew.vue +++ b/dbm-ui/frontend/src/components/cluster-common/RenderOperationTagNew.vue @@ -81,6 +81,22 @@ color: '#FE9C00', background: '#FFF1DB', }, + [t('替换中')]: { + color: '#29AAE8', + background: '#EDFBFF', + }, + [t('扩容中')]: { + color: '#14A568', + background: '#E4FAF0', + }, + [t('重启中')]: { + color: '#3A84FF', + background: '#EDF4FF', + }, + [t('缩容中')]: { + color: '#8E3AFF', + background: '#F2EDFF', + }, }; const rootRef = ref(); @@ -146,6 +162,7 @@ padding: 0 4px; line-height: 16px; cursor: pointer; + border-radius: 2px; .icon-text { display: inline-block; diff --git a/dbm-ui/frontend/src/components/cluster-common/doris-observer-host-expansion/Index.vue b/dbm-ui/frontend/src/components/cluster-common/doris-observer-host-expansion/Index.vue new file mode 100644 index 000000000..9c0d38849 --- /dev/null +++ b/dbm-ui/frontend/src/components/cluster-common/doris-observer-host-expansion/Index.vue @@ -0,0 +1,111 @@ + + + + + + + diff --git a/dbm-ui/frontend/src/components/cluster-common/doris-observer-host-expansion/components/HostSelector.vue b/dbm-ui/frontend/src/components/cluster-common/doris-observer-host-expansion/components/HostSelector.vue new file mode 100644 index 000000000..7631d6afe --- /dev/null +++ b/dbm-ui/frontend/src/components/cluster-common/doris-observer-host-expansion/components/HostSelector.vue @@ -0,0 +1,187 @@ + + + + diff --git a/dbm-ui/frontend/src/components/cluster-common/doris-observer-host-expansion/components/ResourcePoolSelector.vue b/dbm-ui/frontend/src/components/cluster-common/doris-observer-host-expansion/components/ResourcePoolSelector.vue new file mode 100644 index 000000000..41da7cf42 --- /dev/null +++ b/dbm-ui/frontend/src/components/cluster-common/doris-observer-host-expansion/components/ResourcePoolSelector.vue @@ -0,0 +1,204 @@ + + + + + diff --git a/dbm-ui/frontend/src/components/cluster-common/doris-observer-host-shrink/Index.vue b/dbm-ui/frontend/src/components/cluster-common/doris-observer-host-shrink/Index.vue new file mode 100644 index 000000000..d0fca86d9 --- /dev/null +++ b/dbm-ui/frontend/src/components/cluster-common/doris-observer-host-shrink/Index.vue @@ -0,0 +1,336 @@ + + + + + diff --git a/dbm-ui/frontend/src/components/cluster-common/es-host-expansion/Index.vue b/dbm-ui/frontend/src/components/cluster-common/es-host-expansion/Index.vue index 39293a617..4b106898c 100644 --- a/dbm-ui/frontend/src/components/cluster-common/es-host-expansion/Index.vue +++ b/dbm-ui/frontend/src/components/cluster-common/es-host-expansion/Index.vue @@ -13,8 +13,13 @@