Commit 3905d09d by zhaokeyan

所有table页面的列宽整理

parent e31c4191
...@@ -18,13 +18,13 @@ layui.use(['table', 'admin', 'ax'], function () { ...@@ -18,13 +18,13 @@ layui.use(['table', 'admin', 'ax'], function () {
return [[ return [[
{type: 'checkbox'}, {type: 'checkbox'},
{field: 'dbId', hide: true, title: '主键id'}, {field: 'dbId', hide: true, title: '主键id'},
{field: 'dbName', sort: true, title: '数据库名称'}, {field: 'dbName', align: "center", sort: true, title: '数据库名称'},
{field: 'jdbcDriver', sort: true, title: '驱动类型'}, {field: 'jdbcDriver', align: "center", sort: true, title: '驱动类型'},
{field: 'userName', sort: true, title: '账号'}, {field: 'userName', align: "center", sort: true, title: '账号'},
{field: 'password', sort: true, title: '密码'}, {field: 'password', align: "center", sort: true, title: '密码'},
{field: 'jdbcUrl', sort: true, title: 'jdbc的url'}, {field: 'jdbcUrl', align: "center", sort: true, title: 'jdbc的url'},
{field: 'remarks', sort: true, title: '备注'}, {field: 'remarks', align: "center", sort: true, title: '备注'},
{field: 'createTime', sort: true, title: '创建时间'}, {field: 'createTime', align: "center", sort: true, title: '创建时间'},
{align: 'center', toolbar: '#tableBar', title: '操作'} {align: 'center', toolbar: '#tableBar', title: '操作'}
]]; ]];
}; };
......
...@@ -22,10 +22,10 @@ layui.use(['table', 'admin', 'ax', 'ztree'], function () { ...@@ -22,10 +22,10 @@ layui.use(['table', 'admin', 'ax', 'ztree'], function () {
return [[ return [[
{type: 'checkbox'}, {type: 'checkbox'},
{field: 'deptId', hide: true, sort: true, title: 'id'}, {field: 'deptId', hide: true, sort: true, title: 'id'},
{field: 'simpleName', sort: true, title: '部门简称'}, {field: 'simpleName', align: "center", sort: true, title: '部门简称'},
{field: 'fullName', sort: true, title: '部门全称'}, {field: 'fullName', align: "center", sort: true, title: '部门全称'},
{field: 'sort', sort: true, title: '排序'}, {field: 'sort', align: "center", sort: true, title: '排序'},
{field: 'description', sort: true, title: '备注'}, {field: 'description', align: "center", sort: true, title: '备注'},
{align: 'center', toolbar: '#tableBar', title: '操作', minWidth: 200} {align: 'center', toolbar: '#tableBar', title: '操作', minWidth: 200}
]]; ]];
}; };
......
...@@ -17,12 +17,12 @@ layui.use(['table', 'ax', 'treetable'], function () { ...@@ -17,12 +17,12 @@ layui.use(['table', 'ax', 'treetable'], function () {
Dict.initColumn = function () { Dict.initColumn = function () {
return [[ return [[
{type: 'checkbox'}, {type: 'checkbox'},
{field: 'dictId', hide: true, title: '字典id'}, {field: 'dictId', align: "center", hide: true, title: '字典id'},
{field: 'name', sort: true, title: '字典名称'}, {field: 'name', align: "center", sort: true, title: '字典名称'},
{field: 'code', sort: true, title: '字典编码'}, {field: 'code', align: "center", sort: true, title: '字典编码'},
{field: 'description', sort: true, title: '字典的描述'}, {field: 'description', align: "center", sort: true, title: '字典的描述'},
{ {
field: 'status', sort: true, title: '状态', templet: function (d) { field: 'status', align: "center", sort: true, title: '状态', templet: function (d) {
if (d.status === 'ENABLE') { if (d.status === 'ENABLE') {
return "启用"; return "启用";
} else { } else {
...@@ -30,8 +30,8 @@ layui.use(['table', 'ax', 'treetable'], function () { ...@@ -30,8 +30,8 @@ layui.use(['table', 'ax', 'treetable'], function () {
} }
} }
}, },
{field: 'createTime', sort: true, title: '创建时间'}, {field: 'createTime', align: "center", sort: true, title: '创建时间'},
{field: 'createUser', sort: true, title: '创建人'}, {field: 'createUser', align: "center", sort: true, title: '创建人'},
{align: 'center', toolbar: '#tableBar', title: '操作'} {align: 'center', toolbar: '#tableBar', title: '操作'}
]]; ]];
}; };
......
...@@ -18,19 +18,19 @@ layui.use(['table', 'ax'], function () { ...@@ -18,19 +18,19 @@ layui.use(['table', 'ax'], function () {
{type: 'checkbox'}, {type: 'checkbox'},
{field: 'dictTypeId', hide: true, title: '字典类型id'}, {field: 'dictTypeId', hide: true, title: '字典类型id'},
{ {
field: 'name', sort: true, title: '类型名称', templet: function (d) { field: 'name', align: "center", sort: true, title: '类型名称', templet: function (d) {
var url = Feng.ctxPath + '/dict?dictTypeId=' + d.dictTypeId; var url = Feng.ctxPath + '/dict?dictTypeId=' + d.dictTypeId;
return '<a style="color: #01AAED;" href="' + url + '">' + d.name + '</a>'; return '<a style="color: #01AAED;" href="' + url + '">' + d.name + '</a>';
} }
}, },
{ {
field: 'code', sort: true, title: '类型编码', templet: function (d) { field: 'code', align: "center", sort: true, title: '类型编码', minWidth: 166 , templet: function (d) {
var url = Feng.ctxPath + '/dict?dictTypeId=' + d.dictTypeId; var url = Feng.ctxPath + '/dict?dictTypeId=' + d.dictTypeId;
return '<a style="color: #01AAED;" href="' + url + '">' + d.code + '</a>'; return '<a style="color: #01AAED;" href="' + url + '">' + d.code + '</a>';
} }
}, },
{ {
field: 'systemFlag', sort: true, title: '是否是系统字典', templet: function (d) { field: 'systemFlag', align: "center", sort: true, title: '是否是系统字典', templet: function (d) {
if (d.systemFlag === 'Y') { if (d.systemFlag === 'Y') {
return "是"; return "是";
} else { } else {
...@@ -38,7 +38,7 @@ layui.use(['table', 'ax'], function () { ...@@ -38,7 +38,7 @@ layui.use(['table', 'ax'], function () {
} }
} }
}, },
{field: 'description', sort: true, title: '字典描述'}, {field: 'description', align: "center", sort: true, title: '字典描述'},
{ {
field: 'status', sort: true, title: '状态', templet: function (d) { field: 'status', sort: true, title: '状态', templet: function (d) {
if (d.status === 'ENABLE') { if (d.status === 'ENABLE') {
...@@ -48,8 +48,8 @@ layui.use(['table', 'ax'], function () { ...@@ -48,8 +48,8 @@ layui.use(['table', 'ax'], function () {
} }
} }
}, },
{field: 'createTime', sort: true, title: '添加时间'}, {field: 'createTime', align: "center", sort: true, title: '添加时间', minWidth: 161 },
{field: 'createUser', sort: true, title: '创建人'}, {field: 'createUser', align: "center", sort: true, title: '创建人'},
{align: 'center', toolbar: '#tableBar', title: '操作'} {align: 'center', toolbar: '#tableBar', title: '操作'}
]]; ]];
}; };
......
...@@ -19,13 +19,13 @@ layui.use(['layer', 'table', 'ax', 'laydate'], function () { ...@@ -19,13 +19,13 @@ layui.use(['layer', 'table', 'ax', 'laydate'], function () {
return [[ return [[
{type: 'checkbox'}, {type: 'checkbox'},
{field: 'operationLogId', hide: true, sort: true, title: 'id'}, {field: 'operationLogId', hide: true, sort: true, title: 'id'},
{field: 'logType', sort: true, title: '日志类型'}, {field: 'logType', align: "center", sort: true, title: '日志类型'},
{field: 'logName', sort: true, title: '日志名称'}, {field: 'logName', align: "center", sort: true, title: '日志名称'},
{field: 'userName', sort: true, title: '用户名称'}, {field: 'userName', align: "center", sort: true, title: '用户名称'},
{field: 'className', sort: true, title: '类名'}, {field: 'className', align: "center", sort: true, title: '类名'},
{field: 'method', sort: true, title: '方法名'}, {field: 'method', align: "center", sort: true, title: '方法名'},
{field: 'createTime', sort: true, title: '时间'}, {field: 'createTime', align: "center", sort: true, title: '时间'},
{field: 'regularMessage', sort: true, title: '具体消息'}, {field: 'regularMessage', align: "center", sort: true, title: '具体消息'},
{align: 'center', toolbar: '#tableBar', title: '操作', minWidth: 100} {align: 'center', toolbar: '#tableBar', title: '操作', minWidth: 100}
]]; ]];
}; };
......
...@@ -18,12 +18,12 @@ layui.use(['layer', 'table', 'ax', 'laydate'], function () { ...@@ -18,12 +18,12 @@ layui.use(['layer', 'table', 'ax', 'laydate'], function () {
LoginLog.initColumn = function () { LoginLog.initColumn = function () {
return [[ return [[
{type: 'checkbox'}, {type: 'checkbox'},
{field: 'menuId', hide: true, sort: true, title: 'id'}, {field: 'menuId', hide: true, sort: true, title: 'id'},
{field: 'logName', sort: true, title: '日志名称'}, {field: 'logName', align: "center", sort: true, title: '日志名称'},
{field: 'userName', sort: true, title: '用户名称'}, {field: 'userName', align: "center", sort: true, title: '用户名称'},
{field: 'createTime', sort: true, title: '时间'}, {field: 'createTime', align: "center", sort: true, title: '时间'},
{field: 'regularMessage', sort: true, title: '具体消息'}, {field: 'regularMessage', align: "center", sort: true, title: '具体消息'},
{field: 'ipAddress', sort: true, title: 'ip'} {field: 'ipAddress', align: "center", sort: true, title: 'ip'}
]]; ]];
}; };
......
...@@ -27,14 +27,14 @@ layui.use(['layer', 'form', 'ztree', 'laydate', 'admin', 'ax', 'table', 'treetab ...@@ -27,14 +27,14 @@ layui.use(['layer', 'form', 'ztree', 'laydate', 'admin', 'ax', 'table', 'treetab
return [[ return [[
{type: 'numbers'}, {type: 'numbers'},
{field: 'menuId', hide: true, sort: true, title: 'id'}, {field: 'menuId', hide: true, sort: true, title: 'id'},
{field: 'name', sort: true, title: '菜单名称'}, {field: 'name', align: "center", sort: true, title: '菜单名称', minWidth: 240},
{field: 'code', sort: true, title: '菜单编号'}, {field: 'code', align: "center", sort: true, title: '菜单编号', minWidth: 120},
{field: 'pcode', sort: true, title: '菜单父编号'}, {field: 'pcode', align: "center", sort: true, title: '菜单父编号'},
{field: 'url', sort: true, title: '请求地址'}, {field: 'url', align: "center", sort: true, title: '请求地址'},
{field: 'sort', sort: true, title: '排序'}, {field: 'sort', align: "center", sort: true, title: '排序'},
{field: 'levels', sort: true, title: '层级'}, {field: 'levels', align: "center", sort: true, title: '层级'},
{field: 'isMenuName', sort: true, title: '是否是菜单'}, {field: 'isMenuName', align: "center", sort: true, title: '是否是菜单'},
{field: 'statusName', sort: true, title: '状态'}, {field: 'statusName', align: "center", sort: true, title: '状态'},
{align: 'center', toolbar: '#tableBar', title: '操作', minWidth: 200} {align: 'center', toolbar: '#tableBar', title: '操作', minWidth: 200}
]]; ]];
}; };
......
...@@ -20,10 +20,10 @@ layui.use(['layer', 'form', 'table', 'admin', 'ax'], function () { ...@@ -20,10 +20,10 @@ layui.use(['layer', 'form', 'table', 'admin', 'ax'], function () {
return [[ return [[
{type: 'checkbox'}, {type: 'checkbox'},
{field: 'noticeId', hide: true, sort: true, title: 'id'}, {field: 'noticeId', hide: true, sort: true, title: 'id'},
{field: 'title', sort: true, title: '标题'}, {field: 'title', align: "center", sort: true, title: '标题'},
{field: 'content', sort: true, title: '内容'}, {field: 'content', align: "center", sort: true, title: '内容'},
{field: 'createrName', sort: true, title: '发布者'}, {field: 'createrName', align: "center", sort: true, title: '发布者'},
{field: 'createTime', sort: true, title: '创建时间'}, {field: 'createTime', align: "center", sort: true, title: '创建时间'},
{align: 'center', toolbar: '#tableBar', title: '操作', minWidth: 200} {align: 'center', toolbar: '#tableBar', title: '操作', minWidth: 200}
]]; ]];
}; };
......
...@@ -23,9 +23,9 @@ layui.use(['layer', 'form', 'table', 'admin', 'ax'], function () { ...@@ -23,9 +23,9 @@ layui.use(['layer', 'form', 'table', 'admin', 'ax'], function () {
return [[ return [[
{type: 'checkbox'}, {type: 'checkbox'},
{field: 'roleId', hide: true, sort: true, title: '角色id'}, {field: 'roleId', hide: true, sort: true, title: '角色id'},
{field: 'name', sort: true, title: '名称'}, {field: 'name', align: "center", sort: true, title: '名称'},
{field: 'pName', sort: true, title: '上级角色'}, {field: 'pName', align: "center", sort: true, title: '上级角色'},
{field: 'description', sort: true, title: '别名'}, {field: 'description', align: "center", sort: true, title: '别名'},
{align: 'center', toolbar: '#tableBar', title: '操作', minWidth: 200} {align: 'center', toolbar: '#tableBar', title: '操作', minWidth: 200}
]]; ]];
}; };
......
...@@ -26,15 +26,15 @@ layui.use(['layer', 'form', 'table', 'ztree', 'laydate', 'admin', 'ax'], functio ...@@ -26,15 +26,15 @@ layui.use(['layer', 'form', 'table', 'ztree', 'laydate', 'admin', 'ax'], functio
return [[ return [[
{type: 'checkbox'}, {type: 'checkbox'},
{field: 'userId', hide: true, sort: true, title: '用户id'}, {field: 'userId', hide: true, sort: true, title: '用户id'},
{field: 'account', sort: true, title: '账号'}, {field: 'account', align: "center", sort: true, title: '账号'},
{field: 'name', sort: true, title: '姓名'}, {field: 'name', align: "center", sort: true, title: '姓名'},
{field: 'sexName', sort: true, title: '性别'}, {field: 'sexName', align: "center", sort: true, title: '性别'},
{field: 'roleName', sort: true, title: '角色'}, {field: 'roleName', align: "center", sort: true, title: '角色'},
{field: 'deptName', sort: true, title: '部门'}, {field: 'deptName', align: "center", sort: true, title: '部门'},
{field: 'email', sort: true, title: '邮箱'}, {field: 'email', align: "center", sort: true, title: '邮箱', minWidth: 122},
{field: 'phone', sort: true, title: '电话'}, {field: 'phone', align: "center", sort: true, title: '电话', minWidth: 117},
{field: 'createTime', sort: true, title: '创建时间'}, {field: 'createTime', align: "center", sort: true, title: '创建时间', minWidth: 160},
{field: 'status', sort: true, templet: '#statusTpl', title: '状态'}, {field: 'status', align: "center", sort: true, templet: '#statusTpl', title: '状态'},
{align: 'center', toolbar: '#tableBar', title: '操作', minWidth: 280} {align: 'center', toolbar: '#tableBar', title: '操作', minWidth: 280}
]]; ]];
}; };
......
...@@ -26,13 +26,13 @@ layui.use(['layer', 'ax', 'form', 'laydate', 'element', 'table'], function () { ...@@ -26,13 +26,13 @@ layui.use(['layer', 'ax', 'form', 'laydate', 'element', 'table'], function () {
, height: "full-158" , height: "full-158"
, cols: [[ , cols: [[
{type: 'checkbox'} {type: 'checkbox'}
, {field: 'dbId', title: 'id'} , {field: 'dbId', align: "center", title: 'id'}
, {field: 'dbName', title: '数据源名称'} , {field: 'dbName', align: "center", title: '数据源名称'}
, {field: 'jdbcDriver', title: 'jdbc的驱动类型'} , {field: 'jdbcDriver', align: "center", title: 'jdbc的驱动类型', minWidth: 168}
, {field: 'userName', title: '数据库连接的账号'} , {field: 'userName', align: "center", title: '数据库连接的账号'}
, {field: 'password', title: '密码'} , {field: 'password', align: "center", title: '密码'}
, {field: 'jdbcUrl', title: 'jdbc的url'} , {field: 'jdbcUrl', align: "center", title: 'jdbc的url', minWidth: 1184}
, {field: 'createTime', title: '创建时间'} , {field: 'createTime', align: "center", title: '创建时间', minWidth: 159}
, {align: 'center', toolbar: '#tableBar', title: '操作'} , {align: 'center', toolbar: '#tableBar', title: '操作'}
]] ]]
}); });
......
...@@ -17,14 +17,14 @@ layui.use(['table', 'admin', 'ax'], function () { ...@@ -17,14 +17,14 @@ layui.use(['table', 'admin', 'ax'], function () {
EgForm.initColumn = function () { EgForm.initColumn = function () {
return [[ return [[
{type: 'checkbox'}, {type: 'checkbox'},
{field: 'formId', hide: true, title: '主键id'}, {field: 'formId', align: "center", hide: true, title: '主键id'},
{field: 'name', sort: true, title: '名称'}, {field: 'name', align: "center", sort: true, title: '名称'},
{field: 'singleTime', sort: true, title: '单个时间'}, {field: 'singleTime', align: "center", sort: true, title: '单个时间', minWidth: 160},
{field: 'betweenTime', sort: true, title: '时间段'}, {field: 'betweenTime', align: "center", sort: true, title: '时间段', minWidth: 187},
{field: 'simpleSelect', sort: true, title: '单行选择'}, {field: 'simpleSelect', align: "center", sort: true, title: '单行选择'},
{field: 'fenzuSelect', sort: true, title: '分组选择'}, {field: 'fenzuSelect', align: "center", sort: true, title: '分组选择', minWidth: 104},
{field: 'modules', sort: true, title: '搜索选择'}, {field: 'modules', align: "center", sort: true, title: '搜索选择'},
{field: 'multiSelectHidden', sort: true, title: '多个选择'}, {field: 'multiSelectHidden', align: "center", sort: true, title: '多个选择', minWidth: 143},
{ {
align: 'center', templet: function (d) { align: 'center', templet: function (d) {
// var url = d.imgUrl; // var url = d.imgUrl;
...@@ -32,12 +32,12 @@ layui.use(['table', 'admin', 'ax'], function () { ...@@ -32,12 +32,12 @@ layui.use(['table', 'admin', 'ax'], function () {
return '<img src="' + url + '" class="tdImg" />'; return '<img src="' + url + '" class="tdImg" />';
}, title: '缩略图', width: 90, unresize: true }, title: '缩略图', width: 90, unresize: true
}, },
{field: 'fileInputHidden', sort: true, title: '文件id'}, {field: 'fileInputHidden', align: "center", sort: true, title: '文件id'},
{field: 'closeFlag', sort: true, title: '开关标识'}, {field: 'closeFlag', align: "center", sort: true, title: '开关标识'},
{field: 'sex', sort: true, title: '单选'}, {field: 'sex', align: "center", sort: true, title: '单选'},
{field: 'checkbox', sort: true, title: '复选框'}, {field: 'checkbox', align: "center", sort: true, title: '复选框'},
{field: 'number', sort: true, title: '数字'}, {field: 'number', align: "center", sort: true, title: '数字'},
{field: 'longText', sort: true, title: '长字段'}, {field: 'longText', align: "center", sort: true, title: '长字段'},
{align: 'center', toolbar: '#tableBar', title: '操作'} {align: 'center', toolbar: '#tableBar', title: '操作'}
]]; ]];
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment