64 lines
1.4 KiB
Plaintext
64 lines
1.4 KiB
Plaintext
<table data-toggle="table" class="bt_table_grazing_prohibition"></table>
|
|
|
|
<script type="text/javascript">
|
|
$.extend($.fn.bootstrapTable.columnDefaults, {
|
|
sortable: true
|
|
});
|
|
$('.bt_table_grazing_prohibition').bootstrapTable({
|
|
url: '/api/eco/sjy_se_grazing_prohibition',
|
|
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: 'degraded_grassland_area',
|
|
title: '中度以上退化草地面积'
|
|
}, {
|
|
field: 'township_name',
|
|
title: '乡名称'
|
|
}, {
|
|
field: 'household_name',
|
|
title: '户名'
|
|
}, {
|
|
field: 'cattle_by_livestock',
|
|
title: '牛减畜量'
|
|
}, {
|
|
field: 'sheep_by_the_amount_of_livestock',
|
|
title: '羊减畜量'
|
|
}, {
|
|
field: 'grassland_available_area',
|
|
title: '草地可利用面积'
|
|
}, {
|
|
field: 'grassland_grazing_area',
|
|
title: '草地禁牧面积'
|
|
}, {
|
|
field: 'the_main_reason_for_grassland_degradation',
|
|
title: '草地退化主要原因'
|
|
}, {
|
|
field: 'grassland_area',
|
|
title: '草地面积'
|
|
}, {
|
|
field: 'balanced_area_of_grass_and_livestock',
|
|
title: '草畜平衡面积'
|
|
}]
|
|
});
|
|
|
|
</script> |