function initCase() {\n 'use strict';\n $('#tableModule').hide();\n $('#demoModule').show();\n $('#wordPicture').hide();\n $('#indexNextPart').hide();\n var checkCase = $('#checkCase').val();\n //第一个ajax获取count总数\n $.ajax({\n type: 'POST',\n url: rootPath + '/punishmentCase/countPunishmentCase.html',\n data: {query: checkCase},\n dataType: 'json',\n success: function (json) {\n $('#demoSpan').html(json.data);\n layui.use('laypage', function () {\n var laypage = layui.laypage;\n //执行一个laypage实例\n laypage.render({\n elem: 'demo' //注意,这里的 test1 是 ID,不用加 # 号\n , count: json.data //数据总数,从服务端得到\n , layout: ['prev', 'page', 'next', 'skip']\n , jump: function (obj, first) {\n //首次不执行\n if (!first) {\n var accountName = '${ucAccountDto.accountName}';\n if ('' == accountName) {//未登录\n openNew();\n }\n }\n //第二个ajax获取当前页请求数据\n $.ajax({\n type: 'post',\n url: rootPath + '/punishmentCase/queryPunishmentCase.html',\n data: {\n query: checkCase,\n page: obj.curr,\n limit: obj.limit\n },\n dataType: 'json',\n success: function (json) {\n var responseVO = json;\n if (json.success) {\n $('#policyData').html('');\n var str = '';\n for (var i = 0; i < responseVO.data.length; i++) {\n if (i == 0) {\n str += '<div class='demoRow' style='border-top: 2px solid #dedede;height: 100%;'>'\n //+'<div style='float:left;padding-right: 5px;'><img src='/img/dian.jpg' align='middle' style='margin-top: 8px;'/>
'\n + '<p style='font-size: 16px;color:#337ab7;'><a style='color: #337ab7;' href='/IQuery/detail-'\n + responseVO.data[i].id + '.html' target='_blank'>'\n + responseVO.data[i].lawsName + ''\n + '<p style='font-size: 14px;color:#727272;'>';\n } else {\n str += '<div class='demoRow' style='height: 100%;'>'\n //+'<div style='float:left;padding-right: 5px;'><img src='/img/dian.jpg' align='middle' style='margin-top: 8px;'/>
'\n + '<p style='font-size: 16px;color:#337ab7;'><a style='color: #337ab7;' href='/IQuery/detail-'\n + responseVO.data[i].id + '.html' target='_blank'>'\n + responseVO.data[i].lawsName + ''\n + '<p style='font-size: 14px;color:#727272;'>';\n }\n if (!(responseVO.data[i].lawsCode == '' || responseVO.data[i].lawsCode\n == null)) {\n str += responseVO.data[i].lawsCode + ' ';\n if (!(responseVO.data[i].timeliness == '' || responseVO.data[i].timeliness\n == null || responseVO.data[i].publishTime == ''\n || responseVO.data[i].publishTime == null\n || responseVO.data[i].implementationTime == ''\n || responseVO.data[i].implementationTime == null)) {\n str += '/ ';\n }\n }\n if (!(responseVO.data[i].timeliness == '' || responseVO.data[i].timeliness\n == null)) {\n str += responseVO.data[i].timeliness + ' ';\n if (!(responseVO.data[i].publishTime == ''\n || responseVO.data[i].publishTime == null\n || responseVO.data[i].implementationTime == ''\n || responseVO.data[i].implementationTime == null)) {\n str += '/ ';\n }\n }\n if (!(responseVO.data[i].publishTime == '' || responseVO.data[i].publishTime\n == null)) {\n str += changeDateFormat(responseVO.data[i].publishTime) + '发布 ';\n if (!(responseVO.data[i].implementationTime == ''\n || responseVO.data[i].implementationTime == null)) {\n str += '/ ';\n }\n }\n if (!(responseVO.data[i].implementationTime == ''\n || responseVO.data[i].implementationTime == null)) {\n str += changeDateFormat(responseVO.data[i].implementationTime) + '实施';\n }\n str += '