fix(工作台): 修复接口定义以及接口用例在切换待完成时过滤条件不清空问题
--bug=1021803 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001021803
This commit is contained in:
parent
5f276b5f6d
commit
1b1f3b76cd
|
@ -594,8 +594,8 @@ export default {
|
|||
return "padding-col";
|
||||
}
|
||||
},
|
||||
rowStyle({ row }) {
|
||||
return row.hidden ? { display: "none" } : {};
|
||||
rowStyle({row}) {
|
||||
return row.hidden ? {display: "none"} : {};
|
||||
},
|
||||
tableRowClassName(row) {
|
||||
if (row.row.hidden) {
|
||||
|
@ -603,6 +603,10 @@ export default {
|
|||
}
|
||||
return "";
|
||||
},
|
||||
//清空Filter条件
|
||||
clearFilter() {
|
||||
this.$refs.table.clearFilter();
|
||||
}
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
|
|
@ -711,7 +711,10 @@ export default {
|
|||
this.condition.combine = {creator: {operator: "current user", value: "current user",}}
|
||||
} else {
|
||||
if (this.isFinish) {
|
||||
if (!this.condition.filters || this.condition.filters.case_status === null) {
|
||||
if (!this.condition.filters) {
|
||||
this.condition.filters = {case_status: ["Prepare", "Underway"]};
|
||||
}
|
||||
if (!this.condition.filters.case_status) {
|
||||
this.condition.filters.case_status = ["Prepare", "Underway"];
|
||||
}
|
||||
if (this.condition.filters.case_status && this.condition.filters.case_status.length > 0) {
|
||||
|
@ -868,6 +871,7 @@ export default {
|
|||
},
|
||||
|
||||
changeTabState(name) {
|
||||
this.$refs.caseTable.clearFilter();
|
||||
if (name === 'update') {
|
||||
this.isFinish = false;
|
||||
} else {
|
||||
|
|
|
@ -677,6 +677,7 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
changeTabState(name) {
|
||||
this.$refs.apiTable.clearFilter();
|
||||
if (name === 'update') {
|
||||
this.isFinish = false;
|
||||
} else {
|
||||
|
|
|
@ -524,7 +524,7 @@ export default {
|
|||
this.$refs.apiCaseTableList.changeTabState('finish')
|
||||
}
|
||||
if (this.currentTodo === 'api_definition') {
|
||||
this.$refs.apiCaseTableList.changeTabState('finish')
|
||||
this.$refs.apiDefinitionTableList.changeTabState('finish')
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue