black.html
3.7 KB
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
<!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-striped">
<table id="bootstrap-table"></table>
</div>
</div>
</div>
<div th:include="include :: footer"></div>
<script th:inline="javascript">
var prefix = ctx + "business/info";
var entityId = [[${entityId}]];
var subTypeDatas = [[${@dict.getType('eit_black_list_type')}]];
$(function() {
var options = {
url: prefix + "/black/list/" + entityId,
showSearch: false,
showRefresh: false,
showToggle: false,
showColumns: false,
detailView: true,
detailFormatter: detailFormatter,
columns: [{
checkbox: false
},
{
field: 'id',
title: '自增id',
visible: false
},
{
field: 'subType',
title: '红名单类型',
formatter: function(value, row, index) {
return $.table.selectDictLabel(subTypeDatas, value);
}
},
{
field: 'enterpriseName',
title: '企业名称'
},
{
field: 'legalRepresentativeName',
title: '法定代表人姓名'
},
{
field: 'creditCode',
title: '统一社会信用代码'
},
{
field: 'recognitionDate',
title: '认定日期'
},
{
field: 'validityPeriod',
title: '有效期'
}]
};
$.table.init(options);
});
const showMap = new Map();
showMap.set('subType', '黑名单类型');
showMap.set('regulatoryArea', '监管领域');
showMap.set('economicIndustryClassification', '国民经济行业分类');
showMap.set('enterpriseName', '企业名称');
showMap.set('legalRepresentativeName', '法定代表人姓名');
showMap.set('creditCode', '统一社会信用代码');
showMap.set('registerCode', '工商注册登记号');
showMap.set('creditworthyBehavior', '违法失信行为');
showMap.set('awardsReceived', '处罚结果');
showMap.set('recognitionDepartment', '认定部门');
showMap.set('recognitionBasis', '认定依据');
showMap.set('recognitionDate', '认定日期');
showMap.set('validityPeriod', '有效期');
function detailFormatter(index, row) {
var html = [];
$.each(row, function(key, value) {
var showKey = showMap.get(key);
if (showKey) {
if (key == 'subType') {
value = $.table.selectDictLabel(subTypeDatas, value);
}
html.push('<pre><b style="width: 250px;display: inline-block;text-align: right;">' + showKey + ':</b> ' + value + '</pre>');
}
});
return html.join('');
}
</script>
</body>
</html>