fix: 接口定义页面切换请求类型时关闭案例弹窗

接口定义页面切换请求类型时关闭案例弹窗
This commit is contained in:
song-tianyang 2021-06-07 15:41:56 +08:00 committed by 刘瑞斌
parent 114525ed36
commit f2b35bcb28
1 changed files with 9 additions and 0 deletions

View File

@ -418,11 +418,13 @@ export default {
this.currentPage = 1;
this.condition.moduleIds = [];
this.condition.moduleIds.push(this.selectNodeIds);
this.closeCaseModel();
this.initTable();
},
currentProtocol() {
this.currentPage = 1;
initCondition(this.condition, false);
this.closeCaseModel();
this.initTable();
},
trashEnable() {
@ -435,6 +437,7 @@ export default {
this.condition.filters = {status: ["Prepare", "Underway", "Completed"]};
}
initCondition(this.condition, false);
this.closeCaseModel();
this.initTable();
}
},
@ -442,6 +445,12 @@ export default {
handleBatchMove() {
this.$refs.testCaseBatchMove.open(this.moduleTree, [], this.moduleOptions);
},
closeCaseModel(){
//
if(this.$refs.caseList){
this.$refs.caseList.handleClose();
}
},
initTable() {
if (this.$refs.apiDefinitionTable) {
this.$refs.apiDefinitionTable.clearSelectRows();