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
03b1c304
Commit
03b1c304
authored
Feb 07, 2023
by
chehuidong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
c8c52399
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
68 deletions
+28
-68
src/views/system/users.vue
+28
-68
No files found.
src/views/system/users.vue
View file @
03b1c304
...
...
@@ -86,7 +86,7 @@
<el-button
type=
"info"
@
click=
"addDialog(2)"
>
重置密码
</el-button>
</el-form-item>
-->
</el-form>
<div
class=
"table_wrap"
>
<div
class=
"table_wrap"
v-loading=
"loading"
>
<table-vue
:sourceData=
"sourceData"
ref=
"multipleTable"
...
...
@@ -311,6 +311,7 @@ export default {
total
:
0
,
pageSize
:
100
,
currentPage
:
1
,
loading
:
false
,
}
},
created
()
{
...
...
@@ -377,73 +378,25 @@ export default {
width
:
''
,
render
:
(
item
)
=>
(
<
div
>
{
item
.
loginName
!==
'admin'
&&
(
<
span
title
=
"编辑"
class
=
"icon-view icon-edit-view"
>
<
i
class
=
"el-icon-edit"
onClick
=
{(
e
)
=>
this
.
addDialog
(
2
,
item
,
e
)
}
><
/i
>
<
/span
>
)}
{
<
span
title
=
"重置密码"
class
=
"icon-view icon-tools-view"
>
<
i
class
=
"el-icon-refresh-left"
onClick
=
{(
e
)
=>
this
.
resetPwd
(
e
,
item
)}
><
/i
>
<
/span
>
}
<
/div
>
),
},
]
},
tableColumns
()
{
return
[
{
label
:
'访问IP'
,
key
:
'ip'
},
{
label
:
'设备名称'
,
key
:
'deviceName'
},
{
label
:
'授权状态'
,
key
:
'auditStatusTxt'
},
{
label
:
'授权类型'
,
key
:
'authTypeTxt'
},
{
label
:
'最后登录时间'
,
key
:
'lastLoginTime'
,
width
:
130
,
},
{
label
:
'操作'
,
key
:
''
,
render
:
(
item
)
=>
(
<
div
>
{
item
.
auditStatus
===
0
&&
(
<
span
class
=
"icon-view icon-tools-view"
title
=
"授权"
>
<
i
class
=
"el-icon-s-check"
onClick
=
{(
e
)
=>
this
.
authorization
(
item
,
e
)
}
><
/i
>
<
/span
>
)}
<
span
class
=
"icon-view icon-del-view"
title
=
"删除"
>
<
span
title
=
"编辑"
class
=
"icon-view "
>
<
i
class
=
"el-icon-edit-outline"
onClick
=
{(
e
)
=>
this
.
addDialog
(
2
,
item
,
e
)
}
><
/i
>
<
/span
>
<
span
title
=
"重置密码"
class
=
"icon-view "
>
<
i
class
=
"el-icon-refresh-left"
onClick
=
{(
e
)
=>
this
.
resetPwd
(
e
,
item
)}
><
/i
>
<
/span
>
<
span
title
=
"删除"
class
=
"icon-view "
>
<
i
class
=
"el-icon-delete"
onClick
=
{(
e
)
=>
this
.
authorizationDel
(
item
,
e
)
this
.
deleteSection
(
item
)
}
><
/i
>
<
/span
>
...
...
@@ -452,6 +405,7 @@ export default {
},
]
},
funcRoleList
()
{
if
(
this
.
roleList
.
length
>
0
)
{
return
this
.
roleList
.
filter
(
...
...
@@ -576,8 +530,10 @@ export default {
return
this
.
$message
(
'请勾选至少一条记录'
)
}
axios
.
get
(
'platform/user/axios.get'
,
{
id
:
v
.
id
,
.
get
(
'platform/user/get'
,
{
params
:
{
id
:
v
.
id
,
},
})
.
then
((
res
)
=>
{
const
funcRoleIds
=
[]
...
...
@@ -633,6 +589,7 @@ export default {
},
// 查询
getList
()
{
this
.
loading
=
true
const
{
pageSize
,
currentPage
}
=
this
.
paginationOptions
axios
...
...
@@ -642,6 +599,7 @@ export default {
...
this
.
searchForm
,
})
.
then
((
res
)
=>
{
this
.
loading
=
false
if
(
res
.
code
===
200
)
{
this
.
sourceData
=
res
.
data
.
records
this
.
paginationOptions
.
total
=
res
.
data
.
total
...
...
@@ -738,7 +696,9 @@ export default {
.
then
(()
=>
{
axios
.
get
(
'platform/user/delete'
,
{
ids
:
ids
,
params
:
{
ids
:
ids
,
},
})
.
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
...
...
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