From 1b9ff2ec16abacef7bfe90a9d613fe3cb1211ab5 Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Fri, 12 Nov 2021 10:19:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20--bug=3D1006115=20--user=3D=E9=99=88?= =?UTF-8?q?=E5=BB=BA=E6=98=9F=20=E3=80=90=E7=B3=BB=E7=BB=9F=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE-=E9=80=9A=E7=9F=A5=E8=AE=BE=E7=BD=AE=E3=80=91?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92=E6=9B=B4=E6=96=B0=E6=97=B6?= =?UTF-8?q?=E8=BF=9E=E7=BB=AD=E7=82=B9=E5=87=BB=E6=8F=90=E7=A4=BA=E4=B8=A4?= =?UTF-8?q?=E6=9D=A1=E6=B6=88=E6=81=AF=EF=BC=8C=E5=BB=BA=E8=AE=AE=E6=8C=89?= =?UTF-8?q?=E9=94=AE=E5=A2=9E=E5=8A=A0=E9=99=90=E5=88=B6=20https://www.tap?= =?UTF-8?q?d.cn/55049933/s/1066566?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../track/plan/components/TestPlanEdit.vue | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/frontend/src/business/components/track/plan/components/TestPlanEdit.vue b/frontend/src/business/components/track/plan/components/TestPlanEdit.vue index 5c16d36ede..18c59b4bb8 100644 --- a/frontend/src/business/components/track/plan/components/TestPlanEdit.vue +++ b/frontend/src/business/components/track/plan/components/TestPlanEdit.vue @@ -2,7 +2,8 @@
- {{ $t('test_track.cancel') }} {{ $t('test_track.confirm') }} - + {{ $t('test_track.planning_execution') }}
@@ -178,6 +182,7 @@ export default { isStepTableAlive: true, dialogFormVisible: false, itemSize: "medium", + result: {}, form: { name: '', projectIds: [], @@ -231,6 +236,7 @@ export default { this.reload(); }, testPlanInfo() { + this.result.loading = true; this.$refs['planFrom'].validate((valid) => { if (valid) { let param = {}; @@ -245,7 +251,7 @@ export default { this.form.tags = JSON.stringify(this.form.tags); } param.tags = this.form.tags; - this.$post('/test/plan/' + this.operationType, param, response => { + this.result = this.$post('/test/plan/' + this.operationType, param, response => { this.$success(this.$t('commons.save_success')); this.dialogFormVisible = false; this.$router.push('/track/plan/view/' + response.data.id); @@ -256,6 +262,7 @@ export default { }); }, savePlan() { + this.$refs['planFrom'].validate((valid) => { if (valid) { let param = {};