config_tools: disable cpu_affinity realtime vcpu column checkbox

disable cpu_affinity realtime vcpu column checkbox

Tracked-On: #6691
Signed-off-by: Weiyi Feng <weiyix.feng@intel.com>
This commit is contained in:
Weiyi Feng 2022-06-22 16:29:10 +08:00 committed by acrnsi-robot
parent 92f5c67af6
commit e3848feabf
1 changed files with 4 additions and 1 deletions

View File

@ -29,7 +29,7 @@
</div>
</b-col>
<b-col class="p-3">
<b-form-checkbox v-model="cpu.real_time_vcpu" :value="'y'" :uncheckedValue="'n'"/>
<b-form-checkbox v-model="cpu.real_time_vcpu" :value="'y'" :uncheckedValue="'n'" :disabled="!isRTVM"/>
</b-col>
<b-col>
<div class="ToolSet">
@ -95,6 +95,9 @@ export default {
}
},
computed: {
isRTVM() {
return vueUtils.getPathVal(this.rootFormData, 'vm_type') === 'RTVM'
},
pcpuid_enum() {
return window.getCurrentFormSchemaData().BasicConfigType.definitions.CPUAffinityConfiguration.properties.pcpu_id.enum
},