#5286 update demand page

Merged
ychao_1983 merged 2 commits from fix-4944 into V20240129 2 months ago
  1. +1
    -1
      web_src/vuepages/pages/computingpower/components/DemandForm.vue
  2. +6
    -4
      web_src/vuepages/pages/computingpower/demand/index.vue

+ 1
- 1
web_src/vuepages/pages/computingpower/components/DemandForm.vue View File

@@ -2,7 +2,7 @@
<div>
<div class="title" v-if="type == 'add'">请在下方填写您的算力使用需求,部分大额或独占资源使用涉及付费,平台运营人员会与您联系沟通详情。</div>
<div class="form-c">
<el-form ref="formRef" size="default" :model="form" :rules="formRules" label-width="110px">
<el-form ref="formRef" class="ignore-dirty" size="default" :model="form" :rules="formRules" label-width="110px">
<el-form-item label="计算资源" prop="compute_resource">
<el-select :disabled="disabledEdit" v-model="form.compute_resource" placeholder="请选择计算资源"
@change="changeComputeResource">


+ 6
- 4
web_src/vuepages/pages/computingpower/demand/index.vue View File

@@ -27,7 +27,7 @@
<div class="demand-item-line">
<div class="demand-item-line-block"><span>计算资源:</span><span>{{ item.compute_resource }}</span></div>
<div class="demand-item-line-block"><span>卡类型:</span><span>{{ item.card_type_show || item.card_type
}}</span></div>
}}</span></div>
<div class="demand-item-line-block"><span>卡数(卡):</span><span>{{ item.acc_cards_num }}</span></div>
</div>
<div class="demand-item-line">
@@ -66,7 +66,7 @@
<div class="demand-item-line">
<div class="demand-item-line-block"><span>计算资源:</span><span>{{ item.compute_resource }}</span></div>
<div class="demand-item-line-block"><span>卡类型:</span><span>{{ item.card_type_show || item.card_type
}}</span></div>
}}</span></div>
<div class="demand-item-line-block"><span>卡数(卡):</span><span>{{ item.acc_cards_num }}</span></div>
</div>
<div class="demand-item-line">
@@ -77,7 +77,7 @@
<div class="demand-item-line">
<div class="demand-item-line-block">
<span>承接方:</span><span>{{ Array.from(new Set((item.specs || []).map(itm =>
itm.AiCenterName))).join('、') || '--' }}</span>
itm.AiCenterName))).join('、') || '--' }}</span>
</div>
</div>
</div>
@@ -224,7 +224,9 @@ export default {
dayjs(unix * 1000).format('ddd, D MMM YYYY HH:mm:ss [CST]');
},
demandAddSuccess() {
this.getData();
this.activeTab = -1;
window.scrollTo({ top: 0 });
this.changeTab(2);
},
demandAddError() { },
demandUpdateSuccess() {


Loading…
Cancel
Save