fix(接口定义): 修复接口列表重置状态显示了废弃状态的缺陷

--bug=1014876 --user=王孝刚 【接口测试】接口定义列表,接口状态筛选下拉框,重置之后显示了废弃状态的接口
https://www.tapd.cn/55049933/s/1202068
This commit is contained in:
wxg0103 2022-07-14 16:36:05 +08:00 committed by f2c-ci-robot[bot]
parent 2711467cfc
commit fb76eea8f4
2 changed files with 7 additions and 0 deletions

View File

@ -724,6 +724,10 @@ export default {
this.condition.moduleIds = [];
}
if (!this.condition.filters.status) {
this.condition.filters = {status: ["Prepare", "Underway", "Completed"]};
}
// todo
if (projectId != null && typeof projectId === 'string') {
this.condition.projectId = projectId;

View File

@ -662,6 +662,9 @@ export default {
if (currentProtocol) {
this.condition.moduleIds = [];
}
if (!this.condition.filters.status) {
this.condition.filters = {status: ["Prepare", "Underway", "Completed"]};
}
if (this.condition.projectId) {
this.result = this.$post("/api/definition/list/" + this.currentPage + "/" + this.pageSize, this.condition, response => {