Commit 610bf3e1 by 李长胜

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

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