diff --git a/dbm-ui/frontend/src/components/editable-info/index.vue b/dbm-ui/frontend/src/components/editable-info/index.vue
index 408a20cfc5..2adb56f1ce 100644
--- a/dbm-ui/frontend/src/components/editable-info/index.vue
+++ b/dbm-ui/frontend/src/components/editable-info/index.vue
@@ -64,7 +64,7 @@
v-overflow-tips
class="base-info__value text-overflow">
{{ data[config.key] || '--' }}
@@ -100,7 +100,7 @@
isEdit?: boolean;
isCopy?: boolean;
isRequired?: boolean;
- render?: () => VNode | string | null;
+ render?: (data: Record) => VNode | string | null;
};
export type EditEmitData = {
diff --git a/dbm-ui/frontend/src/locales/zh-cn.json b/dbm-ui/frontend/src/locales/zh-cn.json
index bc8be72d6d..7200c08dd7 100644
--- a/dbm-ui/frontend/src/locales/zh-cn.json
+++ b/dbm-ui/frontend/src/locales/zh-cn.json
@@ -3676,5 +3676,6 @@
"冷/热节点": "冷/热节点",
"冷_热节点规格": "冷_热节点规格",
"同主机关联的其他集群,勾选后一并添加": "同主机关联的其他集群,勾选后一并添加",
+ "实际内存分配比率": "实际内存分配比率",
"这行勿动!新增翻译请在上一行添加!": ""
}
diff --git a/dbm-ui/frontend/src/views/db-configure/business/list/components/hooks/useBaseDetails.ts b/dbm-ui/frontend/src/views/db-configure/business/list/components/hooks/useBaseDetails.ts
index 28981b0253..ee4b168473 100644
--- a/dbm-ui/frontend/src/views/db-configure/business/list/components/hooks/useBaseDetails.ts
+++ b/dbm-ui/frontend/src/views/db-configure/business/list/components/hooks/useBaseDetails.ts
@@ -27,6 +27,7 @@ interface State {
isEmpty: boolean;
version: string;
data: ServiceReturnType & { charset?: string };
+ deployInfo: ServiceReturnType & { charset?: string };
}
/**
* 获取参数管理基本信息
@@ -77,6 +78,13 @@ export const useBaseDetails = (immediateFetch = true, confName = 'db_version') =
description: '',
charset: '',
},
+ deployInfo: {
+ conf_items: [],
+ version: '',
+ name: '',
+ description: '',
+ charset: '',
+ },
});
const fetchParams = computed(() => getFetchParams('version'));
@@ -114,6 +122,7 @@ export const useBaseDetails = (immediateFetch = true, confName = 'db_version') =
state.loading = true;
getLevelConfig(params)
.then((res) => {
+ state.deployInfo = res;
res.conf_items.forEach((item) => {
if (item.conf_name === confName) {
state.version = item.conf_value ?? '';
diff --git a/dbm-ui/frontend/src/views/db-configure/business/list/components/module/ConfigDetails.vue b/dbm-ui/frontend/src/views/db-configure/business/list/components/module/ConfigDetails.vue
index a941fcf639..17cea33887 100644
--- a/dbm-ui/frontend/src/views/db-configure/business/list/components/module/ConfigDetails.vue
+++ b/dbm-ui/frontend/src/views/db-configure/business/list/components/module/ConfigDetails.vue
@@ -20,6 +20,7 @@
;
+ deployInfo?: ServiceReturnType;
loading?: boolean;
fetchParams?: PlatConfDetailsParams | ServiceParameters;
}
@@ -52,6 +54,10 @@
}) as NonNullable,
loading: false,
fetchParams: () => ({}) as PlatConfDetailsParams,
+ deployInfo: () =>
+ ({
+ conf_items: [] as NonNullable['conf_items'],
+ }) as NonNullable,
});
const route = useRoute();
diff --git a/dbm-ui/frontend/src/views/db-configure/business/list/components/module/Index.vue b/dbm-ui/frontend/src/views/db-configure/business/list/components/module/Index.vue
index 9e2c708247..dd30440122 100644
--- a/dbm-ui/frontend/src/views/db-configure/business/list/components/module/Index.vue
+++ b/dbm-ui/frontend/src/views/db-configure/business/list/components/module/Index.vue
@@ -33,6 +33,7 @@
diff --git a/dbm-ui/frontend/src/views/db-configure/components/DetailsBase.vue b/dbm-ui/frontend/src/views/db-configure/components/DetailsBase.vue
index 78fb3645d3..c65cc1bf12 100644
--- a/dbm-ui/frontend/src/views/db-configure/components/DetailsBase.vue
+++ b/dbm-ui/frontend/src/views/db-configure/components/DetailsBase.vue
@@ -23,7 +23,7 @@
:title="$t('基础信息')">
-