fix: modify
parent
e5551d64a9
commit
d5e306fc03
|
@ -49,6 +49,22 @@
|
||||||
</cb-form-item>
|
</cb-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<images :add-data="addData" :vendor-id="vendorId"></images>
|
<images :add-data="addData" :vendor-id="vendorId"></images>
|
||||||
|
<el-col :span="24">
|
||||||
|
<cb-form-item label="本地磁盘:" v-if="systemVolumeLabel || dataVolumeLabel">
|
||||||
|
<div v-if="systemVolumeLabel">
|
||||||
|
{{ systemVolumeLabel }}
|
||||||
|
<el-select v-model="addData.systemVolumeRaidUuid" class="w m-l">
|
||||||
|
<el-option v-for="row in systemRaidList" :label="row.nameZh" :value="row.uuid" :key="row.uuid"></el-option>
|
||||||
|
</el-select>
|
||||||
|
</div>
|
||||||
|
<div v-if="dataVolumeLabel">
|
||||||
|
{{ dataVolumeLabel }}
|
||||||
|
<el-select v-model="addData.dataVolumeRaidUuid" class="w m-l">
|
||||||
|
<el-option v-for="row in dataRaidList" :label="row.nameZh" :value="row.uuid" :key="row.uuid"></el-option>
|
||||||
|
</el-select>
|
||||||
|
</div>
|
||||||
|
</cb-form-item>
|
||||||
|
</el-col>
|
||||||
<el-col :span="24">
|
<el-col :span="24">
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<cb-form-item label="所属VPC:" prop="vpcUuid" :rules="[required]">
|
<cb-form-item label="所属VPC:" prop="vpcUuid" :rules="[required]">
|
||||||
|
@ -107,22 +123,6 @@
|
||||||
<el-input v-model="addData.remark"></el-input>
|
<el-input v-model="addData.remark"></el-input>
|
||||||
</cb-form-item>
|
</cb-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="24">
|
|
||||||
<cb-form-item label="本地磁盘:" v-if="systemVolumeLabel || dataVolumeLabel">
|
|
||||||
<div v-if="systemVolumeLabel">
|
|
||||||
{{ systemVolumeLabel }}
|
|
||||||
<el-select v-model="addData.systemVolumeRaidUuid" class="w m-l">
|
|
||||||
<el-option v-for="row in systemRaidList" :label="row.nameZh" :value="row.uuid" :key="row.uuid"></el-option>
|
|
||||||
</el-select>
|
|
||||||
</div>
|
|
||||||
<div v-if="dataVolumeLabel">
|
|
||||||
{{ dataVolumeLabel }}
|
|
||||||
<el-select v-model="addData.dataVolumeRaidUuid" class="w m-l">
|
|
||||||
<el-option v-for="row in dataRaidList" :label="row.nameZh" :value="row.uuid" :key="row.uuid"></el-option>
|
|
||||||
</el-select>
|
|
||||||
</div>
|
|
||||||
</cb-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="24" v-for="(item, index) in addData.diskDevices" :key="index">
|
<el-col :span="24" v-for="(item, index) in addData.diskDevices" :key="index">
|
||||||
<cb-form-item :label="'数据盘' + (index + 1) + ':'">
|
<cb-form-item :label="'数据盘' + (index + 1) + ':'">
|
||||||
<el-col :span="6">
|
<el-col :span="6">
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
<el-radio disabled :label="item.value" :key="index" v-for="(item, index) in typeList" border> {{ item.name }}</el-radio>
|
<el-radio disabled :label="item.value" :key="index" v-for="(item, index) in typeList" border> {{ item.name }}</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
<el-select filterable v-model="addData.imageUuid" class="w-lg">
|
<el-select filterable v-model="addData.imageUuid" class="w-lg">
|
||||||
<el-option v-for="item in imageList" :key="item.imageUUID" :label="`${item.nameZh} ${item.version} ${item.os[0].bits}位`" :value="item.imageUUID"></el-option>
|
<el-option v-for="item in imageList" :key="item.imageUUID" :label="`${item.nameZh} ${item.version} ${item.os.bits}位`" :value="item.imageUUID"></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
@ -57,7 +57,9 @@ export default {
|
||||||
}).then(data => {
|
}).then(data => {
|
||||||
if (data.success) {
|
if (data.success) {
|
||||||
this.imageList = data.data
|
this.imageList = data.data
|
||||||
if (data.data.length) this.addData.imageUuid = data.data[0].imageUUID
|
this.$nextTick(() => {
|
||||||
|
if (data.data.length) this.addData.imageUuid = data.data[0].imageUUID
|
||||||
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue