+ table filterControl

This commit is contained in:
tix 2017-02-14 11:55:13 +08:00
parent c309cae61d
commit 151fbf3922
4 changed files with 9 additions and 11 deletions

View File

@ -313,13 +313,6 @@ span#login_widget > .button .badge,
} }
} }
@media (min-width:768px) {
select.form-control {
margin-left:12px;
margin-right:12px;
}
}
/*! /*!
* *
* IPython auth * IPython auth
@ -3706,3 +3699,5 @@ div#notebook {
overflow:visible; overflow:visible;
border-top:none; border-top:none;
} }
.filterControl .form-control { padding:0; }

File diff suppressed because one or more lines are too long

View File

@ -16,6 +16,7 @@
<script type="text/javascript" src="/lib/leaflet/leaflet.ChineseTmsProviders.js"></script> <script type="text/javascript" src="/lib/leaflet/leaflet.ChineseTmsProviders.js"></script>
<script type="text/javascript" src="/lib/bootstrap-table/bootstrap-table.min.js"></script> <script type="text/javascript" src="/lib/bootstrap-table/bootstrap-table.min.js"></script>
<script type="text/javascript" src="/lib/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script> <script type="text/javascript" src="/lib/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
<script type="text/javascript" src="/lib/bootstrap-table/extensions/filter-control/bootstrap-table-filter-control.min.js"></script>
<script type="text/javascript" src="/js/mod.js"></script> <script type="text/javascript" src="/js/mod.js"></script>

View File

@ -1596,6 +1596,7 @@
sidePagination: 'client', sidePagination: 'client',
pagination: 'true', pagination: 'true',
pageSize: '20', pageSize: '20',
filterControl: true,
columns: [{ columns: [{
field: 'admin_name', field: 'admin_name',
title: '所属市州' title: '所属市州'
@ -1604,7 +1605,8 @@
title: '评价单元' title: '评价单元'
}, { }, {
field: 'obs_year', field: 'obs_year',
title: '年份' title: '年份',
filterControl: 'select'
}, { }, {
field: 'biological_abundance', field: 'biological_abundance',
title: '生物丰度指数' title: '生物丰度指数'