sjy-ecos/views/inc/se_basic.ejs

76 lines
1.5 KiB
Plaintext

<table data-toggle="table" class="bt_table_basic"></table>
<script type="text/javascript">
$.extend($.fn.bootstrapTable.columnDefaults, {
sortable: true
});
$('.bt_table_basic').bootstrapTable({
url: '/api/eco/sjy_se_basic',
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_industries',
title: '其它行业'
}, {
field: 'agricultural_population',
title: '农业人口'
}, {
field: 'the_total_land_area',
title: '土地总面积'
}, {
field: 'processing_project',
title: '实施项目'
}, {
field: 'industry_construction',
title: '工业、建筑业'
}, {
field: 'total_population',
title: '总人口'
}, {
field: 'total_labor_force',
title: '总劳动力'
}, {
field: 'household_name',
title: '户名'
}, {
field: 'households',
title: '户数'
}, {
field: 'animal_husbandry_population',
title: '牧业人口'
}, {
field: 'animal_husbandry',
title: '畜牧业'
}, {
field: 'crop_farming',
title: '种植业'
}, {
field: 'number_of_administrative_villages',
title: '行政村数'
}]
});
</script>