...
|
...
|
@@ -18,7 +18,18 @@ 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);
|
|
|
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);
|
|
|
Form.events.cxselect(form);
|
|
|
Form.events.selectpage(form);
|
|
|
});
|
|
|
// 初始化表格
|
|
|
table.bootstrapTable({
|
|
|
url: $.fn.bootstrapTable.defaults.extend.index_url,
|
...
|
...
|
@@ -33,9 +44,10 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'template', 'litestor |
|
|
{field: 'goods_id', title: __('Goods_id')},
|
|
|
{field: 'goods_name', title: __('Goods_name'), operate: 'LIKE'},
|
|
|
{field: 'keywords', title: __('Keywords'), operate: 'LIKE'},
|
|
|
{field: 'category.name', title: __('Category.name'), operate: 'LIKE'},
|
|
|
{field: 'category.name', title: __('Category.name'), operate: false},
|
|
|
{field: 'activity.name', title: __('Activity.name'), operate: 'LIKE'},
|
|
|
// {field: 'category_id', visible: false, title: __('Category_id')},
|
|
|
{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},
|
|
|
{field: 'images', title: __('Images'), formatter: Table.api.formatter.images},
|
|
|
{
|
...
|
...
|
|