双重预防项目-国泰新华二开定制版
heheng
2025-06-24 e98eeaaa5766511fdb8e6d5e412eb1c59d1f07ce
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
<!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 search-collapse">
            <form id="formId">
                <input type="hidden" th:value="${userId}" id="userId" name="userId">
                <div class="select-list">
                    <ul>
                        <li>
                            <label>公司名称:</label>
                            <input type="text" name="companyName"/>
                        </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">
        </div>
        <div class="col-sm-12 select-table table-striped">
            <table id="bootstrap-table"></table>
        </div>
    </div>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
    var prefix = ctx + "tr/dataStatisticsByApp";
 
    $(function() {
        var options = {
            url: prefix + "/list",
            exportUrl: prefix + "/export",
            modalName: "数据统计",
            columns: [
                {
                    field: 'companyId',
                    title: '公司ID',
                    halign: "center",
                    align: "center",
                    visible: false
                },
                {
                    field: 'number',
                    title: '序号',
                    width:5 ,
                    align:'center',
                    switchable:false,
                    formatter:function(value,row,index){
                        //通过表的#id 可以得到每页多少条
                        var pageSize=$('#bootstrap-table').bootstrapTable('getOptions').pageSize;
                        //通过表的#id 可以得到当前第几页
                        var pageNumber=$('#bootstrap-table').bootstrapTable('getOptions').pageNumber;
                        //返回每条的序号: 每页条数 * (当前页 - 1 )+ 序号
                        return pageSize * (pageNumber - 1) + index + 1;
                    }
                },
                {
                    field: 'companyName',
                    title: '公司名称',
                    halign: "center",
                    align: "center"
                },
                {
                    field: 'seriesRiskCount',
                    title: '重大风险',
                    halign: "center",
                    align: "center"
                },
                {
                    field: 'middleRiskCount',
                    title: '较大风险',
                    halign: "center",
                    align: "center"
                },
                {
                    field: 'normalRiskCount',
                    title: '一般风险',
                    halign: "center",
                    align: "center"
                },
                {
                    field: 'lowRiskCount',
                    title: '低风险',
                    halign: "center",
                    align: "center"
                },
                {
                    field: 'thisMonthHighDangerCount',
                    title: '当月重大隐患',
                    halign: "center",
                    align: "center"
                },
                {
                    field: 'thisMonthNormalDangerCount',
                    title: '当月一般隐患',
                    halign: "center",
                    align: "center"
                },
                {
                    field: 'unRectifyDangerCount',
                    title: '未整改隐患',
                    halign: "center",
                    align: "center"
                },
                {
                    field: 'dangerRectifyPercent',
                    title: '隐患整改率',
                    halign: "center",
                    align: "center"
                },
                {
                    title: '操作',
                    align: 'center',
                    formatter: function(value, row, index) {
                        var actions = [];
                        actions.push('<a class="btn btn-info btn-xs" href="https://lhaxsyf.com/tr/dataStatisticsByApp/dangerPlanExecuteByCompanyId/'+row.companyId+'"><i class="fa fa-pencil"></i>排查计划</a> ');
                        actions.push('<a class="btn btn-success btn-xs" href="https://lhaxsyf.com/tr/dataStatisticsByApp/dangerScheduleByCompanyId/'+row.companyId+'"><i class="fa fa-diamond"></i>定时隐患排查</a> ');
                        actions.push('<a class="btn btn-warning btn-xs" href="https://lhaxsyf.com/tr/dataStatisticsByApp/dangerLedgerListByCompanyId/'+row.companyId+'"><i class="fa fa-bars"></i>隐患台账</a> ');
                        actions.push('<a class="btn btn-info btn-xs" href="https://lhaxsyf.com/tr/dataStatisticsByApp/riskCheckPoint/ledger/'+row.companyId+'"><i class="fa fa-info"></i>风险台账</a> ');
                        actions.push('<a class="btn btn-success btn-xs" href="https://lhaxsyf.com/tr/dataStatisticsByApp/articleByCompanyId/'+row.companyId+'"><i class="fa fa-folder"></i>管理制度</a> ');
                        actions.push('<a class="btn btn-danger btn-xs" href="https://lhaxsyf.com/tr/dataStatisticsByApp/articleRegulationByCompanyId/'+row.companyId+'"><i class="fa fa-gavel"></i>法律法规</a> ');
                        return actions.join('');
                    }
                }
            ]
        };
        $.table.init(options);
    });
</script>
</body>
</html>