From 44092efbd086ad663324994d848fcb8ccf4a8079 Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Tue, 22 Nov 2022 16:34:32 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E5=8A=9F=E8=83=BD=E7=94=A8=E4=BE=8Bloading?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1020032 --user=陈建星 【测试跟踪】上传jira插件-测试用例-批量关联jira需求-提示关联成功,实际没关联 https://www.tapd.cn/55049933/s/1301389 --- .../src/business/case/components/TestCaseEdit.vue | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/test-track/frontend/src/business/case/components/TestCaseEdit.vue b/test-track/frontend/src/business/case/components/TestCaseEdit.vue index 25a4e4189f..2a512046f7 100644 --- a/test-track/frontend/src/business/case/components/TestCaseEdit.vue +++ b/test-track/frontend/src/business/case/components/TestCaseEdit.vue @@ -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();