fix(系统设置): 工作空间默认配额的性能测试数量限制未生效
--bug=1018615 --user=李玉号 【系统设置】系统配额管理-工作空间默认配额的性能测试数量限制未生效 https://www.tapd.cn/55049933/s/1271238
This commit is contained in:
parent
1ec1579f9e
commit
2161159627
|
@ -590,9 +590,10 @@ public class PerformanceTestService {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void copy(SaveTestPlanRequest request) {
|
public void copy(SaveTestPlanRequest request) {
|
||||||
|
LoadTestWithBLOBs copy = loadTestMapper.selectByPrimaryKey(request.getId());
|
||||||
|
request.setProjectId(copy.getProjectId());
|
||||||
checkQuota(request, true);
|
checkQuota(request, true);
|
||||||
// copy test
|
// copy test
|
||||||
LoadTestWithBLOBs copy = loadTestMapper.selectByPrimaryKey(request.getId());
|
|
||||||
String copyName = copy.getName() + " Copy";
|
String copyName = copy.getName() + " Copy";
|
||||||
|
|
||||||
if (StringUtils.length(copyName) > 30) {
|
if (StringUtils.length(copyName) > 30) {
|
||||||
|
|
|
@ -291,6 +291,9 @@ export default {
|
||||||
this.tableLoading = false;
|
this.tableLoading = false;
|
||||||
this.$success(this.$t('commons.copy_success'));
|
this.$success(this.$t('commons.copy_success'));
|
||||||
this.search();
|
this.search();
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
|
this.tableLoading = false;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
handleRun(test) {
|
handleRun(test) {
|
||||||
|
|
Loading…
Reference in New Issue