Commit 610bf3e1 by 李长胜

样式调整,处理表格空字符显示问题

1 parent e6f783e7
...@@ -137,7 +137,7 @@ border-color: #1989FA!important; ...@@ -137,7 +137,7 @@ border-color: #1989FA!important;
/* 表格行内容高度自适应 */ /* 表格行内容高度自适应 */
.layui-table-cell{ .layui-table-cell{
height: auto; height: auto;
/* overflow: visible; /* overflow: visible;
text-overflow: inherit; */ text-overflow: inherit; */
white-space: normal; white-space: normal;
...@@ -151,6 +151,8 @@ border-color: #1989FA!important; ...@@ -151,6 +151,8 @@ border-color: #1989FA!important;
-webkit-line-clamp: 4; -webkit-line-clamp: 4;
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
display: -webkit-box; display: -webkit-box;
word-break: break-all;
} }
.layui-table-cell li{ .layui-table-cell li{
list-style-type: none; list-style-type: none;
......
...@@ -111,6 +111,9 @@ main .table-page{ ...@@ -111,6 +111,9 @@ main .table-page{
main .table-page tr th:last-child .layui-table-cell{ main .table-page tr th:last-child .layui-table-cell{
text-align: center; text-align: center;
} }
main .input-downtips{
color: #1989FA;
}
footer { footer {
height: 30px; height: 30px;
......
...@@ -119,7 +119,7 @@ ...@@ -119,7 +119,7 @@
{ field: 'statusName', title: '状态', align: 'center' }, { field: 'statusName', title: '状态', align: 'center' },
{ field: 'createdAccount', title: '创建者', align: 'center' }, { field: 'createdAccount', title: '创建者', align: 'center' },
{ field: 'merchantName', title: '商户名(商户号)', align: 'center', width: 160 }, { field: 'merchantName', title: '商户名(商户号)', align: 'center', width: 160 },
{ field: 'updatedTime', title: '更新时间', align: 'center', width: 120 }, { field: 'updatedTime', title: '更新时间', align: 'center', width: 112 },
{ fixed: 'right', title: '操作', width: 220, align: 'left', toolbar: '#employeeBar' } { fixed: 'right', title: '操作', width: 220, align: 'left', toolbar: '#employeeBar' }
] ]
] ]
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
<select name="effectiveTime" id="periodSelect" required lay-verify="required"> <select name="effectiveTime" id="periodSelect" required lay-verify="required">
<option value="">请选择</option> <option value="">请选择</option>
</select> </select>
<p>(注:永久有效不超过所属工厂商户的有效期)</p> <p class="input-downtips">(注:永久有效不超过所属工厂商户的有效期)</p>
</div> </div>
<button id="periodVerifyBtn" lay-submit lay-filter="periodSubmit" style="display: none;"></button> <button id="periodVerifyBtn" lay-submit lay-filter="periodSubmit" style="display: none;"></button>
<!-- <div class="layui-form-item" style="padding: 40px 20px;"> <!-- <div class="layui-form-item" style="padding: 40px 20px;">
......
...@@ -490,7 +490,7 @@ ...@@ -490,7 +490,7 @@
{ {
field: 'createdTime', field: 'createdTime',
title: '创建时间', title: '创建时间',
width: 150 width: 112
} }
] ]
] ]
......
...@@ -212,7 +212,8 @@ ...@@ -212,7 +212,8 @@
}, { }, {
field: 'merchantLoginAccount', field: 'merchantLoginAccount',
title: '登录账户', title: '登录账户',
align: 'center' align: 'center',
width: 108
}, { }, {
field: 'accountLevelName', field: 'accountLevelName',
title: '账户等级', title: '账户等级',
...@@ -233,7 +234,7 @@ ...@@ -233,7 +234,7 @@
field: 'merchantLegalPersonPhone', field: 'merchantLegalPersonPhone',
title: '手机号', title: '手机号',
align: 'center', align: 'center',
width: 100 width: 120
}, { }, {
field: 'merchantAddress', field: 'merchantAddress',
title: '商户地址', title: '商户地址',
...@@ -243,7 +244,7 @@ ...@@ -243,7 +244,7 @@
field: 'updatedTime', field: 'updatedTime',
title: '更新时间', title: '更新时间',
align: 'center', align: 'center',
width: 120 width: 112
}, { }, {
align: 'left', align: 'left',
title: '操作', title: '操作',
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
<select name="effectiveTime" id="periodSelect" required lay-verify="required"> <select name="effectiveTime" id="periodSelect" required lay-verify="required">
<option value="">请选择</option> <option value="">请选择</option>
</select> </select>
<p>(注:永久有效不超过所属工厂商户的有效期)</p> <p class="input-downtips">(注:永久有效不超过所属工厂商户的有效期)</p>
</div> </div>
<button id="periodVerifyBtn" lay-submit lay-filter="periodSubmit" style="display: none;"></button> <button id="periodVerifyBtn" lay-submit lay-filter="periodSubmit" style="display: none;"></button>
</div> </div>
......
...@@ -78,7 +78,7 @@ ...@@ -78,7 +78,7 @@
{ field: 'roleCode', title: '角色号', align: 'center' }, { field: 'roleCode', title: '角色号', align: 'center' },
{ field: 'merchantName', title: '所属商户名', align: 'center' }, { field: 'merchantName', title: '所属商户名', align: 'center' },
{ field: 'statusName', title: '状态', align: 'center' }, { field: 'statusName', title: '状态', align: 'center' },
{ field: 'updatedTime', title: '更新时间', align: 'center' ,width: 120}, { field: 'updatedTime', title: '更新时间', align: 'center' ,width: 112},
{ fixed: 'right', title: '操作', width: 160, align: 'center', toolbar: '#roleBar' } { fixed: 'right', title: '操作', width: 160, align: 'center', toolbar: '#roleBar' }
] ]
] ]
......
...@@ -55,7 +55,7 @@ layui.define(['store'], function (exports) { ...@@ -55,7 +55,7 @@ layui.define(['store'], function (exports) {
//将后台返回数据中数值为空的字段全部替换为“-” //将后台返回数据中数值为空的字段全部替换为“-”
function formateNullFieldData (initialData) { function formateNullFieldData (initialData) {
const isEmpty = function (val) { const isEmpty = function (val) {
if (String(val) === 'null') { if (!String(val) || String(val) === 'null') {
return '-'; return '-';
} }
return val; return val;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!