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