提交 c93c602c 编写于 作者: W wenyann 提交者: 刘瑞斌

fix(测试评审tags、测试计划tags): 修复测试评审测试计划标签的bug

上级 28d3f938
......@@ -8,7 +8,7 @@
@close="close"
width="65%">
<el-form :model="form" :rules="rules" ref="planFrom">
<el-form :model="form" :rules="rules" ref="planFrom" v-if="isStepTableAlive">
<el-row>
<el-col :span="8" :offset="1">
......@@ -31,7 +31,7 @@
<el-form-item :label="$t('test_track.plan.plan_principal')" :label-width="formLabelWidth" prop="principal">
<el-select v-model="form.principal" :placeholder="$t('test_track.plan.input_plan_principal')" filterable>
<el-option
v-for="item in principalOptions"
v-for="(item) in principalOptions"
:key="item.id"
:label="item.name"
:value="item.id">
......@@ -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) => {
......
......@@ -7,7 +7,8 @@
:visible.sync="dialogFormVisible"
@close="close"
v-loading="result.loading"
width="65%">
width="65%"
v-if="isStepTableAlive">
<el-form :model="form" :rules="rules" ref="reviewForm">
......@@ -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() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册