Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
csbr-daop
/
fe-data-trusted-space
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
c821a49d
authored
2025-12-08 13:19:48 +0800
by
lihua
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改是否弹出运营管理员的逻辑
1 parent
03d5615e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
src/views/[...all].vue
src/views/[...all].vue
View file @
c821a49
...
...
@@ -18,11 +18,14 @@ const route = useRoute()
/** 对话框显示隐藏 */
const
dialogVisible
=
computed
(()
=>
{
superTubeFlag
.
value
=
userData
.
superTubeFlag
;
return
route
.
query
.
code
&&
userStore
.
isGetCurrUserInfo
;
});
const
loading
=
ref
(
false
);
const
superTubeFlag
=
ref
(
true
);
/** 记录用户选择的角色 */
const
selectRole
=
ref
(
userData
.
superTubeFlag
==
'Y'
?
USERROLE
.
OPERATION
:
USERROLE
.
USE
);
//在专区需要默认值是平台运营方。
...
...
@@ -40,6 +43,7 @@ const beforeLogin = () => {
loading
.
value
=
true
;
if
(
userStore
.
getTokenPromise
)
{
userStore
.
getTokenPromise
.
then
(()
=>
{
superTubeFlag
.
value
=
userData
.
superTubeFlag
;
userStore
.
getUserSystemMenuByRole
(
selectRole
.
value
).
then
((
res
)
=>
{
loading
.
value
=
false
;
if
(
res
&&
res
!==
false
)
{
...
...
@@ -56,6 +60,7 @@ const beforeLogin = () => {
loading
.
value
=
false
;
});
}
else
{
superTubeFlag
.
value
=
userData
.
superTubeFlag
;
userStore
.
getUserSystemMenuByRole
(
selectRole
.
value
).
then
((
res
)
=>
{
loading
.
value
=
false
;
if
(
res
&&
res
!==
false
)
{
...
...
@@ -95,7 +100,7 @@ const beforeLogin = () => {
<div
class=
"title"
>
数据提供方
</div>
</div>
<!-- 只有专区才有 -->
<div
class=
"per"
v-if=
"
userData?.
superTubeFlag == 'Y'"
:class=
"selectRole == USERROLE.OPERATION ? 'selected' : ''"
@
click=
"selectRole = USERROLE.OPERATION"
>
<div
class=
"per"
v-if=
"superTubeFlag == 'Y'"
:class=
"selectRole == USERROLE.OPERATION ? 'selected' : ''"
@
click=
"selectRole = USERROLE.OPERATION"
>
<div
class=
"img-operation"
></div>
<div
class=
"title"
>
平台运营方
</div>
</div>
...
...
Write
Preview
Styling with
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