...
|
...
|
@@ -22,21 +22,26 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin |
|
|
url: $.fn.bootstrapTable.defaults.extend.index_url,
|
|
|
pk: 'id',
|
|
|
sortName: 'id',
|
|
|
showToggle: false,//浏览模式功能关闭
|
|
|
showColumns: false,//显示隐藏列功能关闭
|
|
|
//commonSearch: false, //关闭通用搜索按钮
|
|
|
showExport: false,//导出功能关闭
|
|
|
clickToSelect: false, //是否启用点击选中
|
|
|
dblClickToEdit: false, //是否启用双击编辑
|
|
|
columns: [
|
|
|
[
|
|
|
{checkbox: true},
|
|
|
{field: 'id', title: __('Id')},
|
|
|
{field: 'title', title: __('Title'), operate: 'LIKE'},
|
|
|
{field: 'images', title: __('Images'), operate: false, events: Table.api.events.image, formatter: Table.api.formatter.images},
|
|
|
{field: 'is_url_text', title: __('Is_url'), searchList: {"0":__('Is_url 0'),"1":__('Is_url 1')}},
|
|
|
{field: 'url', title: __('Url'), operate: 'LIKE', formatter: Table.api.formatter.url},
|
|
|
// {field: 'details',title: '详情'},
|
|
|
{field: 'details', title: __('Details'), operate: false,
|
|
|
formatter : function(value, row, index, field){
|
|
|
return "<span style='display: block;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;' title='" + row.details + "'>" + value + "</span>";
|
|
|
},
|
|
|
cellStyle : function(value, row, index, field) {
|
|
|
return {
|
|
|
css: {
|
|
|
"white-space": "nowrap",
|
|
|
"text-overflow": "ellipsis",
|
|
|
"overflow": "hidden",
|
|
|
"max-width": "150px"
|
|
|
}
|
|
|
};
|
|
|
}},
|
|
|
{field: 'createtime', title: __('Createtime'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime},
|
|
|
{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
|
|
|
]
|
...
|
...
|
|