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
212735b6
Commit
212735b6
authored
Sep 15, 2020
by
无尘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改同步人群选择
parent
06cfa72a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
sync-crowd-dialog.vue
src/components/app/my-customer/sync-crowd-dialog.vue
+3
-3
No files found.
src/components/app/my-customer/sync-crowd-dialog.vue
View file @
212735b6
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
* @Author: 无尘
* @Author: 无尘
* @Date: 2020-08-28 10:31:09
* @Date: 2020-08-28 10:31:09
* @LastEditors: 无尘
* @LastEditors: 无尘
* @LastEditTime: 2020-09-15 17:
07:38
* @LastEditTime: 2020-09-15 17:
16:04
-->
-->
<!--
<!--
<sync-crowd-dialog :brand-id="brandId" :select-ids="selectIds" :total-num="totalNum" @refreshData="refreshData"></sync-crowd-dialog>
<sync-crowd-dialog :brand-id="brandId" :select-ids="selectIds" :total-num="totalNum" @refreshData="refreshData"></sync-crowd-dialog>
...
@@ -174,13 +174,13 @@ export default {
...
@@ -174,13 +174,13 @@ export default {
const
that
=
this
;
const
that
=
this
;
// 1.选择的数量>可选数量
// 1.选择的数量>可选数量
const
selNum
=
20
-
that
.
totalNum
;
const
selNum
=
20
-
that
.
totalNum
;
localStorage
.
setItem
(
'selNum'
,
JSON
.
stringify
(
val
));
if
(
val
&&
val
.
length
>
selNum
)
{
if
(
val
&&
val
.
length
>
selNum
)
{
that
.
multipleSelection
=
val
.
slice
(
0
,
selNum
);
that
.
multipleSelection
=
val
.
slice
(
0
,
selNum
);
localStorage
.
setItem
(
'selNum'
,
JSON
.
stringify
(
that
.
multipleSelection
));
const
ids
=
that
.
multipleSelection
.
map
(
ele
=>
ele
.
sceneCrowdId
);
const
ids
=
that
.
multipleSelection
.
map
(
ele
=>
ele
.
sceneCrowdId
);
that
.
tableData
.
forEach
(
row
=>
{
that
.
tableData
.
forEach
(
row
=>
{
localStorage
.
setItem
(
'ids'
,
ids
);
if
(
ids
.
includes
(
row
.
sceneCrowdId
))
{
if
(
ids
.
includes
(
row
.
sceneCrowdId
))
{
localStorage
.
setItem
(
'id2s'
,
ids
);
that
.
$refs
.
multipleTable
.
toggleRowSelection
(
row
,
true
);
that
.
$refs
.
multipleTable
.
toggleRowSelection
(
row
,
true
);
}
}
});
});
...
...
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