From 56aaf185c6c906f74549a7551b29b1b107d69819 Mon Sep 17 00:00:00 2001 From: zhaoxiaohao <913652501@qq.com> Date: Tue, 18 Aug 2020 09:53:26 +0800 Subject: [PATCH] 修改样式 --- kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/system/user.html | 22 ++++++++++++++-------- 1 files changed, 14 insertions(+), 8 deletions(-) diff --git a/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/system/user.html b/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/system/user.html index 8b4fc12..7e6454d 100644 --- a/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/system/user.html +++ b/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/system/user.html @@ -62,17 +62,23 @@ 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) { - return d.sex == 0 ? "男" : "女" + 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; }, 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); -- Gitblit v1.8.0