check.html 5.37 KB
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('行政处罚台账查询')"/>
    <th:block th:include="include :: bootstrap-editable-css" />
</head>
<body class="gray-bg">
<div class="container-div">
    <div class="row">
        <div class="col-sm-12 search-collapse">
            <form id="formId">
                <input name="revertFlag" th:value="${revertFlag}" type="hidden">
                <div class="select-list">

                    <ul>
                        <li class="select-time">
                            <label>报送日期: </label>
                            <input type="text" class="time-input" name="reportTimeBegin" placeholder="开始时间" />
                            <span>-</span>
                            <input type="text" class="time-input" name="reportTimeEnd" placeholder="结束时间" />
                        </li>
                        <li>
                            <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i
                                    class="fa fa-search"></i>&nbsp;搜索</a>
                            <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i
                                    class="fa fa-refresh"></i>&nbsp;重置</a>
                        </li>
                    </ul>
                </div>
            </form>
        </div>

        <div class="btn-group-sm" id="toolbar" role="group">
            <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="business:publicity:export">
                <i class="fa fa-download"></i> 导出Excel
            </a>
        </div>
        <div class="col-sm-12 select-table table-striped">
            <table id="bootstrap-table"></table>
        </div>
    </div>
</div>
<th:block th:include="include :: footer"/>
<th:block th:include="include :: bootstrap-table-editable-js" />
<script th:inline="javascript">
    // var uploadExcelFlag = [[${@permission.hasPermi('business:publicity:uploadReport')}]];

    var yesNoStatusDatas = [[${@dict.getEnum('yes_no_type')}]];

    var prefix = ctx + "business/publicity/report";

    $(function () {
        var options = {
            url: prefix + "/check/list/xzcf",
            detailUrl: prefix + "/detail/{id}",
            exportUrl: prefix + "/export/xzcf",
            modalName: "行政处罚台账",
            pageSize: 30,
            onEditableSave: onEditableSave,
            columns: [{
                checkbox: true
                },
                {
                    field: 'pubId',
                    visible: false
                },
                {
                    field: 'counterpartName',
                    title: '行政相对人名称'
                },
                {
                    field: 'decisionSequence',
                    title: '行政处罚决定书文号'
                },
                {
                    field: 'sequenceDes',
                    title: '文书不连号简要<span class="fa fa-question-circle-o" title="请说明原因,未结案、未使用、文书号占用、撤案、不予处罚、不予公示,或其他原因"></span>',
                    editable: true
                }
                /**
                {
                    field: 'decisionTime',
                    title: '处罚决定日期'
                },
                {
                    field: 'uploadTime',
                    title: '推送北京时间'
                },
                {
                    field: 'uploadStatus',
                    title: '推送北京状态'
                },
                {
                    field: 'sevenDay',
                    title: '7日内公示'
                },
                {
                    field: 'twentyDay',
                    title: '20日内报送'
                },
                {
                    field: 'recoverStatus',
                    title: '是否修复',
                    formatter: function(value, row, index) {
                        return $.table.selectDictLabel(yesNoStatusDatas, value);
                    }
                }*/
                 ]
        };
        $.table.init(options);
    });


    $("input[name='createTimeBegin']").datetimepicker({
        format: "yyyy-mm-dd HH:mm:ss",
        minView: "month",
        autoclose: true
    });

    $("input[name='createTimeEnd']").datetimepicker({
        format: "yyyy-mm-dd HH:mm:ss",
        minView: "month",
        autoclose: true
    });

    function onEditableSave (field, row, rowIndex, oldValue, $el) {
        var paramValue = row[field];
        if (!paramValue) {
            $.modal.alertWarning('不连号说明不能为空');
            row[field] = oldValue;
            return;
        }
        paramValue = $.trim(paramValue);
        if (paramValue.length > 200) {
            $.modal.alertWarning('不连号说明不能超过30个字符');
            row[field] = oldValue;
            return;
        }
        if (paramValue.length <= 2) {
            $.modal.alertWarning('不连号说明不能小于3个字符');
            row[field] = oldValue;
            return;
        }
        var param = {"pubId":row['pubId'], "sequenceDes": paramValue};
        $.operate.save(ctx + "business/publicity/modify", param);
    }


</script>
</body>
</html>