Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
apaas-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gzga-jzapi
apaas-ui
Commits
af6f545d
Commit
af6f545d
authored
Nov 03, 2020
by
徐一鸣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sdk管理多选修复
parent
c136fa3a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
18 deletions
+14
-18
src/pages/technical-support/sdk-manage/example/index.vue
src/pages/technical-support/sdk-manage/example/index.vue
+7
-9
src/pages/technical-support/sdk-manage/type/index.vue
src/pages/technical-support/sdk-manage/type/index.vue
+7
-9
No files found.
src/pages/technical-support/sdk-manage/example/index.vue
View file @
af6f545d
...
...
@@ -381,22 +381,20 @@ export default {
return
helper
.
dateStringTransform
(
time
);
},
selectAction
(
values
)
{
// 页码操作需要保存所选项
if
(
this
.
saveSection
)
{
return
;
}
let
cleanPage
=
values
.
length
===
0
;
// 是否清空当前页所有选中
let
selection
=
[...
this
.
selection
];
if
(
cleanPage
)
{
selection
=
selection
.
filter
((
item
)
=>
{
return
!
this
.
listData
.
find
((
v
)
=>
{
return
v
.
id
===
item
.
id
;
});
selection
=
selection
.
filter
((
item
)
=>
{
return
!
this
.
listData
.
find
((
v
)
=>
{
return
v
.
id
===
item
.
id
;
});
}
else
{
selection
.
push
(...
values
);
}
}
);
selection
.
push
(...
values
);
this
.
selection
=
selection
;
},
...
...
src/pages/technical-support/sdk-manage/type/index.vue
View file @
af6f545d
...
...
@@ -417,22 +417,20 @@ export default {
return
helper
.
dateStringTransform
(
time
);
},
selectAction
(
values
)
{
// 页码操作需要保存所选项
if
(
this
.
saveSection
)
{
return
;
}
let
cleanPage
=
values
.
length
===
0
;
// 是否清空当前页所有选中
let
selection
=
[...
this
.
selection
];
if
(
cleanPage
)
{
selection
=
selection
.
filter
((
item
)
=>
{
return
!
this
.
listData
.
find
((
v
)
=>
{
return
v
.
id
===
item
.
id
;
});
selection
=
selection
.
filter
((
item
)
=>
{
return
!
this
.
listData
.
find
((
v
)
=>
{
return
v
.
id
===
item
.
id
;
});
}
else
{
selection
.
push
(...
values
);
}
}
);
selection
.
push
(...
values
);
this
.
selection
=
selection
;
},
...
...
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