fix(测试用例): 修复导入测试用例未刷新模块树的问题
This commit is contained in:
parent
b99e219d7c
commit
d4ec0c44ec
|
@ -19,6 +19,7 @@
|
|||
@testCaseDetail="showTestCaseDetail"
|
||||
@batchMove="batchMove"
|
||||
@refresh="refresh"
|
||||
@refreshAll="refreshAll"
|
||||
@moveToNode="moveToNode"
|
||||
ref="testCaseList">
|
||||
</test-case-list>
|
||||
|
@ -131,6 +132,10 @@ export default {
|
|||
this.selectNode = {};
|
||||
this.refreshTable();
|
||||
},
|
||||
refreshAll() {
|
||||
this.$refs.nodeTree.list();
|
||||
this.refresh();
|
||||
},
|
||||
openRecentTestCaseEditDialog(caseId) {
|
||||
if (caseId) {
|
||||
// this.getProjectByCaseId(caseId);
|
||||
|
|
|
@ -204,7 +204,7 @@
|
|||
if (res.success) {
|
||||
this.$success(this.$t('test_track.case.import.success'));
|
||||
this.dialogVisible = false;
|
||||
this.$emit("refresh");
|
||||
this.$emit("refreshAll");
|
||||
} else {
|
||||
this.errList = res.errList;
|
||||
}
|
||||
|
@ -223,7 +223,7 @@
|
|||
if (res.success) {
|
||||
this.$success(this.$t('test_track.case.import.success'));
|
||||
this.dialogVisible = false;
|
||||
this.$emit("refresh");
|
||||
this.$emit("refreshAll");
|
||||
} else {
|
||||
this.xmindErrList = res.errList;
|
||||
}
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
|
||||
</template>
|
||||
|
||||
<test-case-import @refresh="refresh" ref="testCaseImport"/>
|
||||
<test-case-import @refreshAll="refreshAll" ref="testCaseImport"/>
|
||||
|
||||
<el-table
|
||||
border
|
||||
|
@ -374,6 +374,10 @@ export default {
|
|||
this.selectRows.clear();
|
||||
this.$emit('refresh');
|
||||
},
|
||||
refreshAll() {
|
||||
this.selectRows.clear();
|
||||
this.$emit('refreshAll');
|
||||
},
|
||||
showDetail(row, event, column) {
|
||||
this.$emit('testCaseDetail', row);
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue