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
f6c322cf
Commit
f6c322cf
authored
Feb 01, 2024
by
jingnan
👀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
合并产品【10262】【测评】三员账号登录平台后对于账密登录的项目,密码修改功能保留与隐藏处理
parent
aa839a1e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
index.vue
...architecture-dee/src/components/PersonalPopover/index.vue
+15
-3
No files found.
applications/architecture-dee/src/components/PersonalPopover/index.vue
View file @
f6c322cf
...
...
@@ -129,6 +129,7 @@
</div>
</
template
>
<
script
>
import
http
from
'@/utils/http'
import
{
delRecentlyAndCommonVisitData
,
getRecentlyVisitData
,
...
...
@@ -224,12 +225,17 @@ export default {
}
],
fileDialog
:
false
,
proxyDialog
:
false
proxyDialog
:
false
,
canModifyPwd
:
false
}
},
computed
:
{
...
mapGetters
([
'activeWorkSpace'
]),
...
mapGetters
([
'userInfo'
]),
// 三元用户信息
ternaryUserInfo
()
{
return
this
.
$store
.
getters
.
ternaryUserInfo
},
settings
()
{
let
items
=
[
{
...
...
@@ -266,6 +272,9 @@ export default {
const
removeItemNames
=
[
'工作代理'
,
'上传监控'
]
items
=
items
.
filter
(
m
=>
!
removeItemNames
.
includes
(
m
.
name
))
}
if
(
!
this
.
canModifyPwd
&&
!
this
.
ternaryUserInfo
.
isAdmin
)
{
items
=
items
.
filter
(
m
=>
!
[
'密码修改'
].
includes
(
m
.
name
))
}
return
items
}
},
...
...
@@ -287,8 +296,11 @@ export default {
}
},
mounted
()
{
async
mounted
()
{
const
res
=
await
http
.
get
(
'/SystemConfig/getSystemConfigByKey?configKey=IsSupportChangePassword'
)
if
(
this
.
$utils
.
_get
(
res
,
'items[0].configValue'
)
===
'true'
)
{
this
.
canModifyPwd
=
true
}
},
methods
:
{
getOrganization
()
{
...
...
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