...
|
...
|
@@ -20,13 +20,13 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'template', 'litestor |
|
|
var table = $("#table");
|
|
|
table.on('post-common-search.bs.table', function (event, table) {
|
|
|
var form = $("form", table.$commonsearch);
|
|
|
$("input[name='category_id']", form).addClass("selectpage").data("source", "litestore/litestorecategory/index").data("primaryKey", "id").data("field", "name").data("orderBy", "id desc").data("pageSize",1);
|
|
|
$("input[name='category_id']", form).addClass("selectpage").data("source", "litestore/litestorecategory/index").data("primaryKey", "id").data("field", "name").data("orderBy", "id asc").data("pageSize",20);
|
|
|
Form.events.cxselect(form);
|
|
|
Form.events.selectpage(form);
|
|
|
});
|
|
|
table.on('post-common-search.bs.table', function (event, table) {
|
|
|
var form = $("form", table.$commonsearch);
|
|
|
$("input[name='activity_id']", form).addClass("selectpage").data("source", "activity/index").data("primaryKey", "id").data("field", "name").data("orderBy", "id desc").data("pageSize",1);
|
|
|
$("input[name='activity_id']", form).addClass("selectpage").data("source", "activity/index").data("primaryKey", "id").data("field", "name").data("orderBy", "id asc").data("pageSize",20);
|
|
|
Form.events.cxselect(form);
|
|
|
Form.events.selectpage(form);
|
|
|
});
|
...
|
...
|
@@ -45,7 +45,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'template', 'litestor |
|
|
{field: 'goods_name', title: __('Goods_name'), operate: 'LIKE'},
|
|
|
{field: 'keywords', title: __('Keywords'), operate: 'LIKE'},
|
|
|
{field: 'category.name', title: __('Category.name'), operate: false},
|
|
|
{field: 'activity.name', title: __('Activity.name'), operate: 'LIKE'},
|
|
|
{field: 'activity.name', title: __('Activity.name'), operate: false},
|
|
|
{field: 'category_id', visible: false, title: __('Category_id'),operate: 'LIKE %...%'},
|
|
|
{field: 'activity_id', visible: false, title: __('Activity_id'),operate: 'LIKE %...%'},
|
|
|
{field: 'image', title: __('Image'), formatter: Table.api.formatter.image},
|
...
|
...
|
|