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
Hide 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 @@
...
@@ -129,6 +129,7 @@
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
http
from
'@/utils/http'
import
{
import
{
delRecentlyAndCommonVisitData
,
delRecentlyAndCommonVisitData
,
getRecentlyVisitData
,
getRecentlyVisitData
,
...
@@ -224,12 +225,17 @@ export default {
...
@@ -224,12 +225,17 @@ export default {
}
}
],
],
fileDialog
:
false
,
fileDialog
:
false
,
proxyDialog
:
false
proxyDialog
:
false
,
canModifyPwd
:
false
}
}
},
},
computed
:
{
computed
:
{
...
mapGetters
([
'activeWorkSpace'
]),
...
mapGetters
([
'activeWorkSpace'
]),
...
mapGetters
([
'userInfo'
]),
...
mapGetters
([
'userInfo'
]),
// 三元用户信息
ternaryUserInfo
()
{
return
this
.
$store
.
getters
.
ternaryUserInfo
},
settings
()
{
settings
()
{
let
items
=
[
let
items
=
[
{
{
...
@@ -266,6 +272,9 @@ export default {
...
@@ -266,6 +272,9 @@ export default {
const
removeItemNames
=
[
'工作代理'
,
'上传监控'
]
const
removeItemNames
=
[
'工作代理'
,
'上传监控'
]
items
=
items
.
filter
(
m
=>
!
removeItemNames
.
includes
(
m
.
name
))
items
=
items
.
filter
(
m
=>
!
removeItemNames
.
includes
(
m
.
name
))
}
}
if
(
!
this
.
canModifyPwd
&&
!
this
.
ternaryUserInfo
.
isAdmin
)
{
items
=
items
.
filter
(
m
=>
!
[
'密码修改'
].
includes
(
m
.
name
))
}
return
items
return
items
}
}
},
},
...
@@ -287,8 +296,11 @@ export default {
...
@@ -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
:
{
methods
:
{
getOrganization
()
{
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