|
@@ -21,13 +21,14 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
table.bootstrapTable({
|
|
|
url: $.fn.bootstrapTable.defaults.extend.index_url,
|
|
|
pk: 'id',
|
|
|
- sortName: 'id',
|
|
|
+ sortName: 'weigh',
|
|
|
columns: [
|
|
|
[
|
|
|
{checkbox: true},
|
|
|
{field: 'id', title: __('Id')},
|
|
|
- {field: 'classname', title: __('Classname'), operate: 'LIKE'},
|
|
|
{field: 'school_id', title: __('School_id')},
|
|
|
+ {field: 'classname', title: __('Classname'), operate: 'LIKE'},
|
|
|
+ {field: 'weigh', title: __('Weigh'), operate: false},
|
|
|
{field: 'school.schoolname', title: __('School.schoolname'), operate: 'LIKE'},
|
|
|
{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
|
|
|
]
|