Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pet-business-web
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘怀志
pet-business-web
Commits
021f9602
Commit
021f9602
authored
Aug 17, 2023
by
盖献康
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
72688c18
c4d9cd06
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
4 deletions
+22
-4
registration-queue.vue
...vice-management/registration-queue/registration-queue.vue
+22
-4
No files found.
src/views/service-management/registration-queue/registration-queue.vue
View file @
021f9602
...
...
@@ -508,11 +508,28 @@ export default {
}
,
// 表格当前手动勾选的
selectChange
(
selection
,
row
)
{
// 选中行是没有则将当前list里面的数据从ids里情况
if
(
selection
.
length
===
0
)
{
const
temp
=
this
.
registerList
.
map
(
item
=>
{
return
item
.
id
}
)
this
.
ids
=
this
.
ids
.
filter
(
item
=>
{
return
!
temp
.
includes
(
item
)
}
)
}
else
{
// 遍历当前页选中行如果没有的就加上
selection
.
forEach
(
item
=>
{
if
(
!
this
.
ids
.
some
(
idItem
=>
idItem
===
item
.
id
))
{
this
.
ids
.
push
(
item
.
id
)
}
}
)
// 判断选中行是不是被勾掉了
if
(
row
&&
!
selection
.
some
(
item
=>
item
.
id
===
row
.
id
))
{
this
.
ids
=
this
.
ids
.
filter
(
item
=>
{
return
item
!==
row
.
id
}
)
}
}
}
,
/** 功能按钮--导出按钮操作 */
handleExport
()
{
...
...
@@ -522,6 +539,7 @@ export default {
this
.
download
(
'business/register/export'
,
exportTable
,
`挂号管理-${this.exportFormatTime(new Date())
}
.xlsx`
)
.
then
(
res
=>
{
this
.
$refs
.
table
.
clearSelection
()
this
.
ids
=
[]
}
)
}
else
{
this
.
$modal
.
msgWarning
(
'请选择至少一条数据导出'
)
...
...
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