73 lines
1.3 KiB
Plaintext
73 lines
1.3 KiB
Plaintext
<table data-toggle="table" class="bt_table_animal_products"></table>
|
|
|
|
<script type="text/javascript">
|
|
$.extend($.fn.bootstrapTable.columnDefaults, {
|
|
sortable: true
|
|
});
|
|
$('.bt_table_animal_products').bootstrapTable({
|
|
url: '/api/eco/sjy_se_animal_products',
|
|
search: 'true',
|
|
showRefresh: 'true',
|
|
showToggle: 'true',
|
|
showColumns: 'true',
|
|
sidePagination: 'client',
|
|
pagination: 'true',
|
|
pageSize: '30',
|
|
/*queryParamsType: function queryParams() {
|
|
return {
|
|
type: 'owner',
|
|
sort: 'updated',
|
|
direction: 'desc',
|
|
per_page: 2,
|
|
page: 2
|
|
}
|
|
},*/
|
|
columns: [{
|
|
field: 'county',
|
|
title: '地点'
|
|
}, {
|
|
field: 'obs_year',
|
|
title: '年份'
|
|
}, {
|
|
field: 'township_name',
|
|
title: '乡名称'
|
|
}, {
|
|
field: 'milk',
|
|
title: '奶类'
|
|
}, {
|
|
field: 'cashmere',
|
|
title: '山羊绒'
|
|
}, {
|
|
field: 'household_name',
|
|
title: '户名'
|
|
}, {
|
|
field: 'wool_class_total',
|
|
title: '毛类合计'
|
|
}, {
|
|
field: 'cattle_plush',
|
|
title: '牛毛绒'
|
|
}, {
|
|
field: 'leather',
|
|
title: '牛皮'
|
|
}, {
|
|
field: 'beef',
|
|
title: '牛肉'
|
|
}, {
|
|
field: 'total_hides',
|
|
title: '皮张合计'
|
|
}, {
|
|
field: 'wool',
|
|
title: '羊毛'
|
|
}, {
|
|
field: 'sheepskin',
|
|
title: '羊皮'
|
|
}, {
|
|
field: 'lamb',
|
|
title: '羊肉'
|
|
}, {
|
|
field: 'meat_total',
|
|
title: '肉类合计'
|
|
}]
|
|
});
|
|
|
|
</script> |