fix: 切换测试计划用例页面显示不全
--bug=1013576 --user=陈建星 【测试跟踪】选中第一个测试计划的 某个模块,回到列表页打开第二个测试计划,功能列表用例 数据没有全部展示 https://www.tapd.cn/55049933/s/1165851
This commit is contained in:
parent
2379312ef3
commit
c08c3c04b8
|
@ -555,13 +555,13 @@ export default {
|
||||||
}
|
}
|
||||||
this.status = 'all';
|
this.status = 'all';
|
||||||
}
|
}
|
||||||
|
this.condition.nodeIds = [];
|
||||||
if (this.selectNodeIds && this.selectNodeIds.length > 0) {
|
if (this.selectNodeIds && this.selectNodeIds.length > 0) {
|
||||||
// param.nodeIds = this.selectNodeIds;
|
|
||||||
this.condition.nodeIds = this.selectNodeIds;
|
this.condition.nodeIds = this.selectNodeIds;
|
||||||
}
|
}
|
||||||
this.condition.projectId = getCurrentProjectID();
|
this.condition.projectId = getCurrentProjectID();
|
||||||
if (this.planId) {
|
if (this.planId) {
|
||||||
getTestPlanTestCase(this.currentPage, this.pageSize, this.condition, (data) => {
|
this.result = getTestPlanTestCase(this.currentPage, this.pageSize, this.condition, (data) => {
|
||||||
this.total = data.itemCount;
|
this.total = data.itemCount;
|
||||||
this.tableData = data.listObject;
|
this.tableData = data.listObject;
|
||||||
for (let i = 0; i < this.tableData.length; i++) {
|
for (let i = 0; i < this.tableData.length; i++) {
|
||||||
|
|
|
@ -101,7 +101,6 @@ export default {
|
||||||
'planStatus'
|
'planStatus'
|
||||||
],
|
],
|
||||||
mounted() {
|
mounted() {
|
||||||
this.$store.commit('setTestPlanViewSelectNode', {});
|
|
||||||
this.initData();
|
this.initData();
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
@ -110,6 +109,7 @@ export default {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
activated() {
|
activated() {
|
||||||
|
this.clearSelectNode();
|
||||||
this.initData();
|
this.initData();
|
||||||
this.openTestCaseEdit(this.$route.path);
|
this.openTestCaseEdit(this.$route.path);
|
||||||
},
|
},
|
||||||
|
@ -118,16 +118,20 @@ export default {
|
||||||
this.openTestCaseEdit(to.path);
|
this.openTestCaseEdit(to.path);
|
||||||
},
|
},
|
||||||
planId() {
|
planId() {
|
||||||
|
this.clearSelectNode();
|
||||||
this.initData();
|
this.initData();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
refresh() {
|
refresh() {
|
||||||
this.selectNodeIds = [];
|
this.clearSelectNode();
|
||||||
this.$store.commit('setTestPlanViewSelectNode', {});
|
|
||||||
this.$refs.testCaseRelevance.search();
|
this.$refs.testCaseRelevance.search();
|
||||||
this.getNodeTreeByPlanId();
|
this.getNodeTreeByPlanId();
|
||||||
},
|
},
|
||||||
|
clearSelectNode() {
|
||||||
|
this.selectNodeIds = [];
|
||||||
|
this.$store.commit('setTestPlanViewSelectNode', {});
|
||||||
|
},
|
||||||
initData() {
|
initData() {
|
||||||
this.getNodeTreeByPlanId();
|
this.getNodeTreeByPlanId();
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue