check.html
5.37 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
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
141
142
143
144
145
146
147
148
149
150
151
<!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> 搜索</a>
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i
class="fa fa-refresh"></i> 重置</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>