|
|
|
@@ -186,11 +186,13 @@ export default { |
|
|
|
const data = list.map((item) => { |
|
|
|
const Specs = item.Specs; |
|
|
|
const specsList = []; |
|
|
|
const queues = [], queueIds = []; |
|
|
|
const queues = []; |
|
|
|
const queueIds = []; |
|
|
|
let cluster = ''; |
|
|
|
for (let i = 0, iLen = Specs.length; i < iLen; i++) { |
|
|
|
const Spec = Specs[i]; |
|
|
|
const NGPU = `${Spec.ComputeResource}:${Spec.AccCardsNum === 0 ? '0' : Spec.AccCardsNum + '*' + getListValueWithKey(this.accCardTypeList, Spec.AccCardType)}`; |
|
|
|
// const NGPU = `${Spec.ComputeResource}:${Spec.AccCardsNum === 0 ? '0' : Spec.AccCardsNum + '*' + getListValueWithKey(this.accCardTypeList, Spec.AccCardType)}`; |
|
|
|
const NGPU = `${Spec.ComputeResource}:${Spec.AccCardsNum + '*' + getListValueWithKey(this.accCardTypeList, Spec.AccCardType)}`; |
|
|
|
specsList.push({ |
|
|
|
k: Spec.ID, |
|
|
|
v: `${NGPU}, CPU:${Spec.CpuCores}, ${this.$t('resourcesManagement.gpuMem')}:${Spec.GPUMemGiB}GB, ${this.$t('resourcesManagement.mem')}:${Spec.MemGiB}GB, ${this.$t('resourcesManagement.shareMem')}:${Spec.ShareMemGiB}GB, ${this.$t('resourcesManagement.unitPrice')}:${Spec.UnitPrice}${this.$t('resourcesManagement.point_hr')}`, |
|
|
|
@@ -201,8 +203,8 @@ export default { |
|
|
|
QueueId: Spec.QueueId, |
|
|
|
QueueCode: Spec.QueueCode, |
|
|
|
AiCenterCode: Spec.AiCenterCode, |
|
|
|
AiCenterName: getListValueWithKey(this.aiCenterList, Spec.AiCenterCode), |
|
|
|
QueueStr: `${Spec.QueueCode}(${getListValueWithKey(this.clusterList, Spec.Cluster)} - ${getListValueWithKey(this.aiCenterList, Spec.AiCenterCode)})`, |
|
|
|
AiCenterName: Spec.AiCenterName, |
|
|
|
QueueStr: `${Spec.QueueCode}(${getListValueWithKey(this.clusterList, Spec.Cluster)} - ${Spec.AiCenterName})`, |
|
|
|
}); |
|
|
|
queueIds.push(Spec.QueueId); |
|
|
|
} |
|
|
|
|