...
|
...
|
@@ -5,7 +5,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin |
|
|
// 初始化表格参数配置
|
|
|
Table.api.init({
|
|
|
extend: {
|
|
|
index_url: 'goods_msg/index' + location.search,
|
|
|
index_url: 'goods_msg/index/ids/' + Config.ids + location.search,
|
|
|
// add_url: 'goods_msg/add',
|
|
|
// edit_url: 'goods_msg/edit',
|
|
|
del_url: 'goods_msg/del',
|
...
|
...
|
@@ -25,14 +25,10 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin |
|
|
[
|
|
|
{checkbox: true},
|
|
|
{field: 'id', title: __('Id')},
|
|
|
{field: 'user_id', title: __('User_id')},
|
|
|
{field: 'goods_id', title: __('Goods_id')},
|
|
|
{field: 'store_id', title: __('Store_id')},
|
|
|
{field: 'user.nickname', title: __('User.nickname')},
|
|
|
{field: 'content', title: __('Content')},
|
|
|
{field: 'mobile', title: __('Mobile')},
|
|
|
{field: 'createtime', title: __('Createtime'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime},
|
|
|
{field: 'updatetime', title: __('Updatetime'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime},
|
|
|
{field: 'user.nickname', title: __('User.nickname')},
|
|
|
{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
|
|
|
]
|
|
|
]
|
...
|
...
|
@@ -41,12 +37,12 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin |
|
|
// 为表格绑定事件
|
|
|
Table.api.bindevent(table);
|
|
|
},
|
|
|
// add: function () {
|
|
|
// Controller.api.bindevent();
|
|
|
// },
|
|
|
// edit: function () {
|
|
|
// Controller.api.bindevent();
|
|
|
// },
|
|
|
add: function () {
|
|
|
Controller.api.bindevent();
|
|
|
},
|
|
|
edit: function () {
|
|
|
Controller.api.bindevent();
|
|
|
},
|
|
|
api: {
|
|
|
bindevent: function () {
|
|
|
Form.api.bindevent($("form[role=form]"));
|
...
|
...
|
|