+ bootstrap-table sort
This commit is contained in:
parent
3d5a42acf1
commit
850f477feb
|
@ -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>
|
|
@ -30,6 +30,9 @@
|
|||
$(this).parent().css("background-color", "#428bca");
|
||||
}
|
||||
});
|
||||
$(window).on('resize', function () {
|
||||
$('.bt_table').bootstrapTable('resetView');
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<%- include('comm/footer.html') %>
|
Loading…
Reference in New Issue