Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
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 b1689c13
authored
Sep 07, 2023
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
角色管理 选择员工组件 userid和deptId重复导致的选中问题
1 parent
b5d840e9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
vue3-lw-pc/src/components/SelectUser.vue
vue3-lw-pc/src/views/enterpriseManage/roles/add.vue
vue3-lw-pc/src/components/SelectUser.vue
View file @
b1689c1
...
...
@@ -4,6 +4,7 @@ export default {
name
:
'SelectUser'
,
components
:
{},
props
:
{
// 是否使用 weUserId 代替 userId
isWechat
:
{
type
:
Boolean
,
default
:
true
,
...
...
@@ -235,6 +236,7 @@ export default {
handleUser
(
data
)
{
return
data
.
map
((
i
)
=>
{
if
(
i
.
userName
)
{
i
.
userIdOrigin
=
i
.
userId
i
.
userId
=
this
.
isWechat
?
i
.
weUserId
:
i
.
userId
i
.
name
=
i
.
userName
}
...
...
vue3-lw-pc/src/views/enterpriseManage/roles/add.vue
View file @
b1689c1
...
...
@@ -54,7 +54,6 @@
</div>
<SelectUser
:defaultValues=
"selectedUserList"
:isWechat=
"false"
v-model:visible=
"dialogVisibleSelectUser"
title=
"选择员工"
:isOnlyLeaf=
"true"
...
...
@@ -165,7 +164,8 @@ export default {
arr
.
push
(
i
.
userId
)
return
{
name
:
i
.
userName
,
userId
:
i
.
userId
,
userId
:
i
.
weUserId
,
userIdOrigin
:
i
.
userId
,
}
})
this
.
form
.
users
=
arr
...
...
@@ -200,7 +200,7 @@ export default {
selectedUser
(
users
)
{
this
.
selectedUserList
=
users
let
arr
=
users
.
map
((
i
)
=>
{
return
i
.
userId
return
i
.
userId
Origin
})
this
.
form
.
users
=
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