diff --git a/src/main/java/com/tenlion/twoduty/controller/api/indexaudit/IndexAuditController.java b/src/main/java/com/tenlion/twoduty/controller/api/indexaudit/IndexAuditController.java
index 94ca7a5..4cac926 100644
--- a/src/main/java/com/tenlion/twoduty/controller/api/indexaudit/IndexAuditController.java
+++ b/src/main/java/com/tenlion/twoduty/controller/api/indexaudit/IndexAuditController.java
@@ -1,7 +1,13 @@
package com.tenlion.twoduty.controller.api.indexaudit;
+import com.tenlion.twoduty.pojo.dtos.indexlib.IndexLibDTO;
+import com.tenlion.twoduty.pojo.dtos.indextemplate.IndexTemplateDTO;
+import com.tenlion.twoduty.pojo.vos.indexaudit.AuditVO;
+import com.tenlion.twoduty.service.indexlib.IIndexLibService;
+import com.tenlion.twoduty.service.indextemplate.IIndexTemplateService;
import ink.wgink.annotation.CheckRequestBodyAnnotation;
import ink.wgink.common.base.DefaultBaseController;
+import ink.wgink.exceptions.SearchException;
import ink.wgink.interfaces.consts.ISystemConstant;
import ink.wgink.pojo.ListPage;
import ink.wgink.pojo.result.ErrorResult;
@@ -12,6 +18,7 @@ import com.tenlion.twoduty.pojo.dtos.indexaudit.IndexAuditDTO;
import com.tenlion.twoduty.pojo.vos.indexaudit.IndexAuditVO;
import com.tenlion.twoduty.service.indexaudit.IIndexAuditService;
import io.swagger.annotations.*;
+import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
@@ -33,6 +40,68 @@ public class IndexAuditController extends DefaultBaseController {
@Autowired
private IIndexAuditService indexAuditService;
+ @Autowired
+ private IIndexLibService iIndexLibService;
+ @Autowired
+ private IIndexTemplateService iIndexTemplateService;
+
+
+
+
+ @ApiOperation(value = "审核指标配置详情", notes = "审核指标配置详情接口")
+ @ApiImplicitParams({
+ @ApiImplicitParam(name = "indexAuditId", value = "指标审核表ID", paramType = "path")
+ })
+ @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
+ @GetMapping("getAuditIndexConfig/{indexAuditId}")
+ public IndexTemplateDTO getAuditIndexConfig(@PathVariable("indexAuditId") String indexAuditId){
+ IndexAuditDTO indexAuditDTO = indexAuditService.get(indexAuditId);
+ if(indexAuditDTO == null){
+ throw new SearchException("系统错误-1");
+ }
+ String indexLibId = indexAuditDTO.getIndexLibId();
+ if(StringUtils.isBlank(indexLibId)){
+ throw new SearchException("系统错误-2");
+ }
+ IndexLibDTO indexLibDTO = iIndexLibService.get(indexLibId);
+ if(indexLibDTO == null){
+ throw new SearchException("系统错误-3");
+ }
+ String indexTemplateId = indexLibDTO.getIndexTemplateId();
+ if(StringUtils.isBlank(indexTemplateId)){
+ throw new SearchException("该指标未绑定模板");
+ }
+ IndexTemplateDTO indexTemplateDTO = iIndexTemplateService.get(indexTemplateId);
+ if(indexTemplateDTO == null){
+ throw new SearchException("未获取到模板信息");
+ }
+ return indexTemplateDTO;
+ }
+
+
+
+
+
+
+
+
+
+
+ @ApiOperation(value = "审核指标审核表", notes = "审核指标审核表接口")
+ @ApiImplicitParams({
+ @ApiImplicitParam(name = "indexAuditId", value = "指标审核表ID", paramType = "path")
+ })
+ @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
+ @PutMapping("audit/{indexAuditId}")
+ @CheckRequestBodyAnnotation
+ public SuccessResult audit(@PathVariable("indexAuditId") String indexAuditId, @RequestBody AuditVO auditVO) {
+ indexAuditService.audit(null,indexAuditId, auditVO);
+ return new SuccessResult();
+ }
+
+
+
+
@ApiOperation(value = "新增指标审核表", notes = "新增指标审核表接口")
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
diff --git a/src/main/java/com/tenlion/twoduty/controller/api/indexauditlog/IndexAuditLogController.java b/src/main/java/com/tenlion/twoduty/controller/api/indexauditlog/IndexAuditLogController.java
index 9a1f750..8d7558f 100644
--- a/src/main/java/com/tenlion/twoduty/controller/api/indexauditlog/IndexAuditLogController.java
+++ b/src/main/java/com/tenlion/twoduty/controller/api/indexauditlog/IndexAuditLogController.java
@@ -16,6 +16,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.Arrays;
+import java.util.HashMap;
import java.util.List;
import java.util.Map;
@@ -34,6 +35,24 @@ public class IndexAuditLogController extends DefaultBaseController {
@Autowired
private IIndexAuditLogService indexAuditLogService;
+ @ApiOperation(value = "指标审核日志表详情", notes = "指标审核日志表详情接口")
+ @ApiImplicitParams({
+ @ApiImplicitParam(name = "indexAuditLogId", value = "指标审核日志表ID", paramType = "path")
+ })
+ @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
+ @GetMapping("list_by_indexauditid/{indexAuditId}")
+ public List
-
-
@@ -67,14 +53,7 @@
var resizeTimeout = null;
var tableUrl = 'api/indexaudit/listpage';
var indexAuditStatus = '0';
-
var departmentId = top.restAjax.params(window.location.href).departmentId;
- if(departmentId){
-
- }
-
-
-
var indexLibIdParentId = top.restAjax.params(window.location.href).indexLibIdParentId;
@@ -104,7 +83,7 @@
[
{type:'checkbox', fixed: 'left'},
{field:'rowNum', width:80, title: '序号', fixed: 'left', align:'center', templet: '{{d.LAY_INDEX}}'},
- {field: 'indexAuditId', width: 180, title: '主键', align:'center',
+ {field: 'indexLibName', width: 300, title: '所属指标', align:'center',
templet: function(row) {
var rowData = row[this.field];
if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
@@ -113,7 +92,7 @@
return rowData;
}
},
- {field: 'indexLibId', width: 180, title: '指标ID', align:'center',
+ {field: 'indexBTitle', width: 500, title: '上报标题', align:'center',
templet: function(row) {
var rowData = row[this.field];
if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
@@ -122,7 +101,13 @@
return rowData;
}
},
- {field: 'indexBId', width: 180, title: '指标业务ID', align:'center',
+ {field: 'indexAuditStatus', width: 180, title: '审核状态', align:'center',
+ templet: function(row) {
+ var rowData = row[this.field];
+ return '待审核';
+ }
+ },
+ {field: 'creatorName', width: 100, title: '上报人', align:'center',fixed: 'right',
templet: function(row) {
var rowData = row[this.field];
if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
@@ -131,7 +116,7 @@
return rowData;
}
},
- {field: 'indexBTitle', width: 180, title: '上报标题', align:'center',
+ {field: 'gmtCreate', width: 180, title: '上报时间', align:'center',fixed: 'right',
templet: function(row) {
var rowData = row[this.field];
if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
@@ -140,24 +125,17 @@
return rowData;
}
},
- {field: 'indexAuditStatus', width: 180, title: '审核状态:0 待审核 1审核通过 2已归档 -1审核不通过', align:'center',
+ {field: 'cz', width: 140, title: '操作', align:'center',fixed: 'right',
templet: function(row) {
- var rowData = row[this.field];
- if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
- return '-';
- }
- return rowData;
- }
- },
- {field: 'indexAuditUserId', width: 180, title: '审核人ID', align:'center',
- templet: function(row) {
- var rowData = row[this.field];
- if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
- return '-';
- }
+ var rowData = '
diff --git a/src/main/resources/static/route/indexaudit/list_2.html b/src/main/resources/static/route/indexaudit/list_2.html index c521064..5591e4a 100644 --- a/src/main/resources/static/route/indexaudit/list_2.html +++ b/src/main/resources/static/route/indexaudit/list_2.html @@ -32,19 +32,7 @@
- + @@ -76,7 +64,6 @@ var indexLibIdParentId = top.restAjax.params(window.location.href).indexLibIdParentId; - var indexAuditStatus = top.restAjax.params(window.location.href).indexAuditStatus; @@ -105,7 +92,7 @@ [ {type:'checkbox', fixed: 'left'}, {field:'rowNum', width:80, title: '序号', fixed: 'left', align:'center', templet: '{{d.LAY_INDEX}}'}, - {field: 'indexAuditId', width: 180, title: '主键', align:'center', + {field: 'indexLibName', width: 300, title: '所属指标', align:'center', templet: function(row) { var rowData = row[this.field]; if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') { @@ -114,7 +101,7 @@ return rowData; } }, - {field: 'indexLibId', width: 180, title: '指标ID', align:'center', + {field: 'indexBTitle', width: 500, title: '上报标题', align:'center', templet: function(row) { var rowData = row[this.field]; if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') { @@ -123,7 +110,14 @@ return rowData; } }, - {field: 'indexBId', width: 180, title: '指标业务ID', align:'center', + + {field: 'indexAuditStatus', width: 180, title: '审核状态', align:'center', + templet: function(row) { + var rowData = row[this.field]; + return '审核通过'; + } + }, + {field: 'creatorName', width: 100, title: '上报人', align:'center',fixed: 'right', templet: function(row) { var rowData = row[this.field]; if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') { @@ -132,7 +126,7 @@ return rowData; } }, - {field: 'indexBTitle', width: 180, title: '上报标题', align:'center', + {field: 'gmtCreate', width: 180, title: '上报时间', align:'center',fixed: 'right', templet: function(row) { var rowData = row[this.field]; if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') { @@ -141,24 +135,16 @@ return rowData; } }, - {field: 'indexAuditStatus', width: 180, title: '审核状态:0 待审核 1审核通过 2已归档 -1审核不通过', align:'center', + {field: 'cz', width: 120, title: '操作', align:'center',fixed: 'right', templet: function(row) { - var rowData = row[this.field]; - if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') { - return '-'; - } - return rowData; - } - }, - {field: 'indexAuditUserId', width: 180, title: '审核人ID', align:'center', - templet: function(row) { - var rowData = row[this.field]; - if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') { - return '-'; - } + var rowData = '
'; return rowData; } }, + ] ], page: true, @@ -238,57 +224,56 @@ reloadTable(1); }); // 事件 - 增删改 - table.on('toolbar(dataTable)', function(obj) { + table.on('tool(dataTable)', function(obj) { var layEvent = obj.event; - var checkStatus = table.checkStatus('dataTable'); - var checkDatas = checkStatus.data; - if(layEvent === 'saveEvent') { + var data = obj.data; + if(layEvent === 'show'){ + var indexBId = data.indexBId + var loadLayerIndex; + top.restAjax.get(top.restAjax.path('api/indexaudit/getAuditIndexConfig/{indexAuditId}', [data.indexAuditId]), {}, null, function(code, data) { + show(data.indexTemplateShowPath+indexBId); + }, function(code, data) { + top.dialog.msg(data.msg); + }, function() { + loadLayerIndex = top.dialog.msg(top.dataMessage.loading, {icon: 16, time: 0, shade: 0.3}); + }, function() { + top.dialog.close(loadLayerIndex); + }); + }else if(layEvent === 'log'){ layer.open({ type: 2, title: false, - closeBtn: 0, - area: ['100%', '100%'], + closeBtn: 1, + area: ['80%', '80%'], shadeClose: true, anim: 2, - content: top.restAjax.path('route/indexaudit/save.html', []), + content: top.restAjax.path('route/indexauditlog/show.html?indexAuditId={indexAuditId}', [data.indexAuditId]), end: function() { reloadTable(); } }); - } else if(layEvent === 'updateEvent') { - if(checkDatas.length === 0) { - top.dialog.msg(top.dataMessage.table.selectEdit); - } else if(checkDatas.length > 1) { - top.dialog.msg(top.dataMessage.table.selectOneEdit); - } else { - layer.open({ - type: 2, - title: false, - closeBtn: 0, - area: ['100%', '100%'], - shadeClose: true, - anim: 2, - content: top.restAjax.path('route/indexaudit/update.html?indexAuditId={indexAuditId}', [checkDatas[0].indexAuditId]), - end: function() { - reloadTable(); - } - }); - } - } else if(layEvent === 'removeEvent') { - if(checkDatas.length === 0) { - top.dialog.msg(top.dataMessage.table.selectDelete); - } else { - var ids = ''; - for(var i = 0, item; item = checkDatas[i++];) { - if(i > 1) { - ids += '_'; - } - ids += item['indexAuditId']; - } - removeData(ids); - } } }); + + + + function show(path){ + if(!path){ + top.dialog.msg("未查询到模板,请联系管理员"); + } + layer.open({ + type: 2, + title: false, + closeBtn: 0, + area: ['100%', '100%'], + shadeClose: true, + anim: 2, + content: path, + end: function() { + reloadTable(); + } + }); + } }); diff --git a/src/main/resources/static/route/indexaudit/list_3.html b/src/main/resources/static/route/indexaudit/list_3.html index 8df121d..43a61d7 100644 --- a/src/main/resources/static/route/indexaudit/list_3.html +++ b/src/main/resources/static/route/indexaudit/list_3.html @@ -32,19 +32,7 @@
- + @@ -76,7 +64,6 @@ var indexLibIdParentId = top.restAjax.params(window.location.href).indexLibIdParentId; - var indexAuditStatus = top.restAjax.params(window.location.href).indexAuditStatus; @@ -105,7 +92,7 @@ [ {type:'checkbox', fixed: 'left'}, {field:'rowNum', width:80, title: '序号', fixed: 'left', align:'center', templet: '{{d.LAY_INDEX}}'}, - {field: 'indexAuditId', width: 180, title: '主键', align:'center', + {field: 'indexLibName', width: 300, title: '所属指标', align:'center', templet: function(row) { var rowData = row[this.field]; if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') { @@ -114,7 +101,7 @@ return rowData; } }, - {field: 'indexLibId', width: 180, title: '指标ID', align:'center', + {field: 'indexBTitle', width: 500, title: '上报标题', align:'center', templet: function(row) { var rowData = row[this.field]; if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') { @@ -123,7 +110,14 @@ return rowData; } }, - {field: 'indexBId', width: 180, title: '指标业务ID', align:'center', + + {field: 'indexAuditStatus', width: 180, title: '审核状态', align:'center', + templet: function(row) { + var rowData = row[this.field]; + return '以归档'; + } + }, + {field: 'creatorName', width: 100, title: '上报人', align:'center',fixed: 'right', templet: function(row) { var rowData = row[this.field]; if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') { @@ -132,7 +126,7 @@ return rowData; } }, - {field: 'indexBTitle', width: 180, title: '上报标题', align:'center', + {field: 'gmtCreate', width: 180, title: '上报时间', align:'center',fixed: 'right', templet: function(row) { var rowData = row[this.field]; if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') { @@ -141,24 +135,16 @@ return rowData; } }, - {field: 'indexAuditStatus', width: 180, title: '审核状态:0 待审核 1审核通过 2已归档 -1审核不通过', align:'center', + {field: 'cz', width: 120, title: '操作', align:'center',fixed: 'right', templet: function(row) { - var rowData = row[this.field]; - if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') { - return '-'; - } - return rowData; - } - }, - {field: 'indexAuditUserId', width: 180, title: '审核人ID', align:'center', - templet: function(row) { - var rowData = row[this.field]; - if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') { - return '-'; - } + var rowData = '
'; return rowData; } }, + ] ], page: true, @@ -238,57 +224,55 @@ reloadTable(1); }); // 事件 - 增删改 - table.on('toolbar(dataTable)', function(obj) { + table.on('tool(dataTable)', function(obj) { var layEvent = obj.event; - var checkStatus = table.checkStatus('dataTable'); - var checkDatas = checkStatus.data; - if(layEvent === 'saveEvent') { + var data = obj.data; + if(layEvent === 'show'){ + var indexBId = data.indexBId + var loadLayerIndex; + top.restAjax.get(top.restAjax.path('api/indexaudit/getAuditIndexConfig/{indexAuditId}', [data.indexAuditId]), {}, null, function(code, data) { + show(data.indexTemplateShowPath+indexBId); + }, function(code, data) { + top.dialog.msg(data.msg); + }, function() { + loadLayerIndex = top.dialog.msg(top.dataMessage.loading, {icon: 16, time: 0, shade: 0.3}); + }, function() { + top.dialog.close(loadLayerIndex); + }); + }else if(layEvent === 'log'){ layer.open({ type: 2, title: false, - closeBtn: 0, - area: ['100%', '100%'], + closeBtn: 1, + area: ['80%', '80%'], shadeClose: true, anim: 2, - content: top.restAjax.path('route/indexaudit/save.html', []), + content: top.restAjax.path('route/indexauditlog/show.html?indexAuditId={indexAuditId}', [data.indexAuditId]), end: function() { reloadTable(); } }); - } else if(layEvent === 'updateEvent') { - if(checkDatas.length === 0) { - top.dialog.msg(top.dataMessage.table.selectEdit); - } else if(checkDatas.length > 1) { - top.dialog.msg(top.dataMessage.table.selectOneEdit); - } else { - layer.open({ - type: 2, - title: false, - closeBtn: 0, - area: ['100%', '100%'], - shadeClose: true, - anim: 2, - content: top.restAjax.path('route/indexaudit/update.html?indexAuditId={indexAuditId}', [checkDatas[0].indexAuditId]), - end: function() { - reloadTable(); - } - }); - } - } else if(layEvent === 'removeEvent') { - if(checkDatas.length === 0) { - top.dialog.msg(top.dataMessage.table.selectDelete); - } else { - var ids = ''; - for(var i = 0, item; item = checkDatas[i++];) { - if(i > 1) { - ids += '_'; - } - ids += item['indexAuditId']; - } - removeData(ids); - } } }); + + function show(path){ + if(!path){ + top.dialog.msg("未查询到模板,请联系管理员"); + } + layer.open({ + type: 2, + title: false, + closeBtn: 0, + area: ['100%', '100%'], + shadeClose: true, + anim: 2, + content: path, + end: function() { + reloadTable(); + } + }); + } + }); diff --git a/src/main/resources/static/route/indexaudit/list_4.html b/src/main/resources/static/route/indexaudit/list_4.html index 3491e09..1de0e92 100644 --- a/src/main/resources/static/route/indexaudit/list_4.html +++ b/src/main/resources/static/route/indexaudit/list_4.html @@ -31,20 +31,6 @@
- - @@ -72,14 +58,7 @@ if(departmentId){ } - - - var indexLibIdParentId = top.restAjax.params(window.location.href).indexLibIdParentId; - var indexAuditStatus = top.restAjax.params(window.location.href).indexAuditStatus; - - - // 初始化表格 function initTable() { @@ -105,7 +84,7 @@ [ {type:'checkbox', fixed: 'left'}, {field:'rowNum', width:80, title: '序号', fixed: 'left', align:'center', templet: '{{d.LAY_INDEX}}'}, - {field: 'indexAuditId', width: 180, title: '主键', align:'center', + {field: 'indexLibName', width: 300, title: '所属指标', align:'center', templet: function(row) { var rowData = row[this.field]; if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') { @@ -114,7 +93,7 @@ return rowData; } }, - {field: 'indexLibId', width: 180, title: '指标ID', align:'center', + {field: 'indexBTitle', width: 500, title: '上报标题', align:'center', templet: function(row) { var rowData = row[this.field]; if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') { @@ -123,7 +102,14 @@ return rowData; } }, - {field: 'indexBId', width: 180, title: '指标业务ID', align:'center', + + {field: 'indexAuditStatus', width: 180, title: '审核状态', align:'center', + templet: function(row) { + var rowData = row[this.field]; + return '审核不通过'; + } + }, + {field: 'creatorName', width: 100, title: '上报人', align:'center',fixed: 'right', templet: function(row) { var rowData = row[this.field]; if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') { @@ -132,7 +118,7 @@ return rowData; } }, - {field: 'indexBTitle', width: 180, title: '上报标题', align:'center', + {field: 'gmtCreate', width: 180, title: '上报时间', align:'center',fixed: 'right', templet: function(row) { var rowData = row[this.field]; if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') { @@ -141,24 +127,16 @@ return rowData; } }, - {field: 'indexAuditStatus', width: 180, title: '审核状态:0 待审核 1审核通过 2已归档 -1审核不通过', align:'center', + {field: 'cz', width: 120, title: '操作', align:'center',fixed: 'right', templet: function(row) { - var rowData = row[this.field]; - if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') { - return '-'; - } - return rowData; - } - }, - {field: 'indexAuditUserId', width: 180, title: '审核人ID', align:'center', - templet: function(row) { - var rowData = row[this.field]; - if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') { - return '-'; - } + var rowData = '
'; return rowData; } }, + ] ], page: true, @@ -238,57 +216,55 @@ reloadTable(1); }); // 事件 - 增删改 - table.on('toolbar(dataTable)', function(obj) { + table.on('tool(dataTable)', function(obj) { var layEvent = obj.event; - var checkStatus = table.checkStatus('dataTable'); - var checkDatas = checkStatus.data; - if(layEvent === 'saveEvent') { + var data = obj.data; + if(layEvent === 'show'){ + var indexBId = data.indexBId + var loadLayerIndex; + top.restAjax.get(top.restAjax.path('api/indexaudit/getAuditIndexConfig/{indexAuditId}', [data.indexAuditId]), {}, null, function(code, data) { + show(data.indexTemplateShowPath+indexBId); + }, function(code, data) { + top.dialog.msg(data.msg); + }, function() { + loadLayerIndex = top.dialog.msg(top.dataMessage.loading, {icon: 16, time: 0, shade: 0.3}); + }, function() { + top.dialog.close(loadLayerIndex); + }); + }else if(layEvent === 'log'){ layer.open({ type: 2, title: false, - closeBtn: 0, - area: ['100%', '100%'], + closeBtn: 1, + area: ['80%', '80%'], shadeClose: true, anim: 2, - content: top.restAjax.path('route/indexaudit/save.html', []), + content: top.restAjax.path('route/indexauditlog/show.html?indexAuditId={indexAuditId}', [data.indexAuditId]), end: function() { reloadTable(); } }); - } else if(layEvent === 'updateEvent') { - if(checkDatas.length === 0) { - top.dialog.msg(top.dataMessage.table.selectEdit); - } else if(checkDatas.length > 1) { - top.dialog.msg(top.dataMessage.table.selectOneEdit); - } else { - layer.open({ - type: 2, - title: false, - closeBtn: 0, - area: ['100%', '100%'], - shadeClose: true, - anim: 2, - content: top.restAjax.path('route/indexaudit/update.html?indexAuditId={indexAuditId}', [checkDatas[0].indexAuditId]), - end: function() { - reloadTable(); - } - }); - } - } else if(layEvent === 'removeEvent') { - if(checkDatas.length === 0) { - top.dialog.msg(top.dataMessage.table.selectDelete); - } else { - var ids = ''; - for(var i = 0, item; item = checkDatas[i++];) { - if(i > 1) { - ids += '_'; - } - ids += item['indexAuditId']; - } - removeData(ids); - } } }); + + function show(path){ + if(!path){ + top.dialog.msg("未查询到模板,请联系管理员"); + } + layer.open({ + type: 2, + title: false, + closeBtn: 0, + area: ['100%', '100%'], + shadeClose: true, + anim: 2, + content: path, + end: function() { + reloadTable(); + } + }); + } + }); diff --git a/src/main/resources/static/route/indexauditlog/show.html b/src/main/resources/static/route/indexauditlog/show.html new file mode 100644 index 0000000..80a58f1 --- /dev/null +++ b/src/main/resources/static/route/indexauditlog/show.html @@ -0,0 +1,127 @@ + + +
+
+