helperdialect mysql_springBoot mybatis mysql pagehelper layui 分页

table.render({

elem: ‘#adminInfoList‘

, url: ‘/admin/queryAdminInfoAll‘

, cols: [[

{type: ‘checkbox‘, fixed: ‘left‘},

{

field: ‘adminInfoEntity‘, title: ‘头像‘,

templet: function (data) {

return ‘%E2%80%98

}

}

, {field: ‘adminAccount‘, title: ‘登录名‘}

, {

field: ‘adminInfoEntity‘, title: ‘邮箱‘, sort: true,

templet: function (data) {

return ‘‘ + data.adminInfoEntity.adminInfoEmail + ‘‘

}

}

, {

field: ‘adminInfoEntity‘, title: ‘权限‘,

templet: function (data) {

if (data.adminInfoEntity.adminInfoClass == 0) {

return ‘‘ + "普通管理员" + ‘‘

}

if (data.adminInfoEntity.adminInfoClass == 1) {

return ‘‘ + "超级管理员" + ‘‘

}

}

}

, {

field: ‘adminInfoName‘, title: ‘实名‘,

templet: function (data) {

return ‘‘ + data.adminInfoEntity.adminInfoName + ‘‘

}

}

, {

field: ‘adminInfoEntity‘, title: ‘状态‘, width: 85, templet: function (data) {

if (data.adminInfoEntity.adminInfoCode == 1) {

return ‘

‘ lay-text="启用|禁用" value=‘ + data.adminInfoEntity.adminInfoCode + ‘>

} else {

return ‘

‘lay-text="启用|禁用" value=‘ + data.adminInfoEntity.adminInfoCode + ‘>

}

}

}

, {

field: ‘adminInfoEntity‘, title: ‘性别‘,

templet: function (data) {

if (data.adminInfoEntity.adminInfoSex == 2) {

return ‘‘ + ‘男‘ + ‘‘

}

if (data.adminInfoEntity.adminInfoSex == 0) {

return ‘‘ + ‘保密‘ + ‘‘

}

if (data.adminInfoEntity.adminInfoSex == 1) {

return ‘‘ + ‘女‘ + ‘‘

}

}

}

, {

field: ‘adminInfoEntity‘, title: ‘手机号码‘, sort: true,

templet: function (data) {

return ‘‘ + data.adminInfoEntity.adminInfoPhone + ‘‘

}

}

, {fixed: ‘right‘, title: ‘操作‘, toolbar: ‘#barDemo‘, width: 140}

]]

, limit: 15

, limits: [15, 20, 25, 50, 100]

, parseData: function (data) {

/**

* 打印数据

*

*/

console.log(data)

}

/**

* 开启分页

*/

, page: true

});

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值