+ bootstrap-table sort

This commit is contained in:
tix 2017-01-12 19:20:56 +08:00
parent 3d5a42acf1
commit 850f477feb
2 changed files with 12 additions and 3 deletions

View File

@ -1797,6 +1797,9 @@
</div>
</div>
<script type="text/javascript">
$.extend($.fn.bootstrapTable.columnDefaults, {
sortable: true
});
$('.bt_table').bootstrapTable({
url: '/api/gis/sjy_station_weather',
search: 'true',
@ -1817,13 +1820,16 @@
title: '所属行政区域'
}, {
field: 'longitude',
title: '经度'
title: '经度',
class: 'mdzz'
}, {
field: 'latitude',
title: '纬度'
title: '纬度',
class: 'mdzz'
}, {
field: 'altitude',
title: '海拔(米)'
title: '海拔(米)',
class: 'mdzz'
}]
});
</script>

View File

@ -30,6 +30,9 @@
$(this).parent().css("background-color", "#428bca");
}
});
$(window).on('resize', function () {
$('.bt_table').bootstrapTable('resetView');
});
});
</script>
<%- include('comm/footer.html') %>