|
@@ -17,6 +17,14 @@ 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='gh_id']", form).addClass("selectpage").data("source", "gonghui/index").data("primaryKey", "id").data("field", "name").data("orderBy", "id asc");
|
|
|
+ Form.events.cxselect(form);
|
|
|
+ Form.events.selectpage(form);
|
|
|
+ });
|
|
|
+
|
|
|
// 初始化表格
|
|
|
table.bootstrapTable({
|
|
|
url: $.fn.bootstrapTable.defaults.extend.index_url,
|
|
@@ -77,7 +85,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
//{field: 'free_audio', title: __('Free_audio'), searchList: {"1":__('Free_audio 1'),"0":__('Free_audio 0')}, formatter: Table.api.formatter.normal},
|
|
|
//{field: 'free_typing', title: __('Free_typing'), searchList: {"1":__('Free_typing 1'),"0":__('Free_typing 0')}, formatter: Table.api.formatter.normal},
|
|
|
//{field: 'gonghui.id', title: __('Gonghui.id')},
|
|
|
- {field: 'gonghui.name', title: __('Gonghui.name'), operate: 'LIKE'},
|
|
|
+ {field: 'gonghui.name', title: __('Gonghui.name'), operate: false},
|
|
|
{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
|
|
|
]
|
|
|
]
|