+
@@ -71,54 +73,55 @@
removeUrl: prefix + "/remove",
exportUrl: prefix + "/export",
modalName: "执法预警列表",
- showHeader: false,
+ showHeader: true,
showFooter: false,
showColumns: false,
showRefresh: false,
showToggle: false,
+ pagination: true,
+ pageSize: 10,
+ pageList: [10, 25, 50],
columns: [
- {
- field : 'id',
- title : '主键ID',
- visible: false
- },
- {
- field : 'warningTime',
- title : '预警时间'
- },
- {
- field : 'enforcementNumber',
- title : '检查次数',
- formatter:function (value,row,index) {
- return "
" +value+ "";
- // ,' + row.beginTime + ',' + row.endTime +"
- }
- },
- {
- field : 'enterpriseName',
- title : '企业名称'
- },
- {
- field : 'warningLevel',
- title : '预警等级',
- formatter:function (value,row,index) {
- var map=getColor();
- for (let i = 0; i < warnLevel.length; i++) {
- // if(warnLevel[i].dictValue == value){
- // return warnLevel[i].dictLabel
- // }
- if(value == warnLevel[i].dictValue){
- var color=map.get(warnLevel[i].dictValue);
- return '
'+' '+warnLevel[i].dictLabel+''
+ {
+ field : 'id',
+ title : '主键ID',
+ visible: false
+ },
+ {
+ field : 'enterpriseName',
+ title : '企业名称'
+ },
+ {
+ field : 'warningCause',
+ title : '预警原因',
+ formatter:function (value,row,index) {
+ return "
" +value+ "";
+ }
+ },
+ {
+ field : 'warningLevel',
+ title : '预警等级',
+ formatter:function (value,row,index) {
+ var map=getColor();
+ for (let i = 0; i < warnLevel.length; i++) {
+ // if(warnLevel[i].dictValue == value){
+ // return warnLevel[i].dictLabel
+ // }
+ if(value == warnLevel[i].dictValue){
+ var color=map.get(warnLevel[i].dictValue);
+ return '
'+' '+warnLevel[i].dictLabel+''
+ }
}
}
- }
- },
- {
- field : 'warningCause',
- title : '预警原因'
- },
+ },
+ {
+ field : 'warningTime',
+ title : '预警时间',
+ formatter:function (value){
+ return value.slice(0, -9);
+ }
+ },
{
title: '操作',
align: 'center',
@@ -197,6 +200,28 @@
};
$("#bootstrap-table3").bootstrapTable(options);
});
+ function downloadRW(){
+ var currentId=$('form').eq(0).attr('id');
+ var params = $.common.formToJSON(currentId);
+ $.ajax({
+ type: "POST",
+ data: JSON.stringify(params),
+ contentType: 'application/json',
+ //设置响应类型
+ xhrFields: {responseType: "blob"},
+ url: prefix+"/exportWarnList",
+ success: function (result) {
+ const link = document.createElement('a');
+ let blob = new Blob([result], {type: 'application/vnd.ms-excel'});
+ link.style.display = 'none';
+ link.href = URL.createObjectURL(blob);
+ link.setAttribute('download', "预警列表.xls");
+ document.body.appendChild(link);
+ link.click();
+ document.body.removeChild(link)
+ }
+ })
+ }
\ No newline at end of file
diff --git a/lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/code/LawEnforcementWarningList/registrationDetail.html b/lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/code/LawEnforcementWarningList/registrationDetail.html
index d29f0c07..83050981 100644
--- a/lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/code/LawEnforcementWarningList/registrationDetail.html
+++ b/lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/code/LawEnforcementWarningList/registrationDetail.html
@@ -15,8 +15,8 @@
-
-
+
+
执法人员:
@@ -24,13 +24,13 @@
检查时间:
-
+
-
-
+
- 搜索
- 重置
+ 搜索
+ 重置