标题
js里显示月份并且搜索的时候可选择月份
{ field: 'date', title: __('日期'), operate: '=', data:'data-date-format="YYYY-MM"', addclass:'datetimepicker' },
只写js样式会错乱,如图:
修改css样式
<style type="text/css">
.commonsearch-table .bootstrap-datetimepicker-widget .table-condensed{
position: relative !important;
width: 240px !important;
}
.commonsearch-table .bootstrap-datetimepicker-widget .table-condensed thead{
width: 240px !important;
height: 40px !important;
}
.commonsearch-table .bootstrap-datetimepicker-widget .table-condensed thead tr{
width: 240px !important;
position: absolute !important;
height: 50px !important;
}
.commonsearch-table .bootstrap-datetimepicker-widget .datepicker .table-condensed tbody tr td{
width: 240px !important;
display: flex !important;
flex-wrap: wrap !important;
height: auto !important;
}
.commonsearch-table .bootstrap-datetimepicker-widget .table-condensed .picker-switch{
width: 198px;
}
</style>`