fix:修改实例规格参数和镜像管理参数
This commit is contained in:
@@ -837,6 +837,54 @@
|
||||
</el-row>
|
||||
</div>
|
||||
|
||||
<div class="form-section" v-if="TypeData == 'hyperV'">
|
||||
<div class="section-title">GPU配置</div>
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="12">
|
||||
<el-form-item label="GPU资源百分比">
|
||||
<el-input v-model="spec_form.gpu_percentage" placeholder="GPU资源百分比" type="number">
|
||||
<template #append>%</template>
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="最小显存">
|
||||
<el-input v-model="spec_form.min_partition_vram" placeholder="最小显存" type="number">
|
||||
<template #append>MB</template>
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="最大显存">
|
||||
<el-input v-model="spec_form.max_partition_vram" placeholder="最大显存" type="number">
|
||||
<template #append>MB</template>
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="最优显存">
|
||||
<el-input v-model="spec_form.optimal_partition_vram" placeholder="最优显存" type="number">
|
||||
<template #append>MB</template>
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="低内存映射IO空间">
|
||||
<el-input v-model="spec_form.low_mmio_space" placeholder="默认128" type="number" :value="spec_form.low_mmio_space || 128">
|
||||
<template #append>MB</template>
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="高内存映射IO空间">
|
||||
<el-input v-model="spec_form.high_mmio_space" placeholder="建议为显存的2倍" type="number">
|
||||
<template #append>MB</template>
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</div>
|
||||
|
||||
<div class="form-section">
|
||||
<div class="section-title">价格与验证</div>
|
||||
<el-row :gutter="20">
|
||||
@@ -2205,7 +2253,13 @@ const spec_form = reactive({
|
||||
min_iops: "",
|
||||
max_iops: "",
|
||||
description: "",
|
||||
must_real_name: 0
|
||||
must_real_name: 0,
|
||||
gpu_percentage: "",
|
||||
min_partition_vram: "",
|
||||
max_partition_vram: "",
|
||||
optimal_partition_vram: "",
|
||||
low_mmio_space: "",
|
||||
high_mmio_space: ""
|
||||
});
|
||||
|
||||
function show_spec(data = null) {
|
||||
@@ -2227,6 +2281,7 @@ function show_spec(data = null) {
|
||||
spec_form.snapshot_num = '3';
|
||||
spec_form.min_iops = '1000';
|
||||
spec_form.max_iops = '5000';
|
||||
spec_form.low_mmio_space = '128';
|
||||
}
|
||||
} else {
|
||||
// 复制传入的数据
|
||||
|
||||
Reference in New Issue
Block a user