Browse Source

Merge remote-tracking branch 'origin/fix-3168' into fix-3168

tags/v1.22.11.2^2
chenyifan01 3 years ago
parent
commit
f24d5ba8b3
2 changed files with 16 additions and 3 deletions
  1. +13
    -0
      web_src/vuepages/apis/modules/resources.js
  2. +3
    -3
      web_src/vuepages/pages/resources/components/SceneDialog.vue

+ 13
- 0
web_src/vuepages/apis/modules/resources.js View File

@@ -110,6 +110,19 @@ export const getResSpecificationList = (params) => {
}); });
} }


// 查询资源规格列表(所有)
// cluster 所属集群 :OpenI 启智集群,C2Net 智算集群
// queue 所属队列id
// status 状态 : 1 待审核 2已上架 3已下架
export const getResSpecificationListAll = (params) => {
return service({
url: '/admin/resources/specification/list/all',
method: 'get',
params,
data: {},
});
}

// 同步智算网络资源池(队列) // 同步智算网络资源池(队列)
export const syncResSpecification = () => { export const syncResSpecification = () => {
return service({ return service({


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

@@ -89,7 +89,7 @@
</template> </template>
<script> <script>
import BaseDialog from '~/components/BaseDialog.vue'; import BaseDialog from '~/components/BaseDialog.vue';
import { getResQueueCode, getResSpecificationList, addResScene, updateResScene } from '~/apis/modules/resources';
import { getResQueueCode, getResSpecificationListAll, addResScene, updateResScene } from '~/apis/modules/resources';
import { JOB_TYPE, CLUSTERS, ACC_CARD_TYPE, SPECIFICATION_STATUS } from '~/const'; import { JOB_TYPE, CLUSTERS, ACC_CARD_TYPE, SPECIFICATION_STATUS } from '~/const';
import { getListValueWithKey } from '~/utils'; import { getListValueWithKey } from '~/utils';


@@ -170,9 +170,9 @@ export default {
cluster: this.dataInfo.Cluster, cluster: this.dataInfo.Cluster,
queue: this.dataInfo.QueueId === '-1' ? '' : this.dataInfo.QueueId, queue: this.dataInfo.QueueId === '-1' ? '' : this.dataInfo.QueueId,
// status: 2, // status: 2,
page: 1,
// page: 1,
}; };
return getResSpecificationList(params).then(res => {
return getResSpecificationListAll(params).then(res => {
res = res.data; res = res.data;
if (res.Code === 0) { if (res.Code === 0) {
const list = res.Data.List; const list = res.Data.List;


Loading…
Cancel
Save