Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-4
Overview
Overview
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
office
haoban-4
Commits
eccb97b3
Commit
eccb97b3
authored
Sep 15, 2020
by
无尘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改同步人群选择
parent
08ac973d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletions
+14
-1
sync-crowd-dialog.vue
src/components/app/my-customer/sync-crowd-dialog.vue
+14
-1
No files found.
src/components/app/my-customer/sync-crowd-dialog.vue
View file @
eccb97b3
...
...
@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-08-28 10:31:09
* @LastEditors: 无尘
* @LastEditTime: 2020-09-
09 11:09:15
* @LastEditTime: 2020-09-
15 16:51:59
-->
<!--
<sync-crowd-dialog :brand-id="brandId" :select-ids="selectIds" :total-num="totalNum" @refreshData="refreshData"></sync-crowd-dialog>
...
...
@@ -167,10 +167,23 @@ export default {
/**
* @description: 表格---多选
* @param {Array} val
* @returns {Boolean}
* @author: 无尘
*/
handleSelectionChange
(
val
)
{
const
that
=
this
;
// 1.选择的数量>可选数量
if
(
val
&&
val
.
length
>
20
-
that
.
totalNum
)
{
val
.
splice
(
val
.
length
-
1
,
1
);
const
ids
=
val
.
map
(
ele
=>
ele
.
sceneCrowdId
);
that
.
tableData
.
forEach
(
row
=>
{
if
(
ids
.
includes
(
row
.
sceneCrowdId
))
{
that
.
$refs
.
multipleTable
.
toggleRowSelection
(
row
);
}
});
that
.
multipleSelection
=
val
;
return
false
;
}
that
.
multipleSelection
=
val
;
},
/**
...
...
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