|
@@ -33,7 +33,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
sortName: 'id',
|
|
sortName: 'id',
|
|
columns: [
|
|
columns: [
|
|
[
|
|
[
|
|
- {checkbox: true},
|
|
|
|
|
|
+// {checkbox: true},
|
|
{field: 'id', title: __('Id')},
|
|
{field: 'id', title: __('Id')},
|
|
{field: 'user_id', title: __('User_id')},
|
|
{field: 'user_id', title: __('User_id')},
|
|
{field: 'user.username', title: __('User.username'), operate: 'LIKE'},
|
|
{field: 'user.username', title: __('User.username'), operate: 'LIKE'},
|
|
@@ -54,6 +54,11 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
|
|
|
// 为表格绑定事件
|
|
// 为表格绑定事件
|
|
Table.api.bindevent(table);
|
|
Table.api.bindevent(table);
|
|
|
|
+
|
|
|
|
+ // 启动和暂停按钮
|
|
|
|
+ $(document).on("click", ".btn-batchdelete", function () {
|
|
|
|
+ Fast.api.open('giftbaobilog/batchdelete','批量删除');
|
|
|
|
+ });
|
|
},
|
|
},
|
|
add: function () {
|
|
add: function () {
|
|
Controller.api.bindevent();
|
|
Controller.api.bindevent();
|
|
@@ -61,6 +66,9 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
edit: function () {
|
|
edit: function () {
|
|
Controller.api.bindevent();
|
|
Controller.api.bindevent();
|
|
},
|
|
},
|
|
|
|
+ batchdelete: function () {
|
|
|
|
+ Form.api.bindevent($("form[role=form]"));
|
|
|
|
+ },
|
|
api: {
|
|
api: {
|
|
bindevent: function () {
|
|
bindevent: function () {
|
|
Form.api.bindevent($("form[role=form]"));
|
|
Form.api.bindevent($("form[role=form]"));
|