Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-link
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit cd6322e0
authored
Mar 13, 2023
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
f78a2620
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
src/views/activityLink/components/selectGoodsDialog.vue
src/views/activityLink/components/selectGoodsDialog.vue
View file @
cd6322e
...
...
@@ -283,6 +283,7 @@ export default {
},
// 选择/取消
handleSelectionTable
(
val
)
{
var
list
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
selectedList
[
this
.
activeName
].
list
))
var
count
=
0
var
currentIdList
=
this
.
GoodsList
.
map
(
item
=>
item
.
id
)
val
...
...
@@ -296,13 +297,14 @@ export default {
this
.
selectedList
[
this
.
activeName
].
list
=
[]
}
val
.
forEach
(
item
=>
{
let
isSelected
=
list
.
find
(
k
=>
k
.
id
==
item
.
id
)
if
(
this
.
selectedList
[
this
.
activeName
].
list
.
findIndex
(
k
=>
k
.
id
==
item
.
id
)
==
'-1'
)
{
this
.
selectedList
[
this
.
activeName
].
list
.
push
({
id
:
item
.
id
,
goodId
:
item
.
goodId
,
appearance
:
item
.
appearance
,
brandName
:
item
.
brandName
,
couponAmount
:
1
,
couponAmount
:
isSelected
?
list
.
find
(
k
=>
k
.
id
==
item
.
id
).
couponAmount
:
1
,
goodsName
:
item
.
goodsName
,
denomination
:
item
.
denomination
,
effectiveDays
:
item
.
effectiveDays
,
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment