File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 180180 :cpuSpeed =" getCPUSpeed()"
181181 @update-iops-value =" updateFieldValue"
182182 @update-compute-cpunumber =" updateFieldValue"
183- @update-compute-cpuspeed =" updateFieldValue "
183+ @update-compute-cpuspeed =" updateCpuSpeed "
184184 @update-compute-memory =" updateFieldValue" />
185185 <div v-if =" resource.disk && resource.disk.length > 1" >
186186 <a-form-item name =" selection" ref =" selection" >
@@ -595,6 +595,15 @@ export default {
595595 this .selectMatchingComputeOffering ()
596596 })
597597 },
598+ updateCpuSpeed (name , value ) {
599+ if (this .computeOffering .iscustomized ) {
600+ if (this .computeOffering .serviceofferingdetails ) {
601+ this .updateFieldValue (this .cpuSpeedKey , this .computeOffering .cpuspeed )
602+ } else {
603+ this .updateFieldValue (this .cpuSpeedKey , value)
604+ }
605+ }
606+ },
598607 updateFieldValue (name , value ) {
599608 this .form [name] = value
600609 },
You can’t perform that action at this time.
0 commit comments