| | |
| | | headers: { 'Authorization': 'Bearer ' + config.getToken().access_token}, |
| | | page: true, |
| | | cols: [[ |
| | | { field: 'username', width: 100, title: '账号' }, |
| | | { field: 'nickname', width: 200, title: '用户名' }, |
| | | { field: 'mobile', width: 150, title: '手机号' }, |
| | | { field: 'username', width: "10%",align: 'center', title: '账号' }, |
| | | { field: 'nickname', width: "10%",align: 'center', title: '用户名' }, |
| | | { field: 'mobile', width: "10%",align: 'center', title: '手机号' }, |
| | | { |
| | | sort: true, title: '性别', templet: function (d) { |
| | | sort: true, width: "10%",align: 'center', title: '性别', templet: function (d) { |
| | | var value=""; |
| | | if(d.sex == 0){ |
| | | value="男"; |
| | | }else if(d.sex == 1){ |
| | | value="女"; |
| | | } |
| | | return value |
| | | return value; |
| | | }, width: 100 |
| | | }, |
| | | { field: 'createTime', width: 250, sort: true, title: '创建时间', templet: "<div>{{layui.util.toDateString(d.createTime, 'yyyy/MM/dd HH:mm')}}</div>" }, |
| | | { field: 'enabled', width: 100, sort: true, templet: '#user-tpl-state', title: '状态' }, |
| | | { fixed: 'right', align: 'center', toolbar: '#user-table-bar', title: '操作', width: 300 } |
| | | { field: 'createTime', width: "20%",align: 'center', sort: true, title: '创建时间', templet: "<div>{{layui.util.toDateString(d.createTime, 'yyyy/MM/dd HH:mm')}}</div>" }, |
| | | { field: 'enabled', width: "10%",align: 'center', sort: true, templet: '#user-tpl-state', title: '状态' }, |
| | | { fixed: 'right', width: "10%",align: 'center', toolbar: '#user-table-bar', title: '操作', width: 300 } |
| | | ]], |
| | | done:function(res){ |
| | | permissionsInput(res,config); |