Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-custom
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 c9b6f0d7
authored
Jan 15, 2022
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
一客一群修复bug
1 parent
19c142cf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
5 deletions
src/views/guestGroup/add.vue
src/views/guestGroup/components/selectFollow.vue
src/views/guestGroup/add.vue
View file @
c9b6f0d
...
@@ -266,11 +266,10 @@ export default {
...
@@ -266,11 +266,10 @@ export default {
this
.
membersVisible
=
!
this
.
membersVisible
this
.
membersVisible
=
!
this
.
membersVisible
},
},
openFollow
()
{
openFollow
()
{
cons
ole
.
log
(
this
.
basicForm
.
followList
)
cons
t
checkMember
=
this
.
basicForm
.
userList
.
length
?
this
.
basicForm
.
userList
.
map
(
i
=>
i
.
id
)
:
[]
this
.
$refs
.
selectEmpForm
.
init
(
this
.
basicForm
.
followList
)
this
.
$refs
.
selectEmpForm
.
init
(
this
.
basicForm
.
followList
,
checkMember
)
},
},
handleSubmit
()
{
handleSubmit
()
{
console
.
log
(
this
.
basicForm
)
this
.
$refs
.
basicForm
.
validate
(
valid
=>
{
this
.
$refs
.
basicForm
.
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
const
params
=
{
const
params
=
{
...
...
src/views/guestGroup/components/selectFollow.vue
View file @
c9b6f0d
...
@@ -11,6 +11,7 @@
...
@@ -11,6 +11,7 @@
</el-form>
</el-form>
<div
class=
"table-box"
>
<div
class=
"table-box"
>
<GLTable
<GLTable
:key=
"key"
v-if=
"dialogVisible"
v-if=
"dialogVisible"
ref=
"table"
ref=
"table"
:layout=
"layout"
:layout=
"layout"
...
@@ -50,6 +51,8 @@ export default {
...
@@ -50,6 +51,8 @@ export default {
tableOption
:
false
,
tableOption
:
false
,
// 行数据的key
// 行数据的key
mutiSelectUniqueKey
:
'id'
,
mutiSelectUniqueKey
:
'id'
,
checkSelectKey
:
'id'
,
checkSelectVal
:
[],
// 多选ref的名称
// 多选ref的名称
mutiSelectName
:
'salelist'
,
mutiSelectName
:
'salelist'
,
tableColumns
:
[
tableColumns
:
[
...
@@ -71,7 +74,9 @@ export default {
...
@@ -71,7 +74,9 @@ export default {
tableData
:
[],
tableData
:
[],
tableTotal
:
0
,
tableTotal
:
0
,
selectItem
:
[],
selectItem
:
[],
selectEmp
:
[]
selectEmp
:
[],
checkSelect
:
[],
key
:
new
Date
()
}
}
},
},
methods
:
{
methods
:
{
...
@@ -97,10 +102,15 @@ export default {
...
@@ -97,10 +102,15 @@ export default {
this
.
selectEmp
.
splice
(
index
,
1
)
this
.
selectEmp
.
splice
(
index
,
1
)
}
}
})
})
console
.
log
(
this
.
checkSelect
)
this
.
tableParams
.
checkSelectVal
=
this
.
checkSelect
this
.
key
=
new
Date
()
})
})
})
})
},
},
init
(
item
)
{
init
(
item
,
checkMember
)
{
console
.
log
(
checkMember
)
this
.
checkSelect
=
checkMember
this
.
tableSearchForm
=
{}
this
.
tableSearchForm
=
{}
this
.
selectEmp
=
JSON
.
parse
(
JSON
.
stringify
(
item
))
this
.
selectEmp
=
JSON
.
parse
(
JSON
.
stringify
(
item
))
this
.
dialogVisible
=
true
this
.
dialogVisible
=
true
...
@@ -119,6 +129,7 @@ export default {
...
@@ -119,6 +129,7 @@ export default {
this
.
handleCancel
()
this
.
handleCancel
()
},
},
rowClick
(
row
)
{
rowClick
(
row
)
{
if
(
this
.
checkSelect
.
find
(
i
=>
i
==
row
.
id
))
return
this
.
$refs
.
table
.
$refs
.
salelistMutiTable
.
toggleRowSelection
(
row
)
this
.
$refs
.
table
.
$refs
.
salelistMutiTable
.
toggleRowSelection
(
row
)
},
},
handleCancel
:
utils
.
debounce
(
function
()
{
handleCancel
:
utils
.
debounce
(
function
()
{
...
...
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