fix (接口定义): 列表根据协议筛选问题修复 #1006144

--bug=1006144 --user=赵勇 【接口测试】接口定义... https://www.tapd.cn/55049933/s/1038801
This commit is contained in:
fit2-zhao 2021-08-24 18:05:54 +08:00 committed by fit2-zhao
parent 5799a1b3c8
commit 23da6a5473
1 changed files with 37 additions and 34 deletions

View File

@ -450,7 +450,7 @@ export default {
this.currentPage = 1; this.currentPage = 1;
initCondition(this.condition, false); initCondition(this.condition, false);
this.closeCaseModel(); this.closeCaseModel();
this.initTable(); this.initTable(true);
}, },
trashEnable() { trashEnable() {
if (this.trashEnable) { if (this.trashEnable) {
@ -484,7 +484,7 @@ export default {
this.$refs.caseList.handleClose(); this.$refs.caseList.handleClose();
} }
}, },
initTable() { initTable(currentProtocol) {
if (this.$refs.table) { if (this.$refs.table) {
this.$refs.table.clear(); this.$refs.table.clear();
} }
@ -523,6 +523,9 @@ export default {
this.condition.filters.status = [this.selectDataRange]; this.condition.filters.status = [this.selectDataRange];
break; break;
} }
if (currentProtocol) {
this.condition.moduleIds = [];
}
if (this.condition.projectId) { if (this.condition.projectId) {
this.result = this.$post("/api/definition/list/" + this.currentPage + "/" + this.pageSize, this.condition, response => { this.result = this.$post("/api/definition/list/" + this.currentPage + "/" + this.pageSize, this.condition, response => {
this.genProtocalFilter(this.condition.protocol); this.genProtocalFilter(this.condition.protocol);