|
@@ -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: '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}
|
|
|
]
|
|
|
]
|