fix(测试跟踪): 测试用例全部用例按钮无效

This commit is contained in:
chenjianxing 2020-11-23 10:20:52 +08:00
parent ab87a73602
commit 1fce27a3c1
1 changed files with 8 additions and 1 deletions

View File

@ -8,7 +8,7 @@
:tip="$t('commons.search_by_name_or_id')"
:create-tip="$t('test_track.case.create')" @create="testCaseCreate">
<template v-slot:title>
<node-breadcrumb class="table-title" :nodes="selectParentNodes" @refresh="refresh"/>
<node-breadcrumb class="table-title" :nodes="selectParentNodes" @refresh="showAll"/>
</template>
<template v-slot:button>
<ms-table-button :is-tester-permission="true" icon="el-icon-download"
@ -298,6 +298,9 @@ export default {
// param.nodeIds = this.selectNodeIds;
this.condition.nodeIds = this.selectNodeIds;
}
this.getData();
},
getData() {
if (this.currentProject) {
this.condition.projectId = this.currentProject.id;
this.result = this.$post(this.buildPagePath('/test/case/list'), this.condition, response => {
@ -366,6 +369,10 @@ export default {
this.selectRows.clear();
this.$emit('refresh');
},
showAll() {
this.condition = {components: TEST_CASE_CONFIGS};
this.getData();
},
showDetail(row, event, column) {
this.$emit('testCaseDetail', row);
},