sjy-ecos/views/inc/se_herbivorous_livestock.ejs

79 lines
1.4 KiB
Plaintext
Raw Normal View History

2017-02-08 10:58:18 +00:00
<table data-toggle="table" class="bt_table_herbivorous_livestock"></table>
<script type="text/javascript">
$.extend($.fn.bootstrapTable.columnDefaults, {
sortable: true
});
$('.bt_table_herbivorous_livestock').bootstrapTable({
url: '/api/eco/sjy_se_herbivorous_livestock',
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: 'other',
title: '其它'
}, {
field: 'total',
title: '合计'
}, {
field: 'goat',
title: '山羊'
}, {
field: 'household_name',
title: '户名'
}, {
field: 'improved_sheep',
title: '改良羊'
}, {
field: 'cattle',
title: '牛'
}, {
field: 'yak',
title: '牦牛'
}, {
field: 'sheep',
title: '羊'
}, {
field: 'tibetan_sheep',
title: '藏羊'
}, {
field: 'horse',
title: '马'
}, {
field: 'donkey',
title: '驴'
}, {
field: 'camel',
title: '骆驼'
}, {
field: 'mule',
title: '骡'
}, {
field: 'yellow_cattle',
title: '黄牛'
}]
});
</script>