Commit bde3fcfe by wangling

20191105---wangling---修改验证失败详情展示方式

parent bc60f755
......@@ -7,6 +7,7 @@ import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;
import java.util.*;
......@@ -76,4 +77,15 @@ public class SjjhyzController {
}
return updateflag;
}
@RequestMapping("/getSjbError")
public ModelAndView getSjbError(@RequestParam("sjbbh") String sjbbh) {
Sjsbyzlog sjsbyzlog = new Sjsbyzlog();
sjsbyzlog.setSjbbh(sjbbh);
Sjsbyzlog sjbyzlog = sjjhService.getSjbxq(sjsbyzlog);
ModelAndView model = new ModelAndView();
model.addObject("sjbyzlog", sjbyzlog);
model.setViewName("sjsblog/sjbyzxq");
return model;
}
}
......@@ -16,4 +16,6 @@ public interface SjjhyzDao {
Boolean deleteFailsj(Sjsbyzlog sjsbyzlog);
Sjsbyzlog querySjbxq(Sjsbyzlog sjsbyzlog);
}
......@@ -38,4 +38,6 @@ public interface SjjhService {
void insertSjsblog(Sjsblog sjsblog);
void getFmqBssjbd();
Sjsbyzlog getSjbxq(Sjsbyzlog sjsbyzlog);
}
......@@ -158,6 +158,14 @@ public class SjjhServiceImpl implements SjjhService {
}
}
}
@Override
public Sjsbyzlog getSjbxq(Sjsbyzlog sjsbyzlog) {
Sjsbyzlog sjyzlog = new Sjsbyzlog();
sjyzlog = sjjhyzDao.querySjbxq(sjsbyzlog);
return sjyzlog;
}
public Map<String, Map<String, String>> getTblmap(List fmqList){
//tblmap<表名,<主键值,md5值>>
Map<String, Map<String, String>> tblmap = new HashMap<String, Map<String, String>>();
......
......@@ -11,7 +11,6 @@
ROWNUM RN FROM (
select
SJBBH as sjbbh,
FAILERROR as failerror,
SCBZ as scbz,
LRSJ as lrsj,
GXSJ as gxsj,
......@@ -41,4 +40,10 @@
<update id="deleteFailsj" parameterType="com.cc.bean.Sjsbyzlog">
update SYS_LOG_SJSBERROR set scbz = '1' where sjbbh in (${sjbbh})
</update>
<select id="querySjbxq" parameterType="com.cc.bean.Sjsbyzlog" resultType="com.cc.bean.Sjsbyzlog">
select
FAILERROR as failerror
from SYS_LOG_SJSBERROR where scbz='0'
<if test="sjbbh!=null and sjbbh!=''"> and sjbbh = #{sjbbh, jdbcType=VARCHAR}</if>
</select>
</mapper>
\ No newline at end of file
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title></title>
<!--- 代码框-->
<link rel="stylesheet" href="sjsblog/css/base_initialize.css">
<link rel="stylesheet" href="sjsblog/css/easyui-new.css">
<link rel="stylesheet" href="sjsblog/css/dialog-upload.css">
<link rel="stylesheet" href="sjsblog/css/style.css">
<!-- 覆盖公共样式 -->
<link rel="stylesheet" href="sjsblog/css/cover.css">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<script src="sjsblog/js/icheck.js?v=1.0.2"></script>
<link href="sjsblog/css/icheck.css"
rel="stylesheet">
<link href="sjsblog/css/icommon.css"
rel="stylesheet">
</head>
<body style="">
<!--表格设置面板-->
<div id="w" class="dialogclass" style="height:98%">
<div class="xzzxyw_bg ajxx_wrap" style="height:100%">
<fieldset style="margin:0;height: 100%;overflow-y: auto;background: #fff;">
<table class="detail_table stat_table">
<tbody>
<tr class="empty_tr">
<td colspan="4" class="empty"></td>
</tr>
<tr>
<td class="ar">错误描述:</td>
<td colspan="6">${sjbyzlog.failerror}</td>
</tr>
</tbody>
</table>
</fieldset>
</div>
</div>
<script type="text/javascript" src="sjsblog/js/jquery.min.js"></script>
<script type="text/javascript" src="sjsblog/js/jquery.easyui.min.js"></script>
<script type="text/javascript" src="sjsblog/js/easyui-lang-zh_CN.js"></script>
<script>
$(function() {
$(".i-time").css("border","0px");
});
</script>
</body>
</html>
\ No newline at end of file
......@@ -205,11 +205,11 @@
var url = "getSbsjxxList";
var tableid = "sbsjList";
var queryColumns =[
{data: "",width:'7%',render: function(data, type, row, meta) {return nulltostr("<input class='checbox16' name='choose' type='checkbox' value='"+row.xxzjbh+"' />");}},
{data: "sjbbh",width:'12%',render: function(data, type, row, meta) {return nulltostr(data);}},
{data: "tblname",width:'12%',render: function(data, type, row, meta) {return nulltostr(data);}},
{data: "keyvalue",width:'18%',render: function(data, type, row, meta) {return nulltostr(data+"<span onclick=\"showYche(this,'"+(row.xxzjbh)+"')\";><img src='sjsblog/img/asjxx_ychy.png' style='width:20px;position: relative;'/></span>");}},
{data: "fwzt",width:'10%',render: function(data, type, row, meta) {return nulltostrfwzt(data);}},
{data: "",width:'6%',render: function(data, type, row, meta) {return nulltostr("<input class='checbox16' name='choose' type='checkbox' value='"+row.xxzjbh+"' />");}},
{data: "sjbbh",width:'15%',render: function(data, type, row, meta) {return nulltostr(data);}},
{data: "tblname",width:'10%',render: function(data, type, row, meta) {return nulltostr(data);}},
{data: "keyvalue",width:'20%',render: function(data, type, row, meta) {return nulltostr(data+"<span onclick=\"showYche(this,'"+(row.xxzjbh)+"')\";><img src='sjsblog/img/asjxx_ychy.png' style='width:20px;position: relative;'/></span>");}},
{data: "fwzt",width:'8%',render: function(data, type, row, meta) {return nulltostrfwzt(data);}},
{data: "bdzt",width:'8%',render: function(data, type, row, meta) {return nulltostrbdzt(data);}},
{data: "lrsj",width:'11%',render: function(data, type, row, meta) {if(data){data=data.substring(0,19);}return nulltostr(data);}},
{data: "gxsj",width:'11%',render: function(data, type, row, meta) {if(data){data=data.substring(0,19);}return nulltostr(data);}},
......
......@@ -18,10 +18,15 @@
<link type="text/css" rel="stylesheet" href="sjsblog/css/jquery.alert.css" />
<!-- 覆盖公共样式 -->
<link rel="stylesheet" href="sjsblog/css/cover.css">
<script type="text/javascript" src="sjsblog/js/jquery-1.11.3.js"></script>
<script type="text/javascript" src="sjsblog/js/jquery.dataTables.js"></script>
<script type="text/javascript" src="sjsblog/js/jquery.alert.js"></script>
<script type="text/javascript" src="sjsblog/js/jquery.dataTables.js"></script>
<script type="text/javascript" src="sjsblog/js/jquery.alert.js"></script>
<!-- tipswindown -->
<link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/sjsblog/css/tipswindown.css"/>
<script type="text/javascript" src="sjsblog/js/jquery.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/sjsblog/js/tipswindown.js"></script>
<script src="${pageContext.request.contextPath}/sjsblog/js/wow.min.js"></script>
<!-- 引入公共js-->
<script type="text/javascript" src="js/common.js"></script>
<!-- 引入公共页面-->
......@@ -113,6 +118,7 @@
</div>
<script type="text/javascript" src="sjsblog/js/jquery.min.js"></script>
<script type="text/javascript" src="sjsblog/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="sjsblog/js/function-zdy.js"></script>
<script type="text/javascript" src="sjsblog/css/layer/layer.js"></script>
<script type="text/javascript" src="sjsblog/datepicker/WdatePicker.js"></script>
<script type="text/javascript" src="sjsblog/datepicker/calendar.js"></script>
......@@ -126,11 +132,11 @@
var url = "getSbsjfailList";
var tableid = "sbsjFaillist";
var queryColumns =[
{data: "",width:'10%',render: function(data, type, row, meta) {return nulltostr("<input class='checbox16' name='choose' type='checkbox' value='"+row.sjbbh+"' />");}},
{data: "",width:'20%',render: function(data, type, row, meta) {return nulltostr("<input class='checbox16' name='choose' type='checkbox' value='"+row.sjbbh+"' />");}},
{data: "sjbbh",width:'20%',render: function(data, type, row, meta) {return nulltostr(data);}},
{data: "ywxxdm",width:'20%',render: function(data, type, row, meta) {return nulltostr(data);}},
{data: "lrsj",width:'20%',render: function(data, type, row, meta) {if(data){data=data.substring(0,19);}return nulltostr(data);}},
{data: "failerror",width:'30%',render: function(data, type, row, meta) {return nulltostr2("<div class='ellipsis-td' style='' title="+row.failerror+">"+row.failerror+"</div>");}}
{data: "",width:'20%',render: function(data, type, row, meta) {return nulltostr2("<div class='ellipsis-td' style='' title='查看详情' onclick='getSjbError(\""+row.sjbbh+"\")'>点击查看</div>");}}
];
var data = {};
data["sjbbh"] = $("#sjbbh").val();
......@@ -225,21 +231,6 @@
return str;
}
}
function showYche(obj){
var htmlChild ="";
htmlChild += "<ul class='popUl' style='position:absolute;left:-124px;top:-10px;'>";
htmlChild += "<h4>500107199404198914<b onclick='closeLayer();' style='float:right; margin-right:5px; cursor: pointer; font-size:12px; color:#f60;'><span style='position:relative; top:-4px;'>关闭</span></b></h4>";
htmlChild += "<li onclick='showDetail()'><img src='sjsblog/img/06.png' width='16px;' style='float:left; position:relative; top:6px;'/><span>查看详情</span></li>";
htmlChild += "</ul>";
layer.tips(htmlChild, obj,{time:55000,tips:[4,'#f3f7f8'],width:380}); //在元素的事件回调体中,follow直接赋予this即可
}
function closeLayer(){
layer.closeAll("tips");
}
function showDetail(){
closeLayer();
openDialog();
}
function doClear(){
$("#sjbbh").val('');
$("#ywxxdm").val('');
......@@ -279,6 +270,11 @@
});
}
}
//查看失敗詳情详情弹框
function getSjbError(sjbbh){
tipsWindown("详情","iframe:getSjbError?sjbbh="+sjbbh,"1000","500","true","","true","leotheme");
}
</script>
<script type="text/javascript" src="sjsblog/js/eclipse.js"></script>
</body>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment