Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
梁建民
/
scm_app
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
222077dd
authored
Jun 01, 2026
by
liangjianmin
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
feat(approve): 添加重置所有 tab 列表功能
在搜索和类型更改时,重置所有 tab 的列表与分页,以确保数据一致性。
parent
9c3d29ad
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
pages/approve/index.vue
pages/approve/index.vue
View file @
222077dd
...
...
@@ -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
();
},
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment