fix(测试评审tags、测试计划tags): 修复测试评审测试计划标签的bug
This commit is contained in:
parent
28d3f93861
commit
c93c602cf1
|
@ -8,7 +8,7 @@
|
||||||
@close="close"
|
@close="close"
|
||||||
width="65%">
|
width="65%">
|
||||||
|
|
||||||
<el-form :model="form" :rules="rules" ref="planFrom">
|
<el-form :model="form" :rules="rules" ref="planFrom" v-if="isStepTableAlive">
|
||||||
|
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="8" :offset="1">
|
<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-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-select v-model="form.principal" :placeholder="$t('test_track.plan.input_plan_principal')" filterable>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in principalOptions"
|
v-for="(item) in principalOptions"
|
||||||
:key="item.id"
|
:key="item.id"
|
||||||
:label="item.name"
|
:label="item.name"
|
||||||
:value="item.id">
|
:value="item.id">
|
||||||
|
@ -134,6 +134,7 @@ export default {
|
||||||
components: {TestPlanStatusButton, MsInputTag},
|
components: {TestPlanStatusButton, MsInputTag},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
isStepTableAlive: true,
|
||||||
dialogFormVisible: false,
|
dialogFormVisible: false,
|
||||||
form: {
|
form: {
|
||||||
name: '',
|
name: '',
|
||||||
|
@ -159,6 +160,10 @@ export default {
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
reload() {
|
||||||
|
this.isStepTableAlive = false;
|
||||||
|
this.$nextTick(() => (this.isStepTableAlive = true));
|
||||||
|
},
|
||||||
openTestPlanEditDialog(testPlan) {
|
openTestPlanEditDialog(testPlan) {
|
||||||
this.resetForm();
|
this.resetForm();
|
||||||
this.setPrincipalOptions();
|
this.setPrincipalOptions();
|
||||||
|
@ -169,9 +174,12 @@ export default {
|
||||||
let tmp = {};
|
let tmp = {};
|
||||||
Object.assign(tmp, testPlan);
|
Object.assign(tmp, testPlan);
|
||||||
Object.assign(this.form, tmp);
|
Object.assign(this.form, tmp);
|
||||||
|
} else {
|
||||||
|
this.form.tags = []
|
||||||
}
|
}
|
||||||
listenGoBack(this.close);
|
listenGoBack(this.close);
|
||||||
this.dialogFormVisible = true;
|
this.dialogFormVisible = true;
|
||||||
|
this.reload()
|
||||||
},
|
},
|
||||||
testPlanInfo() {
|
testPlanInfo() {
|
||||||
this.$refs['planFrom'].validate((valid) => {
|
this.$refs['planFrom'].validate((valid) => {
|
||||||
|
|
|
@ -7,7 +7,8 @@
|
||||||
:visible.sync="dialogFormVisible"
|
:visible.sync="dialogFormVisible"
|
||||||
@close="close"
|
@close="close"
|
||||||
v-loading="result.loading"
|
v-loading="result.loading"
|
||||||
width="65%">
|
width="65%"
|
||||||
|
v-if="isStepTableAlive">
|
||||||
|
|
||||||
<el-form :model="form" :rules="rules" ref="reviewForm">
|
<el-form :model="form" :rules="rules" ref="reviewForm">
|
||||||
|
|
||||||
|
@ -109,6 +110,7 @@ export default {
|
||||||
components: {MsInputTag, TestPlanStatusButton},
|
components: {MsInputTag, TestPlanStatusButton},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
isStepTableAlive: true,
|
||||||
dialogFormVisible: false,
|
dialogFormVisible: false,
|
||||||
result: {},
|
result: {},
|
||||||
form: {
|
form: {
|
||||||
|
@ -137,6 +139,10 @@ export default {
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
reload() {
|
||||||
|
this.isStepTableAlive = false;
|
||||||
|
this.$nextTick(() => (this.isStepTableAlive = true));
|
||||||
|
},
|
||||||
openCaseReviewEditDialog(caseReview) {
|
openCaseReviewEditDialog(caseReview) {
|
||||||
this.resetForm();
|
this.resetForm();
|
||||||
this.setReviewerOptions();
|
this.setReviewerOptions();
|
||||||
|
@ -148,9 +154,12 @@ export default {
|
||||||
Object.assign(tmp, caseReview);
|
Object.assign(tmp, caseReview);
|
||||||
Object.assign(this.form, tmp);
|
Object.assign(this.form, tmp);
|
||||||
this.dbProjectIds = JSON.parse(JSON.stringify(this.form.projectIds));
|
this.dbProjectIds = JSON.parse(JSON.stringify(this.form.projectIds));
|
||||||
|
} else {
|
||||||
|
this.form.tags = []
|
||||||
}
|
}
|
||||||
listenGoBack(this.close);
|
listenGoBack(this.close);
|
||||||
this.dialogFormVisible = true;
|
this.dialogFormVisible = true;
|
||||||
|
this.reload()
|
||||||
},
|
},
|
||||||
reviewInfo() {
|
reviewInfo() {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue