增加table表格行高:整个表格样式行高修改
.layui-table-cell {
height: auto;
line-height: 30px;
}
修改按钮样式
//增加
//修改
//删除
layui列表点击事件event
{field: 'status',title: '状态', event: 'changeStatus',templet: '#statusTpl', align: 'center'}
if(layEvent === 'changeStatus'){
$.ajax({
type: "GET",
url: '../test/update?id=' + obj.data.id +'&status='+ obj.data.status,
dataType: "json",
success: function (data) {
layer.msg(data.msg);
if (data.code == 0) {
table.reload('ZX_tab