<!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('组合表头')"/>
</head>
<body class="gray-bg">
<div class="container-div">
    <div class="row">
        <div class="col-sm-12 select-table table-bordered">
            <table id="bootstrap-table"></table>
        </div>
    </div>
</div>
<div th:include="include :: footer"></div>
<script th:inline="javascript">
    var prefix = ctx + "report";
    var datas = [[${@dict.getType('sys_normal_disable')}]];

    $(function () {
        var options = {
            url: prefix + "/one",
            showSearch: false,
            showRefresh: false,
            showToggle: false,
            showColumns: false,
            pagination: false,
            columns: [
                [
                    {
                        title: '汇总信息',
                        align: 'center',
                        colspan: 9
                    }
                ],
                [
                    {
                        title: '非公企业/个体户名称',
                        field: 'areaName'
                    },{
                        title: '非公企业/个体户党组织名称',
                        field: 'areaName'
                    }, {
                        title: '',
                        formatter: function(value, row, index) {
                            console.log(value, row, '1-0222353')
                            if(row%4==1){
                                return  "法人代表";
                            }else if(row%4==2){
                                return  "党组织书记";
                            }else if(row%4==3){
                                return  "党组织班子成员";
                            }else if(row%4==0){
                                return  "党务工作者";
                            }
                        }
                    }, {
                        title: '姓名',
                        formatter: function(value, row, index) {
                            // if(row%4==1){
                            //     return  field: "shzzxm";
                            // }else if(row%4==2){
                            //     return  field: "dzzsjxm";
                            // }else if(row%4==3){
                            //     return  "党组织班子成员";
                            // }else if(row%4==0){
                            //     return  "党务工作者";
                            // }
                        }
                    }, {
                        title: '党内职务'

                    }, {
                        title: '行政职务'
                    }, {
                        title: '联系方式'
                    }, {
                        title: '政治面貌'
                    }, {
                        title: '政治待遇'
                    }
                ]
            ]
        };
        $.table.init(options);
    });
</script>
</body>
</html>
