fix (接口定义): 列表根据协议筛选问题修复 #1006144
--bug=1006144 --user=赵勇 【接口测试】接口定义... https://www.tapd.cn/55049933/s/1038801
This commit is contained in:
parent
5799a1b3c8
commit
23da6a5473
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue