diff --git a/frontend/src/business/components/track/plan/components/TestPlanEdit.vue b/frontend/src/business/components/track/plan/components/TestPlanEdit.vue index 1773b19e59..995d24e258 100644 --- a/frontend/src/business/components/track/plan/components/TestPlanEdit.vue +++ b/frontend/src/business/components/track/plan/components/TestPlanEdit.vue @@ -8,7 +8,7 @@ @close="close" width="65%"> - + @@ -31,7 +31,7 @@ @@ -134,6 +134,7 @@ export default { components: {TestPlanStatusButton, MsInputTag}, data() { return { + isStepTableAlive: true, dialogFormVisible: false, form: { name: '', @@ -159,6 +160,10 @@ export default { }; }, methods: { + reload() { + this.isStepTableAlive = false; + this.$nextTick(() => (this.isStepTableAlive = true)); + }, openTestPlanEditDialog(testPlan) { this.resetForm(); this.setPrincipalOptions(); @@ -169,9 +174,12 @@ export default { let tmp = {}; Object.assign(tmp, testPlan); Object.assign(this.form, tmp); + } else { + this.form.tags = [] } listenGoBack(this.close); this.dialogFormVisible = true; + this.reload() }, testPlanInfo() { this.$refs['planFrom'].validate((valid) => { diff --git a/frontend/src/business/components/track/review/components/TestCaseReviewEdit.vue b/frontend/src/business/components/track/review/components/TestCaseReviewEdit.vue index bd18176244..9649021f33 100644 --- a/frontend/src/business/components/track/review/components/TestCaseReviewEdit.vue +++ b/frontend/src/business/components/track/review/components/TestCaseReviewEdit.vue @@ -7,7 +7,8 @@ :visible.sync="dialogFormVisible" @close="close" v-loading="result.loading" - width="65%"> + width="65%" + v-if="isStepTableAlive"> @@ -109,6 +110,7 @@ export default { components: {MsInputTag, TestPlanStatusButton}, data() { return { + isStepTableAlive: true, dialogFormVisible: false, result: {}, form: { @@ -137,6 +139,10 @@ export default { }; }, methods: { + reload() { + this.isStepTableAlive = false; + this.$nextTick(() => (this.isStepTableAlive = true)); + }, openCaseReviewEditDialog(caseReview) { this.resetForm(); this.setReviewerOptions(); @@ -148,9 +154,12 @@ export default { Object.assign(tmp, caseReview); Object.assign(this.form, tmp); this.dbProjectIds = JSON.parse(JSON.stringify(this.form.projectIds)); + } else { + this.form.tags = [] } listenGoBack(this.close); this.dialogFormVisible = true; + this.reload() }, reviewInfo() {