fix(工作台): 修复接口定义以及接口用例在切换待完成时过滤条件不清空问题
--bug=1021803 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001021803
This commit is contained in:
parent
3ddbea8b5d
commit
2e02385c9a
|
@ -591,11 +591,7 @@ export default {
|
|||
} else {
|
||||
this.batchButtons = this.commonButtons;
|
||||
}
|
||||
if (this.condition.filters) {
|
||||
this.condition.filters.case_status = ["Prepare", "Underway"];
|
||||
} else {
|
||||
this.condition.filters = {case_status: ["Prepare", "Underway"]};
|
||||
}
|
||||
this.condition.combine = {creator: {operator: "current user", value: "current user",}}
|
||||
if (this.condition.toUpdate) {
|
||||
delete this.condition.toUpdate
|
||||
|
|
|
@ -671,17 +671,16 @@ export default {
|
|||
this.condition.toBeUpdated = !this.isFinish;
|
||||
if (!this.isFinish) {
|
||||
this.condition.filters = {status: ["Prepare", "Underway", "Completed"]};
|
||||
} else {
|
||||
this.condition.filters = {status: ["Prepare", "Underway", "NO"]};
|
||||
}
|
||||
this.initTable();
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
changeTabState(name) {
|
||||
if (name === 'update') {
|
||||
this.isFinish = false;
|
||||
} else {
|
||||
this.isFinish = true;
|
||||
}
|
||||
this.$refs.apiTable.clearFilter();
|
||||
this.isFinish = name !== 'update';
|
||||
},
|
||||
getProjectName() {
|
||||
getProject(this.projectId).then(response => {
|
||||
|
|
Loading…
Reference in New Issue