fix(测试跟踪): 编辑功能用例loading优化
--bug=1020032 --user=陈建星 【测试跟踪】上传jira插件-测试用例-批量关联jira需求-提示关联成功,实际没关联 https://www.tapd.cn/55049933/s/1301389
This commit is contained in:
parent
2aa2250b90
commit
44092efbd0
|
@ -414,6 +414,7 @@ export default {
|
|||
}
|
||||
this.projectId = this.projectIds;
|
||||
let initAddFuc = this.initAddFuc;
|
||||
this.loading = true;
|
||||
getTestTemplate()
|
||||
.then((template) => {
|
||||
this.testCaseTemplate = template;
|
||||
|
@ -444,10 +445,8 @@ export default {
|
|||
}
|
||||
}
|
||||
});
|
||||
this.loading = true;
|
||||
getProjectApplicationConfig('CASE_PUBLIC')
|
||||
.then(res => {
|
||||
this.loading = false;
|
||||
let data = res.data;
|
||||
if (data && data.typeValue === 'true') {
|
||||
this.isPublic = true;
|
||||
|
@ -514,6 +513,9 @@ export default {
|
|||
this.form.steps = JSON.parse(this.testCaseTemplate.steps);
|
||||
}
|
||||
}
|
||||
if (this.type === 'add' || this.type === 'copy') {
|
||||
this.loading = false;
|
||||
}
|
||||
},
|
||||
setDefaultValue() {
|
||||
if (!this.form.prerequisite) {
|
||||
|
@ -594,6 +596,7 @@ export default {
|
|||
*/
|
||||
this.projectId = this.projectIds;
|
||||
let initFuc = this.initEdit;
|
||||
this.loading = true;
|
||||
getTestTemplate()
|
||||
.then(template => {
|
||||
this.testCaseTemplate = template;
|
||||
|
@ -629,6 +632,7 @@ export default {
|
|||
this.showInputTag = true;
|
||||
});
|
||||
this.form.id = null;
|
||||
this.loading = false;
|
||||
} else {
|
||||
this.getTestCase(testCase.id);
|
||||
}
|
||||
|
@ -651,6 +655,7 @@ export default {
|
|||
this.getSelectOptions();
|
||||
this.customFieldForm = parseCustomField(this.form, this.testCaseTemplate, this.customFieldRules);
|
||||
this.reload();
|
||||
this.loading = false;
|
||||
}
|
||||
if (callback) {
|
||||
callback();
|
||||
|
|
Loading…
Reference in New Issue