fix: 测试计划用例下一步其他信息没刷新
This commit is contained in:
parent
a405235129
commit
7d97278ae5
|
@ -81,7 +81,7 @@
|
||||||
<form-rich-text-item :label-width="formLabelWidth" v-if="testCase.stepModel === 'TEXT'" :disabled="true" :title="$t('test_track.case.expected_results')" :data="testCase" prop="expectedResult"/>
|
<form-rich-text-item :label-width="formLabelWidth" v-if="testCase.stepModel === 'TEXT'" :disabled="true" :title="$t('test_track.case.expected_results')" :data="testCase" prop="expectedResult"/>
|
||||||
<form-rich-text-item :label-width="formLabelWidth" v-if="testCase.stepModel === 'TEXT'" :title="$t('test_track.plan_view.actual_result')" :data="testCase" prop="actualResult"/>
|
<form-rich-text-item :label-width="formLabelWidth" v-if="testCase.stepModel === 'TEXT'" :title="$t('test_track.plan_view.actual_result')" :data="testCase" prop="actualResult"/>
|
||||||
|
|
||||||
<test-case-edit-other-info @openTest="openTest" :read-only="true" :is-test-plan="true" :project-id="projectId" :form="testCase" :case-id="testCase.caseId" ref="otherInfo"/>
|
<test-case-edit-other-info v-if="otherInfoActive" @openTest="openTest" :read-only="true" :is-test-plan="true" :project-id="projectId" :form="testCase" :case-id="testCase.caseId" ref="otherInfo"/>
|
||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -182,7 +182,8 @@ export default {
|
||||||
comments: [],
|
comments: [],
|
||||||
testCaseTemplate: {},
|
testCaseTemplate: {},
|
||||||
formLabelWidth: "100px",
|
formLabelWidth: "100px",
|
||||||
isCustomFiledActive: false
|
isCustomFiledActive: false,
|
||||||
|
otherInfoActive: true
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
|
@ -314,10 +315,18 @@ export default {
|
||||||
handleNext() {
|
handleNext() {
|
||||||
this.index++;
|
this.index++;
|
||||||
this.getTestCase(this.index);
|
this.getTestCase(this.index);
|
||||||
|
this.reloadOtherInfo();
|
||||||
|
},
|
||||||
|
reloadOtherInfo() {
|
||||||
|
this.otherInfoActive = false;
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.otherInfoActive = true;
|
||||||
|
})
|
||||||
},
|
},
|
||||||
handlePre() {
|
handlePre() {
|
||||||
this.index--;
|
this.index--;
|
||||||
this.getTestCase(this.index);
|
this.getTestCase(this.index);
|
||||||
|
this.reloadOtherInfo();
|
||||||
},
|
},
|
||||||
getTestCase(index) {
|
getTestCase(index) {
|
||||||
this.testCase = {};
|
this.testCase = {};
|
||||||
|
|
Loading…
Reference in New Issue