-
{{ 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('无限制') }}
+
{{ targetSepc }}
{{ t('请先选择部署方案') }}
+ style="color: #c4c6cc">
+ {{ t('请先选择部署方案') }}
+
@@ -369,7 +369,7 @@
if (capacityNeed.value > 0) {
isTableLoading.value = true;
const params = {
- spec_cluster_type: 'MongoShardedCluster',
+ 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 7f5f4f5050..8bf919ccf6 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';
@@ -338,7 +338,7 @@
}
getFilterClusterSpecRun({
- spec_cluster_type: ClusterTypes.MONGO_SHARED_CLUSTER,
+ 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 0eda8e1b8c..a0746e23a5 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
@@ -175,7 +175,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 a494dff857..54a15b3573 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,8 +23,8 @@
v-model="moduleValue"
:biz-id="3"
:cloud-id="0"
- :cluster-type="clusterType"
- :machine-type="machineType"
+ cluster-type="mongodb"
+ machine-type="mongodb"
:show-refresh="false" />
@@ -34,8 +34,6 @@
import MongoDBModel from '@services/model/mongodb/mongodb';
- import { ClusterTypes } from '@common/const';
-
import RenderTargetSpec from '@views/db-manage/common/apply-items/SpecSelector.vue';
interface Props {
@@ -58,8 +56,6 @@
default: '',
});
- const machineType = computed(() => (props.clusterType === ClusterTypes.MONGO_REPLICA_SET ? 'mongos' : 'mongodb'));
-
const rules = [
{
validator: (value: number) => value >= 0,
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 d67b39dcf9..96854c294a 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
@@ -117,7 +117,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 3df157fa71..404046ec07 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" />