作者 xwp
1 个管道 的构建 通过 耗费 0 秒

排序调试

... ... @@ -10,6 +10,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
edit_url: 'course/edit',
del_url: 'course/del',
multi_url: 'course/multi',
dragsort_url: 'ajax/weigh',
table: 'course',
}
});
... ... @@ -20,7 +21,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
table.bootstrapTable({
url: $.fn.bootstrapTable.defaults.extend.index_url,
pk: 'id',
sortName: 'id',
sortName: 'weigh',
search: true,
showExport: false,
commonSearch: false,
... ... @@ -30,7 +31,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
columns: [
[
{checkbox: true},
{field: 'id', title: __('Id'),sortable: true},
{field: 'id', title: __('Id')},
{field: 'name', title: __('Name'),sortable: true},
{field: 'category.name', title: __('Category_id'),sortable: true},
{field: 'level.name', title: __('Level_id'),sortable: true},
... ...
... ... @@ -10,6 +10,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
edit_url: 'product/edit',
del_url: 'product/del',
multi_url: 'product/multi',
dragsort_url: 'ajax/weigh',
table: 'product',
}
});
... ... @@ -20,7 +21,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
table.bootstrapTable({
url: $.fn.bootstrapTable.defaults.extend.index_url,
pk: 'id',
sortName: 'id',
sortName: 'weigh',
search: true,
showExport: false,
commonSearch: false,
... ... @@ -30,7 +31,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
columns: [
[
{checkbox: true},
{field: 'id', title: __('Id'),sortable: true},
{field: 'id', title: __('Id')},
{field: 'name', title: __('Name'),sortable: true},
{field: 'sub_name', title: __('Sub_name'),sortable: true},
{field: 'dateCount', title: __('Datecount'),sortable: true},
... ...