Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-marketing
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 482fe124
authored
Jul 27, 2022
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
关联门店
1 parent
7fe9b221
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
src/components/relate-store-dialog/index.vue
src/components/relate-store-dialog/index.vue
View file @
482fe12
...
...
@@ -121,12 +121,12 @@ export default {
})
},
handleChange
(
selection
,
row
)
{
var
addOrDelete
=
!!
selection
.
find
(
item
=>
item
.
merchantNo
===
row
.
merchantNo
)
var
addOrDelete
=
!!
selection
.
find
(
item
=>
+
item
.
merchantNo
===
+
row
.
merchantNo
)
addOrDelete
?
this
.
selectedData
.
push
(
row
)
:
(
this
.
selectedData
=
this
.
selectedData
.
filter
(
item
=>
item
.
merchantNo
!==
row
.
merchantNo
))
},
handleAll
(
selection
)
{
this
.
selectingData
.
forEach
(
item
=>
{
var
isExit
=
this
.
selectedData
.
findIndex
(
subItem
=>
subItem
.
merchantNo
===
item
.
merchantNo
)
let
isExit
=
this
.
selectedData
.
findIndex
(
subItem
=>
+
subItem
.
merchantNo
===
+
item
.
merchantNo
)
var
isServed
=
item
.
hasOwnProperty
(
'beServed'
)
?
item
.
beServed
:
false
if
(
selection
.
length
&&
isExit
===
-
1
&&
!
isServed
)
{
this
.
selectedData
.
push
(
item
)
...
...
@@ -136,7 +136,7 @@ export default {
})
},
handleDelete
(
row
)
{
this
.
selectedData
=
this
.
selectedData
.
filter
(
item
=>
item
.
merchantNo
!==
row
.
merchantNo
)
this
.
selectedData
=
this
.
selectedData
.
filter
(
item
=>
+
item
.
merchantNo
!==
+
row
.
merchantNo
)
this
.
recoverySelection
()
},
handleCurrentChange
(
val
)
{
...
...
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