fix(测试跟踪): 解决测试计划已归档相关问题

--bug=1012798/1012796
--user=郭雨琦
https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001012796
https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001012798
This commit is contained in:
guoyuqi 2022-04-27 12:05:17 +08:00 committed by jianxing
parent edb3dd68fa
commit 581492464b
3 changed files with 12 additions and 2 deletions

View File

@ -171,6 +171,7 @@
#{value}
</foreach>
))
AND test_plan.status != 'Archived'
</when>
<otherwise>
and test_plan.status in
@ -202,7 +203,7 @@
</if>
</foreach>
</if>
<if test="request.filters == null or request.filters.size() == 0">
<if test="(request.filters == null or request.filters.size() == 0) and request.byFilter != true ">
and test_plan.status != 'Archived'
</if>
<if test="request.byFilter == true">

View File

@ -3,6 +3,7 @@
<ms-main-container>
<test-plan-list
v-if="renderComponent"
@openTestPlanEditDialog="openTestPlanEditDialog"
@testPlanEdit="openTestPlanEditDialog"
ref="testPlanList"/>
@ -27,6 +28,7 @@
components: {MsMainContainer, MsContainer, TestPlanList, TestPlanEdit},
data() {
return {
renderComponent:true
}
},
computed: {
@ -57,6 +59,14 @@
this.$refs.testPlanEditDialog.openTestPlanEditDialog(data);
},
refreshTestPlanList() {
// Remove my-component from the DOM
this.renderComponent = false;
this.$nextTick(() => {
// Add the component back in
this.renderComponent = true;
});
this.$refs.testPlanList.condition = {};
this.$refs.testPlanList.initTableData();
}

View File

@ -252,7 +252,6 @@ export default {
});
},
savePlan() {
this.$refs['planFrom'].validate((valid) => {
if (valid) {
let param = {};