-
{{ t('内存') }}:
-
({{ item.mem.min }} ~ {{ item.mem.max }}) G
+
+
+ CPU:
+ ({{ item.cpu.min }} ~ {{ item.cpu.max }}) {{ t('核') }}
+
+
+ {{ t('内存') }}:
+ ({{ item.mem.min }} ~ {{ item.mem.max }}) G
+
+
+
+ {{ t('机型') }}:
+
+ {{ item.device_class.length > 0 ? item.device_class.join(',') : t('无限制') }}
+
0) {
isTableLoading.value = true;
const params = {
- // spec_cluster_type: 'MongoShardedCluster',
- spec_cluster_type: props.data.clusterType,
+ spec_cluster_type: 'mongodb',
spec_machine_type: 'mongodb',
capacity: capacityNeed.value,
shard_num: props.data.shardNum,
diff --git a/dbm-ui/frontend/src/views/db-manage/mongodb/components/MongoConfigSpec.vue b/dbm-ui/frontend/src/views/db-manage/mongodb/components/MongoConfigSpec.vue
index 87a1fa83bd..43deab9bd3 100644
--- a/dbm-ui/frontend/src/views/db-manage/mongodb/components/MongoConfigSpec.vue
+++ b/dbm-ui/frontend/src/views/db-manage/mongodb/components/MongoConfigSpec.vue
@@ -71,7 +71,7 @@
import { getFilterClusterSpec } from '@services/source/dbresourceSpec';
import {
- ClusterTypes,
+ DBTypes,
MachineTypes,
} from '@common/const';
@@ -98,7 +98,6 @@
shardNodeCount?: number,
isApply?: boolean
originSpecId?: number | string
- clusterType: ClusterTypes.MONGO_REPLICA_SET | ClusterTypes.MONGO_SHARED_CLUSTER
}
interface Emits {
@@ -339,7 +338,7 @@
}
getFilterClusterSpecRun({
- spec_cluster_type: props.clusterType,
+ spec_cluster_type: DBTypes.MONGODB,
spec_machine_type: MachineTypes.MONGODB,
capacity: Number(modelValue.value.capacity),
shard_num: props.shardNum,
diff --git a/dbm-ui/frontend/src/views/db-manage/mongodb/db-replace/pages/page1/components/Row.vue b/dbm-ui/frontend/src/views/db-manage/mongodb/db-replace/pages/page1/components/Row.vue
index eb3ecca849..c4c4a31135 100644
--- a/dbm-ui/frontend/src/views/db-manage/mongodb/db-replace/pages/page1/components/Row.vue
+++ b/dbm-ui/frontend/src/views/db-manage/mongodb/db-replace/pages/page1/components/Row.vue
@@ -191,7 +191,7 @@
([clusterType, machineType]) => {
if (clusterType && machineType) {
fetchResourceSpecList({
- spec_cluster_type: clusterType,
+ spec_cluster_type: 'mongodb',
spec_machine_type: machineType,
limit: -1,
offset: 0,
diff --git a/dbm-ui/frontend/src/views/db-manage/mongodb/db-structure/pages/page1/components/RenderTargetSpec.vue b/dbm-ui/frontend/src/views/db-manage/mongodb/db-structure/pages/page1/components/RenderTargetSpec.vue
index 46ead8fad5..1a519a4aec 100644
--- a/dbm-ui/frontend/src/views/db-manage/mongodb/db-structure/pages/page1/components/RenderTargetSpec.vue
+++ b/dbm-ui/frontend/src/views/db-manage/mongodb/db-structure/pages/page1/components/RenderTargetSpec.vue
@@ -23,7 +23,7 @@
v-model="moduleValue"
:biz-id="3"
:cloud-id="0"
- :cluster-type="clusterType"
+ cluster-type="mongodb"
machine-type="mongodb"
:show-refresh="false" />
diff --git a/dbm-ui/frontend/src/views/db-manage/mongodb/proxy-scale-up/pages/page1/Index.vue b/dbm-ui/frontend/src/views/db-manage/mongodb/proxy-scale-up/pages/page1/Index.vue
index eb470ccac6..f598d65b51 100644
--- a/dbm-ui/frontend/src/views/db-manage/mongodb/proxy-scale-up/pages/page1/Index.vue
+++ b/dbm-ui/frontend/src/views/db-manage/mongodb/proxy-scale-up/pages/page1/Index.vue
@@ -116,7 +116,7 @@
useRequest(getResourceSpecList, {
defaultParams: [
{
- spec_cluster_type: 'MongoShardedCluster',
+ spec_cluster_type: 'mongodb',
spec_machine_type: 'mongos',
limit: -1,
offset: 0,
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 1f7944d889..50e76015af 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
@@ -127,7 +127,7 @@
:biz-id="formData.bk_biz_id"
:city="formData.details.city_code"
:cloud-id="formData.details.bk_cloud_id"
- :cluster-type="ClusterTypes.MONGO_REPLICA_SET"
+ :cluster-type="DBTypes.MONGODB"
:machine-type="MachineTypes.MONGODB"
style="width: 314px" />