Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
saas-manage
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chehuidong
saas-manage
Commits
d3051cd6
Commit
d3051cd6
authored
Feb 07, 2023
by
chehuidong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
01073dec
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
37 additions
and
37 deletions
+37
-37
src/views/home/HomeHeader.vue
+2
-18
src/views/home/navMenu.vue
+15
-0
src/views/menu.vue
+1
-0
src/views/system/users.vue
+19
-19
No files found.
src/views/home/HomeHeader.vue
View file @
d3051cd6
...
...
@@ -5,8 +5,7 @@
</
template
>
<
script
>
import
pageTags
from
'./pageTags.vue'
import
{
logout
}
from
'@/common/api/login'
import
{
setToken
,
setUser
}
from
'@/utils/auth'
import
{
mapState
}
from
'vuex'
export
default
{
...
...
@@ -15,21 +14,7 @@ export default {
computed
:
{
...
mapState
([
'userInfo'
]),
},
methods
:
{
async
logout
()
{
try
{
await
logout
()
}
catch
(
e
)
{
console
.
error
(
e
)
}
setUser
(
null
)
setToken
(
''
)
localStorage
.
setItem
(
'tags'
,
null
)
this
.
$store
.
commit
(
'tags/removeAllTags'
)
this
.
$router
.
push
(
'/login'
)
},
},
methods
:
{},
}
</
script
>
<
style
lang=
"scss"
scoped
>
...
...
@@ -42,5 +27,4 @@ export default {
flex
:
1
;
overflow
:
auto
hidden
;
}
</
style
>
src/views/home/navMenu.vue
View file @
d3051cd6
...
...
@@ -60,6 +60,8 @@
</template>
<
script
>
import
{
mapGetters
}
from
'vuex'
import
{
logout
}
from
'@/common/api/login'
import
{
setToken
,
setUser
}
from
'@/utils/auth'
export
default
{
name
:
'navMenu'
,
data
()
{
...
...
@@ -136,6 +138,19 @@ export default {
},
},
methods
:
{
async
logout
()
{
try
{
await
logout
()
}
catch
(
e
)
{
console
.
error
(
e
)
}
setUser
(
null
)
setToken
(
''
)
localStorage
.
setItem
(
'tags'
,
null
)
this
.
$store
.
commit
(
'tags/removeAllTags'
)
this
.
$router
.
push
(
'/login'
)
},
onClickMenus
()
{},
},
}
...
...
src/views/menu.vue
View file @
d3051cd6
...
...
@@ -417,6 +417,7 @@ export default {
display
:
flex
;
flex-direction
:
column
;
padding
:
10px
20px
0
;
overflow
:
hidden
;
}
.table-wrap
{
...
...
src/views/system/users.vue
View file @
d3051cd6
...
...
@@ -385,25 +385,25 @@ export default {
this
.
addcurrencyform2
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
addcurrencyform
),
)
axios
.
get
(
'sysRole/role_option'
)
.
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
this
.
roleOptions
=
res
.
data
}
})
.
catch
((
err
)
=>
{
console
.
log
(
err
)
})
axios
.
get
(
'sysRole/all_list'
).
then
((
res
)
=>
{
this
.
roleList
=
res
.
data
})
axios
.
get
(
'platform/user/employeePlatformList'
)
.
then
((
res
)
=>
{
this
.
platforms
=
res
.
data
})
.
catch
((
err
)
=>
{
console
.
log
(
err
)
})
//
axios.get('sysRole/role_option')
//
.then((res) => {
//
if (res.code === 200) {
//
this.roleOptions = res.data
//
}
//
})
//
.catch((err) => {
//
console.log(err)
//
})
//
axios.get('sysRole/all_list').then((res) => {
//
this.roleList = res.data
//
})
//
axios.get('platform/user/employeePlatformList')
//
.then((res) => {
//
this.platforms = res.data
//
})
//
.catch((err) => {
//
console.log(err)
//
})
},
computed
:
{
...
mapState
([
'reqMenu'
,
'employee'
]),
...
...
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