...
|
...
|
@@ -17,6 +17,15 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin |
|
|
|
|
|
var table = $("#table");
|
|
|
|
|
|
//顶部搜索栏
|
|
|
table.on('post-common-search.bs.table', function (event, table) {
|
|
|
var form = $("form", table.$commonsearch);
|
|
|
//类型名称
|
|
|
$("input[name='title']", form).addClass("selectpage").data("source", "activity/index").data("primaryKey", "id").data("field", "title").data("orderBy", "id desc");
|
|
|
Form.events.cxselect(form);
|
|
|
Form.events.selectpage(form);
|
|
|
});
|
|
|
|
|
|
// 初始化表格
|
|
|
table.bootstrapTable({
|
|
|
url: $.fn.bootstrapTable.defaults.extend.index_url,
|
...
|
...
|
@@ -31,7 +40,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin |
|
|
columns: [
|
|
|
[
|
|
|
{checkbox: true},
|
|
|
{field: 'id', title: __('Id')},
|
|
|
{field: 'id', title: __('ID'), operate: false},
|
|
|
{field: 'title', title: __('Title'), operate: 'LIKE'},
|
|
|
{field: 'images', title: __('Images'), operate: false, events: Table.api.events.image, formatter: Table.api.formatter.images},
|
|
|
{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
|
...
|
...
|
|