Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
Project
Project
Details
Activity
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
mes
mes-ui
Commits
aa10ea99
Commit
aa10ea99
authored
Oct 17, 2024
by
沈翠玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mixin完善
parent
90815ae9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
shiftSelectMixin.js
src/utils/shiftSelectMixin.js
+2
-1
No files found.
src/utils/shiftSelectMixin.js
View file @
aa10ea99
...
@@ -2,6 +2,7 @@ export default {
...
@@ -2,6 +2,7 @@ export default {
data
()
{
data
()
{
return
{
return
{
keepDown
:
false
,
keepDown
:
false
,
keyValue
:
'workorderId'
,
// 按shfit键实现多选
// 按shfit键实现多选
startIndex
:
null
startIndex
:
null
}
}
...
@@ -51,7 +52,7 @@ export default {
...
@@ -51,7 +52,7 @@ export default {
this
.
startIndex
=
lastindex
this
.
startIndex
=
lastindex
}
}
this
.
ids
=
this
.
selectedRows
.
map
(
item
=>
item
.
workorderId
)
this
.
ids
=
this
.
selectedRows
.
map
(
item
=>
item
[
this
.
keyValue
]
)
this
.
single
=
this
.
selectedRows
.
length
!==
1
this
.
single
=
this
.
selectedRows
.
length
!==
1
this
.
multiple
=
!
this
.
selectedRows
.
length
this
.
multiple
=
!
this
.
selectedRows
.
length
}
}
...
...
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