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:
parent
92f5c67af6
commit
e3848feabf
|
@ -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
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue