0
点赞
收藏
分享

微信扫一扫

fastadmin 按月份搜索

Gaaidou 2024-05-14 阅读 10

标题

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>`

举报

相关推荐

0 条评论