|
@@ -22,24 +22,17 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
url: $.fn.bootstrapTable.defaults.extend.index_url,
|
|
url: $.fn.bootstrapTable.defaults.extend.index_url,
|
|
|
pk: 'id',
|
|
pk: 'id',
|
|
|
sortName: 'id',
|
|
sortName: 'id',
|
|
|
- fixedColumns: true,
|
|
|
|
|
- fixedRightNumber: 1,
|
|
|
|
|
columns: [
|
|
columns: [
|
|
|
[
|
|
[
|
|
|
{checkbox: true},
|
|
{checkbox: true},
|
|
|
{field: 'id', title: __('Id')},
|
|
{field: 'id', title: __('Id')},
|
|
|
{field: 'no', title: __('No'), operate: 'LIKE'},
|
|
{field: 'no', title: __('No'), operate: 'LIKE'},
|
|
|
{field: 'name', title: __('Name'), operate: 'LIKE'},
|
|
{field: 'name', title: __('Name'), operate: 'LIKE'},
|
|
|
|
|
+ {field: 'list_name', title: __('List_name'), operate: 'LIKE'},
|
|
|
{field: 'userid', title: __('Userid')},
|
|
{field: 'userid', title: __('Userid')},
|
|
|
- {field: 'pro_name', title: __('Pro_name'), operate: 'LIKE'},
|
|
|
|
|
- {field: 'params', title: __('Params'), operate: 'LIKE'},
|
|
|
|
|
- {field: 'standard', title: __('Standard'), operate: 'LIKE'},
|
|
|
|
|
- {field: 'max_character', title: __('Max_character'), operate: 'LIKE'},
|
|
|
|
|
- {field: 'max', title: __('Max'), operate: 'LIKE'},
|
|
|
|
|
- {field: 'min_character', title: __('Min_character'), operate: 'LIKE'},
|
|
|
|
|
- {field: 'min', title: __('Min'), operate: 'LIKE'},
|
|
|
|
|
- {field: 'create', title: __('Create'), operate:'RANGE', addclass:'datetimerange', autocomplete:false},
|
|
|
|
|
- {field: 'update', title: __('Update'), operate:'RANGE', addclass:'datetimerange', autocomplete:false},
|
|
|
|
|
|
|
+ {field: 'create', title: __('Create'), operate: 'LIKE'},
|
|
|
|
|
+ {field: 'update', title: __('Update'), operate: 'LIKE'},
|
|
|
|
|
+ {field: 'delete', title: __('Delete'), operate: 'LIKE'},
|
|
|
{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
|
|
{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
|
|
|
]
|
|
]
|
|
|
]
|
|
]
|
|
@@ -48,67 +41,6 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
// 为表格绑定事件
|
|
// 为表格绑定事件
|
|
|
Table.api.bindevent(table);
|
|
Table.api.bindevent(table);
|
|
|
},
|
|
},
|
|
|
- recyclebin: function () {
|
|
|
|
|
- // 初始化表格参数配置
|
|
|
|
|
- Table.api.init({
|
|
|
|
|
- extend: {
|
|
|
|
|
- 'dragsort_url': ''
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
-
|
|
|
|
|
- var table = $("#table");
|
|
|
|
|
-
|
|
|
|
|
- // 初始化表格
|
|
|
|
|
- table.bootstrapTable({
|
|
|
|
|
- url: 'item/judge/recyclebin' + location.search,
|
|
|
|
|
- pk: 'id',
|
|
|
|
|
- sortName: 'id',
|
|
|
|
|
- columns: [
|
|
|
|
|
- [
|
|
|
|
|
- {checkbox: true},
|
|
|
|
|
- {field: 'id', title: __('Id')},
|
|
|
|
|
- {field: 'name', title: __('Name'), align: 'left'},
|
|
|
|
|
- {
|
|
|
|
|
- field: 'deletetime',
|
|
|
|
|
- title: __('Deletetime'),
|
|
|
|
|
- operate: 'RANGE',
|
|
|
|
|
- addclass: 'datetimerange',
|
|
|
|
|
- formatter: Table.api.formatter.datetime
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- field: 'operate',
|
|
|
|
|
- width: '140px',
|
|
|
|
|
- title: __('Operate'),
|
|
|
|
|
- table: table,
|
|
|
|
|
- events: Table.api.events.operate,
|
|
|
|
|
- buttons: [
|
|
|
|
|
- {
|
|
|
|
|
- name: 'Restore',
|
|
|
|
|
- text: __('Restore'),
|
|
|
|
|
- classname: 'btn btn-xs btn-info btn-ajax btn-restoreit',
|
|
|
|
|
- icon: 'fa fa-rotate-left',
|
|
|
|
|
- url: 'item/judge/restore',
|
|
|
|
|
- refresh: true
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- name: 'Destroy',
|
|
|
|
|
- text: __('Destroy'),
|
|
|
|
|
- classname: 'btn btn-xs btn-danger btn-ajax btn-destroyit',
|
|
|
|
|
- icon: 'fa fa-times',
|
|
|
|
|
- url: 'item/judge/destroy',
|
|
|
|
|
- refresh: true
|
|
|
|
|
- }
|
|
|
|
|
- ],
|
|
|
|
|
- formatter: Table.api.formatter.operate
|
|
|
|
|
- }
|
|
|
|
|
- ]
|
|
|
|
|
- ]
|
|
|
|
|
- });
|
|
|
|
|
-
|
|
|
|
|
- // 为表格绑定事件
|
|
|
|
|
- Table.api.bindevent(table);
|
|
|
|
|
- },
|
|
|
|
|
-
|
|
|
|
|
add: function () {
|
|
add: function () {
|
|
|
Controller.api.bindevent();
|
|
Controller.api.bindevent();
|
|
|
},
|
|
},
|