Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gdtel-gztel-school-center-ui
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
吴学德
gdtel-gztel-school-center-ui
Commits
a958f3e7
Commit
a958f3e7
authored
Feb 25, 2021
by
罗承锋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加用户解锁
parent
f3eb94bb
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
4 deletions
+19
-4
src/api/system.js
+5
-0
src/views/system/systemUser.vue
+14
-4
No files found.
src/api/system.js
View file @
a958f3e7
...
@@ -20,6 +20,10 @@ let roleTreeList2 = (params) => postAction(prefix+"/role/roleTreeListByUserId/"+
...
@@ -20,6 +20,10 @@ let roleTreeList2 = (params) => postAction(prefix+"/role/roleTreeListByUserId/"+
let
userFreeze
=
(
params
)
=>
postAction
(
prefix
+
"/mgr/freeze"
,
params
);
let
userFreeze
=
(
params
)
=>
postAction
(
prefix
+
"/mgr/freeze"
,
params
);
let
userUnFreeze
=
(
params
)
=>
postAction
(
prefix
+
"/mgr/unfreeze"
,
params
);
let
userUnFreeze
=
(
params
)
=>
postAction
(
prefix
+
"/mgr/unfreeze"
,
params
);
let
changeOtherPwd
=
(
params
)
=>
postAction
(
prefix
+
"/mgr/changeOtherPwd"
,
params
);
//修改密码
let
changeOtherPwd
=
(
params
)
=>
postAction
(
prefix
+
"/mgr/changeOtherPwd"
,
params
);
//修改密码
// 用户解锁
let
unlock
=
(
params
)
=>
postAction
(
"app/ciop/codesManager/unlock"
,
params
);
//修改密码
//部门管理
//部门管理
const
departmentList
=
(
params
)
=>
getAction
(
prefix
+
"/dept/departmentList"
,
params
);
const
departmentList
=
(
params
)
=>
getAction
(
prefix
+
"/dept/departmentList"
,
params
);
let
deptAdd
=
(
params
)
=>
postAction
(
prefix
+
"/dept/add"
,
params
);
let
deptAdd
=
(
params
)
=>
postAction
(
prefix
+
"/dept/add"
,
params
);
...
@@ -76,6 +80,7 @@ export {
...
@@ -76,6 +80,7 @@ export {
userFreeze
,
userFreeze
,
userUnFreeze
,
userUnFreeze
,
changeOtherPwd
,
changeOtherPwd
,
unlock
,
// 角色管理
// 角色管理
userManage
,
userManage
,
userRoleTreeList
,
userRoleTreeList
,
...
...
src/views/system/systemUser.vue
View file @
a958f3e7
...
@@ -73,6 +73,8 @@
...
@@ -73,6 +73,8 @@
</template>
</template>
<
template
slot=
"operation"
slot-scope=
"text, record"
v-if=
"record.status != 3"
>
<
template
slot=
"operation"
slot-scope=
"text, record"
v-if=
"record.status != 3"
>
<span>
<span>
<a
@
click=
"unlock(record.id)"
>
解锁
</a>
<a-divider
type=
"vertical"
/>
<a
@
click=
"toggle(record.id)"
>
修改
</a>
<a
@
click=
"toggle(record.id)"
>
修改
</a>
<a-divider
type=
"vertical"
/>
<a-divider
type=
"vertical"
/>
<a-popconfirm
title=
"是否要删除此行?"
@
confirm=
"remove(record.id)"
>
<a-popconfirm
title=
"是否要删除此行?"
@
confirm=
"remove(record.id)"
>
...
@@ -250,7 +252,8 @@ import {
...
@@ -250,7 +252,8 @@ import {
getEditUser
,
getEditUser
,
userFreeze
,
userFreeze
,
userUnFreeze
,
userUnFreeze
,
changeOtherPwd
changeOtherPwd
,
unlock
}
from
'@/api/system'
}
from
'@/api/system'
export
default
{
export
default
{
...
@@ -303,7 +306,7 @@ export default {
...
@@ -303,7 +306,7 @@ export default {
dataIndex
:
'center'
,
dataIndex
:
'center'
,
toolbar
:
'#tableBar'
,
toolbar
:
'#tableBar'
,
title
:
'操作'
,
title
:
'操作'
,
width
:
2
0
0
,
width
:
2
2
0
,
fixed
:
'right'
,
fixed
:
'right'
,
scopedSlots
:
{
customRender
:
'operation'
}
scopedSlots
:
{
customRender
:
'operation'
}
}
}
...
@@ -618,8 +621,15 @@ export default {
...
@@ -618,8 +621,15 @@ export default {
that
.
$refs
.
tree4
.
setValue2
(
user
.
roleid
);
that
.
$refs
.
tree4
.
setValue2
(
user
.
roleid
);
})
})
},
unlock
(
userId
)
{
unlock
({
userId
}).
then
(
res
=>
{
if
(
res
.
state
==
"success"
)
{
this
.
$notification
.
success
({
message
:
"解除锁定成功!"
,
description
:
""
,
duration
:
4
})
}
else
{
this
.
$notification
.
error
({
message
:
"解锁失败!"
,
description
:
""
,
duration
:
4
});
}
})
},
},
handleUpdata
()
{
handleUpdata
()
{
this
.
visible
=
false
this
.
visible
=
false
...
...
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