|
@@ -21,14 +21,16 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
table.bootstrapTable({
|
|
table.bootstrapTable({
|
|
url: $.fn.bootstrapTable.defaults.extend.index_url,
|
|
url: $.fn.bootstrapTable.defaults.extend.index_url,
|
|
pk: 'id',
|
|
pk: 'id',
|
|
- sortName: 'id',
|
|
|
|
|
|
+ sortName: 'weigh',
|
|
columns: [
|
|
columns: [
|
|
[
|
|
[
|
|
{checkbox: true},
|
|
{checkbox: true},
|
|
{field: 'id', title: __('Id')},
|
|
{field: 'id', title: __('Id')},
|
|
{field: 'paper_id', title: __('Paper_id')},
|
|
{field: 'paper_id', title: __('Paper_id')},
|
|
- {field: 'kind', title: __('Kind'), searchList: {"SINGLE":__('Single'),"MULTI":__('Multi')}, formatter: Table.api.formatter.normal},
|
|
|
|
|
|
+ {field: 'kind', title: __('Kind'), searchList: {"SINGLE":__('Kind single'),"MULTI":__('Kind multi')}, formatter: Table.api.formatter.normal},
|
|
{field: 'title', title: __('Title'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
|
|
{field: 'title', title: __('Title'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
|
|
|
|
+ {field: 'status', title: __('Status'), searchList: {"1":__('Status 1'),"0":__('Status 0')}, formatter: Table.api.formatter.status},
|
|
|
|
+ {field: 'weigh', title: __('Weigh'), operate: false},
|
|
{field: 'paper.name', title: __('Paper.name'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
|
|
{field: 'paper.name', title: __('Paper.name'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
|
|
{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}
|
|
]
|
|
]
|