sjy-ecos/views/inc/se_livestock_production_eff...

88 lines
1.9 KiB
Plaintext

<table data-toggle="table" class="bt_table_se_livestock_production_efficiency"></table>
<script type="text/javascript">
$.extend($.fn.bootstrapTable.columnDefaults, {
sortable: true
});
$('.bt_table_se_livestock_production_efficiency').bootstrapTable({
url: '/api/eco/sjy_se_livestock_production_efficiency',
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: 'percentage_of_live_piglets',
title: '仔畜育活百分比'
}, {
field: 'aberdeen',
title: '仔畜育活量'
}, {
field: 'net_increase_in_percentage',
title: '净增百分比'
}, {
field: 'net_increment',
title: '净增量'
}, {
field: 'percentage_of_deliveries',
title: '出栏百分比'
}, {
field: 'the_amount_of_slaughter',
title: '出栏量'
}, {
field: 'commodity_percentage',
title: '商品百分比'
}, {
field: 'commodity_volume',
title: '商品量'
}, {
field: 'total_percentage_increase',
title: '总增百分比'
}, {
field: 'total_increment',
title: '总增量'
}, {
field: 'percentage_of_dead_animals',
title: '成畜死亡百分比'
}, {
field: 'adult_mortality',
title: '成畜死亡量'
}, {
field: 'household_name',
title: '户名'
}, {
field: 'percentage_of_daughters',
title: '母畜繁活百分比'
}, {
field: 'daughters',
title: '母畜繁活量'
}, {
field: 'breeding_herd_number',
title: '繁殖母畜数'
}, {
field: 'percentage_of_breeding_stock',
title: '繁殖母畜百分比'
}]
});
</script>