diff --git a/dbm-ui/frontend/src/services/source/cmdb.ts b/dbm-ui/frontend/src/services/source/cmdb.ts index be85ea2196..2411982d45 100644 --- a/dbm-ui/frontend/src/services/source/cmdb.ts +++ b/dbm-ui/frontend/src/services/source/cmdb.ts @@ -46,7 +46,12 @@ export function getBizs(params = {} as { action: string }) { /** * 创建数据库模块 */ -export function createModules(params: { db_module_name: string; cluster_type: string; biz_id: number }) { +export function createModules(params: { + db_module_name: string; + alias_name: string; + cluster_type: string; + biz_id: number; +}) { return http.post<{ db_module_id: number; db_module_name: string; @@ -83,6 +88,7 @@ export function getUserGroupList(params: { bk_biz_id: number }) { export function getModules(params: { bk_biz_id: number; cluster_type: string }) { return http.get< { + alias_name: string; bk_biz_id: number; db_module_id: number; name: string; diff --git a/dbm-ui/frontend/src/services/source/ticket.tsx b/dbm-ui/frontend/src/services/source/ticket.tsx index 37cd86b36d..7e06245d0f 100644 --- a/dbm-ui/frontend/src/services/source/ticket.tsx +++ b/dbm-ui/frontend/src/services/source/ticket.tsx @@ -389,16 +389,16 @@ export const createAppAbbr = (params: { db_app_abbr: string; id: number }) => /** * 创建模块 */ -export const createModules = (params: { db_module_name: string; cluster_type: string; id: number }) => - http.post<{ - db_module_id: number; - db_module_name: string; - cluster_type: string; - bk_biz_id: number; - bk_set_id: number; - bk_modules: { bk_module_name: string; bk_module_id: string }[]; - name: string; - }>(`/apis/cmdb/${params.id}/create_module/`, params); +// export const createModules = (params: { db_module_name: string; cluster_type: string; id: number }) => +// http.post<{ +// db_module_id: number; +// db_module_name: string; +// cluster_type: string; +// bk_biz_id: number; +// bk_set_id: number; +// bk_modules: { bk_module_name: string; bk_module_id: string }[]; +// name: string; +// }>(`/apis/cmdb/${params.id}/create_module/`, params); /** * 保存模块配置 diff --git a/dbm-ui/frontend/src/views/db-configure/business/list/components/ConfigEmpty.vue b/dbm-ui/frontend/src/views/db-configure/business/list/components/ConfigEmpty.vue index 0203051ba2..2b28a3ef2d 100644 --- a/dbm-ui/frontend/src/views/db-configure/business/list/components/ConfigEmpty.vue +++ b/dbm-ui/frontend/src/views/db-configure/business/list/components/ConfigEmpty.vue @@ -63,7 +63,7 @@ bk_biz_id: globalBizsStore.currentBizId, db_module_id: id, }, - query: { module_name: name }, + query: { alias_name: name }, }); }; diff --git a/dbm-ui/frontend/src/views/db-manage/mongodb/replica-set-apply/Index.vue b/dbm-ui/frontend/src/views/db-manage/mongodb/replica-set-apply/Index.vue index 50e76015af..cb5aefe0d9 100644 --- a/dbm-ui/frontend/src/views/db-manage/mongodb/replica-set-apply/Index.vue +++ b/dbm-ui/frontend/src/views/db-manage/mongodb/replica-set-apply/Index.vue @@ -391,7 +391,7 @@ .apply-instance { :deep(.item-input) { - width: 462px; + width: 435px; } .input-desc { diff --git a/dbm-ui/frontend/src/views/db-manage/mongodb/shared-cluster-apply/Index.vue b/dbm-ui/frontend/src/views/db-manage/mongodb/shared-cluster-apply/Index.vue index 9239c01213..7a2939a44d 100644 --- a/dbm-ui/frontend/src/views/db-manage/mongodb/shared-cluster-apply/Index.vue +++ b/dbm-ui/frontend/src/views/db-manage/mongodb/shared-cluster-apply/Index.vue @@ -414,7 +414,7 @@ } :deep(.item-input) { - width: 462px; + width: 435px; } .resource-pool-item { diff --git a/dbm-ui/frontend/src/views/db-manage/mysql/apply/ApplyMySQL.vue b/dbm-ui/frontend/src/views/db-manage/mysql/apply/ApplyMySQL.vue index a3776a85e4..e5f90832be 100644 --- a/dbm-ui/frontend/src/views/db-manage/mysql/apply/ApplyMySQL.vue +++ b/dbm-ui/frontend/src/views/db-manage/mysql/apply/ApplyMySQL.vue @@ -46,7 +46,7 @@ :key="item.db_module_id" action-id="dbconfig_view" :biz-id="formdata.bk_biz_id" - :name="item.name" + :name="item.alias_name" :permission="item.permission.dbconfig_view" resource="mysql" />