61 lines
1.3 KiB
Plaintext
61 lines
1.3 KiB
Plaintext
<table data-toggle="table" class="bt_table_grassland_construction"></table>
|
|
|
|
<script type="text/javascript">
|
|
$.extend($.fn.bootstrapTable.columnDefaults, {
|
|
sortable: true
|
|
});
|
|
$('.bt_table_grassland_construction').bootstrapTable({
|
|
url: '/api/eco/sjy_se_grassland_construction',
|
|
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: 'pasture_fence',
|
|
title: '草场围栏'
|
|
}, {
|
|
field: 'artificial_grass',
|
|
title: '人工种草'
|
|
}, {
|
|
field: 'pasture_fertilization',
|
|
title: '草场施肥'
|
|
}, {
|
|
field: 'grassland_complement_broadcast',
|
|
title: '草场补播'
|
|
}, {
|
|
field: 'rodent_control',
|
|
title: '鼠害防治'
|
|
}, {
|
|
field: 'pest_control',
|
|
title: '虫害防治'
|
|
}, {
|
|
field: 'poisonous_weed_elimination',
|
|
title: '毒杂草灭除'
|
|
}, {
|
|
field: 'drinking_water_projects',
|
|
title: '人畜饮水工程'
|
|
}]
|
|
});
|
|
|
|
</script> |