Commit a958f3e7 by 罗承锋

添加用户解锁

parent f3eb94bb
......@@ -20,6 +20,10 @@ let roleTreeList2 = (params) => postAction(prefix+"/role/roleTreeListByUserId/"+
let userFreeze= (params) => postAction(prefix+"/mgr/freeze", params);
let userUnFreeze= (params) => postAction(prefix+"/mgr/unfreeze", 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);
let deptAdd = (params) => postAction(prefix+"/dept/add", params);
......@@ -76,6 +80,7 @@ export {
userFreeze,
userUnFreeze,
changeOtherPwd,
unlock,
// 角色管理
userManage,
userRoleTreeList,
......
......@@ -73,6 +73,8 @@
</template>
<template slot="operation" slot-scope="text, record" v-if="record.status != 3">
<span>
<a @click="unlock(record.id)">解锁</a>
<a-divider type="vertical"/>
<a @click="toggle(record.id)">修改</a>
<a-divider type="vertical"/>
<a-popconfirm title="是否要删除此行?" @confirm="remove(record.id)">
......@@ -250,7 +252,8 @@ import {
getEditUser,
userFreeze,
userUnFreeze,
changeOtherPwd
changeOtherPwd,
unlock
} from '@/api/system'
export default {
......@@ -303,7 +306,7 @@ export default {
dataIndex: 'center',
toolbar: '#tableBar',
title: '操作',
width: 200,
width: 220,
fixed: 'right',
scopedSlots: { customRender: 'operation' }
}
......@@ -618,8 +621,15 @@ export default {
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() {
this.visible = false
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment