手机号返回加密
This commit is contained in:
parent
4a183bcedc
commit
e2b9fd811c
|
|
@ -55,6 +55,9 @@ public class UserController {
|
|||
PageHelper.startPage(data.getData().getPage(), data.getData().getLimit());
|
||||
try {
|
||||
List<SysUser> list = userService.list(data.getData());
|
||||
for (SysUser user : list) {
|
||||
user.setLoginName(AESCBCUtils.encrypt(user.getLoginName()));
|
||||
}
|
||||
PageInfo<SysUser> pageInfo = new PageInfo<>(list);
|
||||
return ServerResponse.createSuccessPage(pageInfo,data.getData().getPage(),data.getData().getLimit());
|
||||
} catch (Exception e) {
|
||||
|
|
|
|||
|
|
@ -44,7 +44,6 @@ function pages(pageNum, pageSize, typeNum) {
|
|||
let url = dataUrl + "/users/getList"
|
||||
ajaxRequest(url, "POST", params, true, function () {
|
||||
}, function (result) {
|
||||
console.log(result);
|
||||
if (result.code === 200) {
|
||||
if (result.data) {
|
||||
initTable(result.data, result.limit, result.curr)
|
||||
|
|
@ -97,7 +96,12 @@ function initTable(dataList, limit, page) {
|
|||
return (page - 1) * limit + d.LAY_INDEX;
|
||||
}
|
||||
},
|
||||
{field: "loginName", title: "登录账号", unresize: true, align: "center"},
|
||||
{field: "loginName", title: "登录账号", unresize: true, align: "center",
|
||||
templet: function (d) {
|
||||
if(d.loginName){
|
||||
return decryptCBC(d.loginName);
|
||||
}
|
||||
}},
|
||||
{field: "username", title: "姓名", unresize: true, align: "center"},
|
||||
/*{field: "sex", title: "性别", unresize: true, align: "center",
|
||||
templet: function (d) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue