You've already forked think-plugs-staff
col-sm-7(用户):调整用户列表页面布局和功能
- 移除添加员工按钮的 layui-btn-primary 类,使用默认样式 - 调整用户列表表格列的顺序,将
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
<button data-open='{:url("admin/user/index")}' class='layui-btn layui-btn-sm layui-btn-danger'>{:lang('可登录用户管理')}</button>
|
<button data-open='{:url("admin/user/index")}' class='layui-btn layui-btn-sm layui-btn-danger'>{:lang('可登录用户管理')}</button>
|
||||||
<!--{/if}-->
|
<!--{/if}-->
|
||||||
<!--{if auth("add")}-->
|
<!--{if auth("add")}-->
|
||||||
<button data-modal='{:url("add")}' data-title="{:lang('添加员工')}" class='layui-btn layui-btn-sm layui-btn-primary'>{:lang('添加员工')}</button>
|
<button data-modal='{:url("add")}' data-title="{:lang('添加员工')}" class='layui-btn layui-btn-sm'>{:lang('添加员工')}</button>
|
||||||
<!--{/if}-->
|
<!--{/if}-->
|
||||||
{/block}
|
{/block}
|
||||||
|
|
||||||
@@ -47,16 +47,14 @@
|
|||||||
height: 'full',
|
height: 'full',
|
||||||
cols: [[
|
cols: [[
|
||||||
{ type: 'checkbox', fixed: 'left' },
|
{ type: 'checkbox', fixed: 'left' },
|
||||||
{ field: 'dept_name', title: '所属部门' },
|
{field: 'status', title: '状态', align: 'center', minWidth: 110, templet: '#StatusSwitchTpl'},
|
||||||
|
|
||||||
{ field: 'name', title: '用户名' },
|
{ field: 'name', title: '用户名' },
|
||||||
{ field: 'gender', title: '性别', templet: function (d) {
|
{ field: 'gender', title: '性别', templet: function (d) {
|
||||||
return d.gender === 0 ? '男' : d.gender === 1 ? '女' : '';
|
return d.gender === 0 ? '男' : d.gender === 1 ? '女' : '';
|
||||||
} },
|
} },
|
||||||
{ field: 'phone', title: '手机号' },
|
{ field: 'phone', title: '手机号' },
|
||||||
{ field: 'email', title: '邮箱' },
|
{ field: 'email', title: '邮箱' },
|
||||||
{ field: 'salary', title: '每月薪水', align: 'right', templet: function (d) {
|
|
||||||
return d.salary ? '¥' + parseFloat(d.salary).toFixed(2) : '-';
|
|
||||||
} },
|
|
||||||
{ field: '', title: '部门负责人', templet: function (d) {
|
{ field: '', title: '部门负责人', templet: function (d) {
|
||||||
if (d.dept) {
|
if (d.dept) {
|
||||||
if (d.dept.headman_id === d.id) {
|
if (d.dept.headman_id === d.id) {
|
||||||
@@ -65,7 +63,7 @@
|
|||||||
}
|
}
|
||||||
return '否';
|
return '否';
|
||||||
} },
|
} },
|
||||||
{field: 'status', title: '状态', align: 'center', minWidth: 110, templet: '#StatusSwitchTpl'},
|
{ field: 'dept_name', title: '所属部门' },
|
||||||
{ fixed: "right", title: "操作", width: 200, align: "center", toolbar: "#ToolbarTpl"}
|
{ fixed: "right", title: "操作", width: 200, align: "center", toolbar: "#ToolbarTpl"}
|
||||||
]],
|
]],
|
||||||
page: true
|
page: true
|
||||||
|
|||||||
Reference in New Issue
Block a user