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 002b07b3
authored
Dec 24, 2021
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改一客一群
1 parent
8a43c44e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
17 deletions
src/views/guestGroup/add.vue
src/views/guestGroup/components/selectEmp.vue
src/views/guestGroup/add.vue
View file @
002b07b
...
@@ -174,22 +174,18 @@ export default {
...
@@ -174,22 +174,18 @@ export default {
membersVisible
:
false
,
membersVisible
:
false
,
key
:
new
Date
(),
key
:
new
Date
(),
previewFlag
:
false
,
previewFlag
:
false
,
selectData
:
[]
selectData
:
[],
editStatus
:
false
}
},
watch
:
{
basicForm
:
{
handler
(
val
)
{
this
.
editStatus
=
true
},
deep
:
true
}
}
},
},
// watch: {
// $route(val) {
// console.log(val)
// if (val.params) {
// const id = val.params.id
// if (id && id != -1) {
// this.getDetail(id)
// } else {
// this.selectData = []
// }
// }
// }
// },
mounted
()
{
mounted
()
{
if
(
this
.
$route
.
params
)
{
if
(
this
.
$route
.
params
)
{
const
id
=
this
.
$route
.
params
.
id
const
id
=
this
.
$route
.
params
.
id
...
@@ -275,7 +271,20 @@ export default {
...
@@ -275,7 +271,20 @@ export default {
},
},
handleCancel
()
{
handleCancel
()
{
// this.$router.go(-1)
// this.$router.go(-1)
this
.
$router
.
push
({
path
:
'/guestGroup/index'
})
// this.$router.push({ path: '/guestGroup/index' })
if
(
this
.
editStatus
)
{
this
.
$confirm
(
'当前有内容信息未保存,是否继续返回?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
})
.
then
(()
=>
{
this
.
$router
.
push
(
'/guestGroup/index'
)
})
.
catch
(()
=>
{})
}
else
{
this
.
$router
.
push
(
'/guestGroup/index'
)
}
},
},
remove
(
val
,
idx
)
{
remove
(
val
,
idx
)
{
console
.
log
(
val
,
idx
)
console
.
log
(
val
,
idx
)
...
...
src/views/guestGroup/components/selectEmp.vue
View file @
002b07b
...
@@ -87,7 +87,7 @@ export default {
...
@@ -87,7 +87,7 @@ export default {
this
.
$apis
.
groupGuest
.
listDepartmentTree
(
params
).
then
(
res
=>
{
this
.
$apis
.
groupGuest
.
listDepartmentTree
(
params
).
then
(
res
=>
{
this
.
listTree
=
res
this
.
listTree
=
res
this
.
loading
=
false
this
.
loading
=
false
//
this.listTree[0].entmicroStaffResponses = this.getEmployee(this.listTree)
this
.
listTree
[
0
].
entmicroStaffResponses
=
this
.
getEmployee
(
this
.
listTree
)
this
.
currentArr
=
this
.
$common
.
utils
.
deepClone
(
this
.
listTree
[
0
].
entmicroStaffResponses
)
this
.
currentArr
=
this
.
$common
.
utils
.
deepClone
(
this
.
listTree
[
0
].
entmicroStaffResponses
)
this
.
selectData
.
forEach
(
i
=>
{
this
.
selectData
.
forEach
(
i
=>
{
const
row
=
this
.
getEmployee
(
this
.
listTree
).
find
(
j
=>
j
.
id
==
i
.
staffId
)
const
row
=
this
.
getEmployee
(
this
.
listTree
).
find
(
j
=>
j
.
id
==
i
.
staffId
)
...
@@ -108,7 +108,7 @@ export default {
...
@@ -108,7 +108,7 @@ export default {
handleNodeClick
(
data
)
{
handleNodeClick
(
data
)
{
this
.
departmentId
=
data
.
id
this
.
departmentId
=
data
.
id
this
.
tableEmpData
=
data
.
entmicroStaffResponses
this
.
tableEmpData
=
data
.
entmicroStaffResponses
this
.
currentArr
=
this
.
$common
.
utils
.
deepClone
(
data
.
entmicroStaffResponses
)
//
this.currentArr = this.$common.utils.deepClone(data.entmicroStaffResponses)
// this.listEntmicroStaff()
// this.listEntmicroStaff()
},
},
getEmployee
(
d
,
arr
=
[])
{
getEmployee
(
d
,
arr
=
[])
{
...
...
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