...
|
...
|
@@ -17,17 +17,6 @@ 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='campus.title']", form).addClass("selectpage").data("source", "campus/index").data("primaryKey", "id").data("field", "title").data("orderBy", "id desc");
|
|
|
//$("input[name='activity.title']", form).addClass("selectpage").data("source", "activity/index").data("primaryKey", "id").data("field", "title").data("orderBy", "id desc");
|
|
|
$("input[name='title']", form).addClass("selectpage").data("source", "item/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,
|
...
|
...
|
|