fix(工作台): 修复接口定义以及接口用例在切换待完成时过滤条件不清空问题
--bug=1021803 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001021803
This commit is contained in:
parent
2e02385c9a
commit
d7ebb803c3
|
@ -591,7 +591,7 @@ export default {
|
|||
this.doLayout();
|
||||
});
|
||||
},
|
||||
addPaddingColClass({ column }) {
|
||||
addPaddingColClass({column}) {
|
||||
if (
|
||||
column.columnKey === "tableRowDropCol" ||
|
||||
column.columnKey === "selectionCol" ||
|
||||
|
@ -600,8 +600,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) {
|
||||
|
@ -609,6 +609,10 @@ export default {
|
|||
}
|
||||
return "";
|
||||
},
|
||||
//清空Filter条件
|
||||
clearFilter() {
|
||||
this.$refs.table.clearFilter();
|
||||
}
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
|
|
@ -864,6 +864,7 @@ export default {
|
|||
},
|
||||
|
||||
changeTabState(name) {
|
||||
this.$refs.caseTable.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