Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
so-manage-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
smart-operation
so-manage-ui
Commits
bab2dcae
Commit
bab2dcae
authored
Jun 29, 2023
by
张俊
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
https://cloud.wodcloud.com/git/smart-operation/so-manage-ui
into dev
parents
1db1a70e
20d338f5
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
12 deletions
+5
-12
src/App.vue
src/App.vue
+0
-2
src/components/bg-menu.vue
src/components/bg-menu.vue
+4
-9
src/components/login-by-account.vue
src/components/login-by-account.vue
+1
-1
No files found.
src/App.vue
View file @
bab2dcae
...
...
@@ -126,8 +126,6 @@ export default {
this
.
readFlag
=
!
this
.
readFlag
;
},
initMsg
()
{
console
.
log
(
this
.
userInfo
);
console
.
log
(
this
.
$trace
);
if
(
this
.
userInfo
&&
this
.
userInfo
.
system_id
)
{
this
.
$trace
.
setOptionValue
(
"
userId
"
,
this
.
userInfo
.
system_id
);
// this.$trace.setOptionValue('userType',this.userInfo.userType)
...
...
src/components/bg-menu.vue
View file @
bab2dcae
...
...
@@ -73,7 +73,7 @@
</div>
</div>
<div
class=
"person-menu"
v-if=
"userInfo && userInfo.system_id"
>
<div
class=
"person-menu"
>
<!-- 用户中心 -->
<div
class=
"user-center nav-item"
>
<span
class=
"user-icon"
>
...
...
@@ -86,14 +86,14 @@
style=
"width: 24px; height: 24px; border-radius: 50%; vertical-align: middle"
src=
"../assets/imgs/home_ic_user.png"
/>
</span>
<span
v-if=
"userInfo
&& userInfo.system_id
"
class=
"user-name"
>
{{
userInfo
.
system_account
||
userInfo
.
system_id
}}
<span
v-if=
"userInfo"
class=
"user-name"
>
{{
userInfo
.
system_account
}}
<bg-icon
icon=
"#bg-ic-arrow-down"
style=
"font-size: 8px; margin-left: 3px"
/>
</span>
<span
v-else
class=
"user-name"
>
请登录
</span>
<div
class=
"menu-virtual"
></div>
<div
v-if=
"userInfo
&& userInfo.system_id
"
class=
"menu-list"
>
<div
v-if=
"userInfo"
class=
"menu-list"
>
<div
v-for=
"(item, index) in systemMenu"
:key=
"index + 700"
...
...
@@ -179,14 +179,9 @@ export default {
return
temp
;
},
systemMenu
(
state
)
{
const
{
is_admin
}
=
state
.
userInfo
;
let
temp
=
[];
state
.
menu
?.
forEach
((
e
)
=>
{
if
(
e
.
dict_group_id
==
"
26d3903a-863e-4efc-b53e-0fb8772ddaa4
"
)
{
// 业务系统用户和组织管理员配置了后台管理,将其隐藏
if
(
is_admin
<
3
&&
e
.
menuName
===
"
管理中心
"
)
{
return
;
}
temp
.
push
(
e
);
}
});
...
...
src/components/login-by-account.vue
View file @
bab2dcae
...
...
@@ -153,7 +153,7 @@ const getUser = () => {
store
.
commit
(
"
setMenuObj
"
,
menuObj
);
// }
generateRoutes
();
router
.
push
(
"
/
"
);
router
.
push
(
"
/
forewarning/list
"
);
}
});
};
...
...
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