Browse Source

Merge pull request 'Resources Management' (#2765) from res-manage into res-manage-v2

Reviewed-on: https://git.openi.org.cn/OpenI/aiforge/pulls/2765
pull/2799/head
chenshihai 2 years ago
parent
commit
8d9dd1ecf1
1 changed files with 10 additions and 8 deletions
  1. +10
    -8
      web_src/vuepages/pages/resources/components/SceneDialog.vue

+ 10
- 8
web_src/vuepages/pages/resources/components/SceneDialog.vue View File

@@ -38,7 +38,8 @@
<span>{{ $t('resourcesManagement.exclusiveOrg') }}</span> <span>{{ $t('resourcesManagement.exclusiveOrg') }}</span>
</div> </div>
<div class="content"> <div class="content">
<el-input v-model="dataInfo.ExclusiveOrg" :placeholder="$t('resourcesManagement.exclusiveOrgTips')" maxlength="255">
<el-input v-model="dataInfo.ExclusiveOrg" :placeholder="$t('resourcesManagement.exclusiveOrgTips')"
maxlength="255">
</el-input> </el-input>
</div> </div>
</div> </div>
@@ -146,14 +147,15 @@ export default {
v: `${item.QueueCode}(${getListValueWithKey(this.clusterList, item.Cluster)} - ${item.AiCenterName})`, v: `${item.QueueCode}(${getListValueWithKey(this.clusterList, item.Cluster)} - ${item.AiCenterName})`,
}); });
} }
if (this.dataInfo.Cluster === 'C2Net') {
list.unshift({
k: '-1',
v: this.$t('resourcesManagement.allResQueue'),
});
}
list.unshift({
k: '-1',
v: this.$t('resourcesManagement.allResQueue'),
});
this.queueList.splice(0, Infinity, ...list); this.queueList.splice(0, Infinity, ...list);
if (next) { if (next) {
if (this.type === 'add') {
this.dataInfo.QueueId = '-1';
}
this.getResSpecificationList(); this.getResSpecificationList();
} }
} }
@@ -195,7 +197,7 @@ export default {
this.dataInfo.SpecIds = []; this.dataInfo.SpecIds = [];
this.queueList.splice(0, Infinity); this.queueList.splice(0, Infinity);
this.specsList.splice(0, Infinity); this.specsList.splice(0, Infinity);
this.getQueueList();
this.getQueueList(true);
}, },
changeQueue() { changeQueue() {
this.dataInfo.SpecIds = []; this.dataInfo.SpecIds = [];


Loading…
Cancel
Save