fix(系统设置): 修改配额时开启默认配额数据回显问题
--bug=1022877 --user=李玉号 【系统设置】github#21672,使用默认系统配额,在配置列表详情页面进行开关操作,未回显成功,回到列表后,闪现到正确配额 https://www.tapd.cn/55049933/s/1334419 Closes #21672
This commit is contained in:
parent
1172c2bb2d
commit
137452ed42
|
@ -94,6 +94,7 @@ export default {
|
|||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
defaultQuota: Object,
|
||||
title: String,
|
||||
quota: Object,
|
||||
resources: Array,
|
||||
|
@ -132,6 +133,15 @@ export default {
|
|||
this.form.member = 0;
|
||||
this.form.project = 0;
|
||||
this.form.vumTotal = 0;
|
||||
} else {
|
||||
this.form.api = this.defaultQuota.api;
|
||||
this.form.performance = this.defaultQuota.performance;
|
||||
this.form.maxThreads = this.defaultQuota.maxThreads;
|
||||
this.form.duration = this.defaultQuota.duration;
|
||||
this.form.resourcePool = this.defaultQuota.resourcePool ? this.defaultQuota.resourcePool.split(",") : [];
|
||||
this.form.member = this.defaultQuota.member;
|
||||
this.form.project = this.defaultQuota.project;
|
||||
this.form.vumTotal = this.defaultQuota.vumTotal;
|
||||
}
|
||||
},
|
||||
open() {
|
||||
|
|
|
@ -145,7 +145,7 @@
|
|||
</span>
|
||||
</ms-table>
|
||||
|
||||
<edit-quota :title="title" :quota="quota" :resources="resources"
|
||||
<edit-quota :title="title" :quota="quota" :resources="resources" :default-quota="defaultQuota"
|
||||
@confirm="confirm" :quota-type="quotaType" ref="editQuota"/>
|
||||
<ms-table-pagination :change="search" :current-page.sync="currentPage" :page-size.sync="pageSize"
|
||||
:total="total"/>
|
||||
|
|
Loading…
Reference in New Issue