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:
parent
fcbc0bebbd
commit
ced9229d35
|
@ -171,6 +171,7 @@
|
||||||
#{value}
|
#{value}
|
||||||
</foreach>
|
</foreach>
|
||||||
))
|
))
|
||||||
|
AND test_plan.status != 'Archived'
|
||||||
</when>
|
</when>
|
||||||
<otherwise>
|
<otherwise>
|
||||||
and test_plan.status in
|
and test_plan.status in
|
||||||
|
@ -202,7 +203,7 @@
|
||||||
</if>
|
</if>
|
||||||
</foreach>
|
</foreach>
|
||||||
</if>
|
</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'
|
and test_plan.status != 'Archived'
|
||||||
</if>
|
</if>
|
||||||
<if test="request.byFilter == true">
|
<if test="request.byFilter == true">
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
<ms-main-container>
|
<ms-main-container>
|
||||||
<test-plan-list
|
<test-plan-list
|
||||||
|
v-if="renderComponent"
|
||||||
@openTestPlanEditDialog="openTestPlanEditDialog"
|
@openTestPlanEditDialog="openTestPlanEditDialog"
|
||||||
@testPlanEdit="openTestPlanEditDialog"
|
@testPlanEdit="openTestPlanEditDialog"
|
||||||
ref="testPlanList"/>
|
ref="testPlanList"/>
|
||||||
|
@ -27,6 +28,7 @@
|
||||||
components: {MsMainContainer, MsContainer, TestPlanList, TestPlanEdit},
|
components: {MsMainContainer, MsContainer, TestPlanList, TestPlanEdit},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
renderComponent:true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
@ -57,6 +59,14 @@
|
||||||
this.$refs.testPlanEditDialog.openTestPlanEditDialog(data);
|
this.$refs.testPlanEditDialog.openTestPlanEditDialog(data);
|
||||||
},
|
},
|
||||||
refreshTestPlanList() {
|
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.condition = {};
|
||||||
this.$refs.testPlanList.initTableData();
|
this.$refs.testPlanList.initTableData();
|
||||||
}
|
}
|
||||||
|
|
|
@ -252,7 +252,6 @@ export default {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
savePlan() {
|
savePlan() {
|
||||||
|
|
||||||
this.$refs['planFrom'].validate((valid) => {
|
this.$refs['planFrom'].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
let param = {};
|
let param = {};
|
||||||
|
|
Loading…
Reference in New Issue