Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
T
TF-MOM-WEB
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
TFMOM
TF-MOM-WEB
Commits
c96281de
Commit
c96281de
authored
Mar 19, 2024
by
jingnan
👀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
合并产品【11133】权限分配,群组下拉框为空
parent
ae2791ab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
70 additions
and
48 deletions
+70
-48
AssignPermissions.vue
...s/dee-perm/src/views/roleManagement/AssignPermissions.vue
+70
-48
No files found.
applications/dee-perm/src/views/roleManagement/AssignPermissions.vue
View file @
c96281de
...
@@ -28,50 +28,59 @@
...
@@ -28,50 +28,59 @@
:model=
"form1"
:model=
"form1"
label-width=
"120px"
label-width=
"120px"
>
>
<el-form-item
label=
"选择组:"
>
<template
v-if=
"supportTypeItems.includes('组织')"
>
<OrgLazyLoadSelect
<el-form-item
label=
"选择组:"
>
v-model=
"groupcheckeds"
<OrgLazyLoadSelect
:is-multi=
"true"
v-model=
"groupcheckeds"
value-key=
"id"
:is-multi=
"true"
:parent-id=
"tripleTreeNode.level===2 ?tripleTreeNode.organizationId : ''"
value-key=
"id"
style=
"width: 100%;"
bind-type=
"object"
/>
value-type=
"Array"
</el-form-item>
:parent-id=
"tripleTreeNode.level===2 ?tripleTreeNode.organizationId : ''"
<el-form-item
label=
"包含子组织用户:"
>
style=
"width: 100%;"
<el-checkbox
v-model=
"cascadeSubOrg"
/>
</el-form-item>
<el-form-item
label=
"选择群组:"
>
<dee-group
v-model=
"userGroupcheckeds"
:multiple=
"true"
value-key=
"id"
:triple-org-id=
"tripleTreeNode.level===2 ?tripleTreeNode.organizationId : ''"
style=
"width: 100%;"
/>
</el-form-item>
<el-form-item
label=
"包含子群组用户:"
>
<el-checkbox
v-model=
"cascadeSubGroup"
/>
</el-form-item>
<el-form-item
label=
"选择用户:"
>
<el-select
v-model=
"users"
class=
"auto-width"
multiple
filterable
clearable
remote
value-key=
"id"
placeholder=
"输入联想查询用户,可选多个用户"
:remote-method=
"remoteUserMethod"
>
<el-option
v-for=
"item in tempUserRemoteOptions"
:key=
"item.id"
:label=
"`$
{item.userName}`+'('+`${item.userAccount}`+')'"
:value="item"
/>
/>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"包含子组织用户:"
>
<el-checkbox
v-model=
"cascadeSubOrg"
/>
</el-form-item>
</
template
>
<
template
v-if=
"supportTypeItems.includes('群组')"
>
<el-form-item
label=
"选择群组:"
>
<dee-group
v-model=
"userGroupcheckeds"
:multiple=
"true"
value-key=
"id"
is-filter-by-org-id
:triple-org-id=
"tripleTreeNode.level===2 ?tripleTreeNode.organizationId : ''"
style=
"width: 100%;"
/>
</el-form-item>
<el-form-item
label=
"包含子群组用户:"
>
<el-checkbox
v-model=
"cascadeSubGroup"
/>
</el-form-item>
</
template
>
<
template
v-if=
"supportTypeItems.includes('用户')"
>
<el-form-item
label=
"选择用户:"
>
<el-select
v-model=
"users"
class=
"auto-width"
multiple
filterable
clearable
remote
value-key=
"id"
placeholder=
"输入联想查询用户,可选多个用户"
:remote-method=
"remoteUserMethod"
>
<el-option
v-for=
"item in tempUserRemoteOptions"
:key=
"item.id"
:label=
"`$
{item.userName}`+'('+`${item.userAccount}`+')'"
:value="item"
/>
</el-select>
</el-form-item>
</
template
>
</el-form>
</el-form>
<div
slot=
"footer"
style=
"text-align:center"
>
<div
slot=
"footer"
style=
"text-align:center"
>
<el-button
<el-button
...
@@ -495,7 +504,8 @@ export default {
...
@@ -495,7 +504,8 @@ export default {
apps
:
[],
apps
:
[],
// 授权部门下拉列表
// 授权部门下拉列表
authOrgOptions
:
[],
authOrgOptions
:
[],
permViewIdx
:
1
permViewIdx
:
1
,
supportTypeItems
:
[]
}
}
},
},
computed
:
{
computed
:
{
...
@@ -513,7 +523,7 @@ export default {
...
@@ -513,7 +523,7 @@ export default {
type
:
'icon'
,
type
:
'icon'
,
name
:
'指定全部用户'
,
name
:
'指定全部用户'
,
icon
:
'/icons/c-add.png'
,
icon
:
'/icons/c-add.png'
,
show
:
this
.
tripleTreeNode
.
level
===
1
,
show
:
this
.
tripleTreeNode
.
level
===
1
&&
this
.
supportTypeItems
.
includes
(
'全部用户'
)
,
handler
:
{
handler
:
{
click
:
()
=>
{
click
:
()
=>
{
this
.
addAllUser
()
this
.
addAllUser
()
...
@@ -524,7 +534,7 @@ export default {
...
@@ -524,7 +534,7 @@ export default {
type
:
'icon'
,
type
:
'icon'
,
name
:
'指定本组织用户'
,
name
:
'指定本组织用户'
,
icon
:
'/icons/c-add.png'
,
icon
:
'/icons/c-add.png'
,
show
:
this
.
tripleTreeNode
.
level
===
2
,
show
:
this
.
tripleTreeNode
.
level
===
2
&&
this
.
supportTypeItems
.
includes
(
'本组织用户'
)
,
handler
:
{
handler
:
{
click
:
()
=>
{
click
:
()
=>
{
this
.
addOwnOrgUser
()
this
.
addOwnOrgUser
()
...
@@ -535,7 +545,7 @@ export default {
...
@@ -535,7 +545,7 @@ export default {
type
:
'icon'
,
type
:
'icon'
,
name
:
'添加特定用户'
,
name
:
'添加特定用户'
,
icon
:
'/icons/c-add.png'
,
icon
:
'/icons/c-add.png'
,
show
:
t
rue
,
show
:
t
his
.
supportTypeItems
.
some
(
item
=>
[
'组织'
,
'群组'
,
'用户'
].
includes
(
item
))
,
handler
:
{
handler
:
{
click
:
()
=>
{
click
:
()
=>
{
this
.
addSpecificUser
()
this
.
addSpecificUser
()
...
@@ -546,7 +556,8 @@ export default {
...
@@ -546,7 +556,8 @@ export default {
type
:
'icon'
,
type
:
'icon'
,
name
:
'添加团队角色'
,
name
:
'添加团队角色'
,
icon
:
'/icons/c-add.png'
,
icon
:
'/icons/c-add.png'
,
show
:
(
this
.
tripleTreeNode
.
level
===
1
&&
!
this
.
userInfo
.
innerFlag
)
||
(
!
this
.
userInfo
.
innerFlag
&&
this
.
tripleTreeNode
.
level
===
2
&&
this
.
currAppData
.
organizationId
&&
this
.
currAppData
.
organizationId
===
this
.
tripleTreeNode
.
organizationId
),
// show: (this.tripleTreeNode.level === 1 && !this.userInfo.innerFlag) || (!this.userInfo.innerFlag && this.tripleTreeNode.level === 2 && this.currAppData.organizationId && this.currAppData.organizationId === this.tripleTreeNode.organizationId),
show
:
this
.
supportTypeItems
.
includes
(
'团队'
),
handler
:
{
handler
:
{
click
:
()
=>
{
click
:
()
=>
{
this
.
addTeamRole
()
this
.
addTeamRole
()
...
@@ -866,6 +877,7 @@ export default {
...
@@ -866,6 +877,7 @@ export default {
},
},
mounted
()
{
mounted
()
{
this
.
getUser
()
this
.
getUser
()
this
.
getSystemConfigByKey
()
if
(
this
.
currAppData
.
id
+
''
===
'1'
)
{
if
(
this
.
currAppData
.
id
+
''
===
'1'
)
{
const
params
=
{
const
params
=
{
'searchItems'
:
{
'searchItems'
:
{
...
@@ -1622,6 +1634,16 @@ export default {
...
@@ -1622,6 +1634,16 @@ export default {
this
.
modelId
=
data
.
id
this
.
modelId
=
data
.
id
this
.
permViewIdx
=
idx
this
.
permViewIdx
=
idx
this
.
getPermByObjIdAndRoleId
()
this
.
getPermByObjIdAndRoleId
()
},
async
getSystemConfigByKey
()
{
const
res
=
await
get
(
'/SystemConfig/getSystemConfigByKey?configKey=PermGroupUserSupportType'
)
const
val
=
this
.
$utils
.
_get
(
res
,
'items[0].configValue'
)
// 没有配置该首选项则表示有全部权限
if
(
!
res
.
items
||
res
.
items
.
length
===
0
||
typeof
val
!==
'string'
)
{
this
.
supportTypeItems
=
[
'全部用户据'
,
'本组织用户'
,
'组织'
,
'群组'
,
'团队'
,
'用户'
]
}
else
{
this
.
supportTypeItems
=
val
.
split
(
'|'
).
filter
(
m
=>
!!
m
)
}
}
}
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment