|
220 | 220 | </a-form-item> |
221 | 221 |
|
222 | 222 | <a-row :gutter="12" v-if="hyperKVMShow || hyperVMWShow"> |
223 | | - <a-col :md="24" :lg="24" v-if="hyperKVMShow || (hyperVMWShow && !deployasis)"> |
| 223 | + <a-col :md="24" :lg="hyperKVMShow ? 24 : 12" v-if="hyperKVMShow || (hyperVMWShow && !deployasis)"> |
224 | 224 | <a-form-item :label="$t('label.rootdiskcontrollertype')"> |
225 | 225 | <a-select |
226 | 226 | v-decorator="['rootDiskControllerType', { |
|
240 | 240 | </a-select> |
241 | 241 | </a-form-item> |
242 | 242 | </a-col> |
243 | | - <a-col :md="24" :lg="24"> |
244 | | - <a-form-item v-if="hyperVMWShow && !deployasis" :label="$t('label.keyboardtype')"> |
| 243 | + <a-col :md="24" :lg="12" v-if="hyperVMWShow && !deployasis"> |
| 244 | + <a-form-item :label="$t('label.nicadaptertype')"> |
245 | 245 | <a-select |
246 | | - v-decorator="['keyboardType', { |
| 246 | + v-decorator="['nicAdapterType', { |
247 | 247 | rules: [ |
248 | 248 | { |
249 | 249 | required: false, |
250 | 250 | message: `${this.$t('message.error.select')}` |
251 | 251 | } |
252 | 252 | ] |
253 | 253 | }]" |
254 | | - :placeholder="$t('label.keyboard')"> |
255 | | - <a-select-option v-for="opt in keyboardType.opts" :key="opt.id"> |
256 | | - {{ opt.name || opt.description }} |
257 | | - </a-select-option> |
258 | | - </a-select> |
259 | | - </a-form-item> |
260 | | - </a-col> |
261 | | - </a-row> |
262 | | - <a-row :gutter="12" v-if="!hyperVMWShow || (hyperVMWShow && !deployasis)"> |
263 | | - <a-col :md="24" :lg="24"> |
264 | | - <a-form-item :label="$t('label.ostypeid')"> |
265 | | - <a-select |
266 | | - showSearch |
267 | | - optionFilterProp="children" |
268 | | - :filterOption="(input, option) => { |
269 | | - return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0 |
270 | | - }" |
271 | | - v-decorator="['ostypeid', { |
272 | | - initialValue: defaultOsId, |
273 | | - rules: [ |
274 | | - { |
275 | | - required: true, |
276 | | - message: `${this.$t('message.error.select')}` |
277 | | - } |
278 | | - ] |
279 | | - }]" |
280 | | - :loading="osTypes.loading" |
281 | | - :placeholder="apiParams.ostypeid.description"> |
282 | | - <a-select-option v-for="opt in osTypes.opts" :key="opt.id"> |
| 254 | + :placeholder="$t('label.nicadaptertype')"> |
| 255 | + <a-select-option v-for="opt in nicAdapterType.opts" :key="opt.id"> |
283 | 256 | {{ opt.name || opt.description }} |
284 | 257 | </a-select-option> |
285 | 258 | </a-select> |
286 | 259 | </a-form-item> |
287 | 260 | </a-col> |
288 | 261 | </a-row> |
| 262 | + <a-form-item :label="$t('label.keyboardtype')" :lg="12" v-if="hyperVMWShow && !deployasis"> |
| 263 | + <a-select |
| 264 | + v-decorator="['keyboardType', { |
| 265 | + rules: [ |
| 266 | + { |
| 267 | + required: false, |
| 268 | + message: `${this.$t('message.error.select')}` |
| 269 | + } |
| 270 | + ] |
| 271 | + }]" |
| 272 | + :placeholder="$t('label.keyboard')"> |
| 273 | + <a-select-option v-for="opt in keyboardType.opts" :key="opt.id"> |
| 274 | + {{ opt.name || opt.description }} |
| 275 | + </a-select-option> |
| 276 | + </a-select> |
| 277 | + </a-form-item> |
| 278 | + <a-form-item :label="$t('label.ostypeid')" v-if="!hyperVMWShow || (hyperVMWShow && !deployasis)"> |
| 279 | + <a-select |
| 280 | + showSearch |
| 281 | + optionFilterProp="children" |
| 282 | + :filterOption="(input, option) => { |
| 283 | + return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0 |
| 284 | + }" |
| 285 | + v-decorator="['ostypeid', { |
| 286 | + initialValue: defaultOsId, |
| 287 | + rules: [ |
| 288 | + { |
| 289 | + required: true, |
| 290 | + message: `${this.$t('message.error.select')}` |
| 291 | + } |
| 292 | + ] |
| 293 | + }]" |
| 294 | + :loading="osTypes.loading" |
| 295 | + :placeholder="apiParams.ostypeid.description"> |
| 296 | + <a-select-option v-for="opt in osTypes.opts" :key="opt.id"> |
| 297 | + {{ opt.name || opt.description }} |
| 298 | + </a-select-option> |
| 299 | + </a-select> |
| 300 | + </a-form-item> |
289 | 301 | <a-row :gutter="12"> |
290 | 302 | <a-col :md="24" :lg="24"> |
291 | 303 | <a-form-item> |
|
0 commit comments