{field: 'id', title: 'ID',width:100},
{field: 'subtitle', title: __('Title'), operate: 'LIKE'},
{field: 'addtime', title: __('Addtime'), operate:'RANGE', addclass:'datetimerange', autocomplete:false},
{field: 'status', title:'是否启用',custom: {success: 'success', failure: 'danger'},searchList: {1: '正常', 0: '关闭'},formatter: function (value, row, index) {
return Table.api.formatter.toggle.call(this, value, row, index);
}},
{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: function(value,row,index){
area = '';
if(row.type!=1){
area = 'data-area=["90%","100%"]';
}
return ' <a href="/index/edit/mid/'+row.id+'/" '+area+' class="btn btn-xs btn-primary btn-dialog" title="编辑" ><i class="fa fa-cloud-download"></i> 编辑</a>\
<a class="btn btn-xs btn-danger btn-delone" onclick=delCheck('+row.id+')" data-toggle="tooltip" title="" data-table-id="table" data-field-index="15" data-row-index="0" data-button-index="2" data-original-title="删除">删除</a>';
}}
<input data-rule="range(0~25)" class="form-control" name="row[space]" type="number" value="{$row ? $row.subtitle_space : '0'}" placeholder="字体大小,建议:0">
上一篇:php Trying to access array offset on null
下一篇:没有了