Commit 222077dd by liangjianmin

feat(approve): 添加重置所有 tab 列表功能

在搜索和类型更改时,重置所有 tab 的列表与分页,以确保数据一致性。
parent 9c3d29ad
Showing with 11 additions and 0 deletions
......@@ -169,6 +169,15 @@
this.getData();
},
/**
* 重置全部 tab 的列表与分页
* @return {void}
*/
resetAllList() {
this.resetPendingList();
this.resetDoneList();
this.resetMineList();
},
/**
* 重置当前 tab 的列表与分页
* @return {void}
*/
......@@ -348,6 +357,7 @@
* @return {void}
*/
onSearch() {
this.resetAllList();
this.resetAndLoad();
},
/**
......@@ -371,6 +381,7 @@
onTypeChange(index) {
if (this.currentType === index) return;
this.currentType = index;
this.resetAllList();
this.resetAndLoad();
},
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment