| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594 | 
							- <!DOCTYPE html>
 
- <html>
 
- <head>
 
-     <meta charset="utf-8"/>
 
-     <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
 
-     <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
 
-     <title>隐患详情</title>
 
-     <link rel="stylesheet" href="../../../assets/libs/layui/css/layui.css"/>
 
-     <link rel="stylesheet" href="../../../assets/module/formSelects/formSelects-v4.css"/>
 
-     <link rel="stylesheet" href="../../../assets/module/admin.css?v=312"/>
 
-     <link rel="stylesheet" href="../../../assets/module/uParas.css?v=312"/>
 
- </head>
 
- <body>
 
- <style type="text/css">
 
-     /*table th{*/
 
-     /*  color: #ffb800;*/
 
-     /*}*/
 
- </style>
 
- <!-- 加载动画 -->
 
- <div class="page-loading">
 
-     <div class="ball-loader">
 
-         <span></span><span></span><span></span><span></span>
 
-     </div>
 
- </div>
 
- <!-- 正文开始 -->
 
- <div class="layui-fluid">
 
-     <div class="layui-card">
 
-         <div class="layui-card-body">
 
-             <div class="layui-card-header">
 
-                 隐患详情
 
-                 <div class="layui-inline pull-right">
 
-                     <button onclick="history.back()" class="layui-btn layui-btn-sm layui-btn-radius layui-btn-normal"><i class="layui-icon"></i>返回</button>
 
-                 </div>
 
-             </div>
 
-             <div class="layui-card-body">
 
-                 <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
 
-                     <div class="layui-tab-content" style="height: auto;">
 
-                         <div class="layui-tab-item layui-show">
 
-                             <fieldset class="layui-elem-field layui-field-title">
 
-                                 <legend>基本信息</legend>
 
-                             </fieldset>
 
-                             <div class="layui-row" >
 
-                                 <!--<script type="text/html">-->
 
-                                     <div class="layui-col-xs12">
 
-                                         <div class="layui-form">
 
-                                             <table class="layui-table">
 
-                                                 <!--<colgroup>-->
 
-                                                     <!--<col width="150">-->
 
-                                                     <!--<col width="150">-->
 
-                                                     <!--<col width="200">-->
 
-                                                     <!--<col>-->
 
-                                                 <!--</colgroup>-->
 
-                                                 <thead>
 
-                                                 </thead>
 
-                                                 <tbody>
 
-                                                 <tr>
 
-                                                     <th width="150" >隐患名称</th>
 
-                                                     <td id="hdangerTitle"></td>
 
-                                                     <th width="150">隐患类型</th>
 
-                                                     <td id="hdangerCatTitle">
 
-                                                     </td>
 
-                                                 </tr>
 
-                                                 <tr>
 
-                                                     <th width="150">单位名称</th>
 
-                                                     <td id="companyName" ></td>
 
-                                                     <th width="150">部门名称</th>
 
-                                                     <td id="groupName"></td>
 
-                                                 </tr>
 
-                                                 <tr>
 
-                                                     <th width="150">隐患等级</th>
 
-                                                     <td id="hdangerLevelName"></td>
 
-                                                     <th width="150">隐患状态</th>
 
-                                                     <td id="statusStr"></td>
 
-                                                 </tr>
 
-                                                 <tr>
 
-                                                     <th width="150">现场描述</th>
 
-                                                     <td id="hdangerDesc" colspan="3"></td>
 
-                                                 </tr>
 
-                                                 <tr>
 
-                                                     <th width="150">风险点名称</th>
 
-                                                     <td id="riskPointName"></td>
 
-                                                     <th width="150">风险点等级</th>
 
-                                                     <td id="riskPointLevelName"></td>
 
-                                                 </tr>
 
-                                                 <tr>
 
-                                                     <th width="150">检查表名称</th>
 
-                                                     <td id="bizCheckDefName"></td>
 
-                                                     <th width="150">风险点类型</th>
 
-                                                     <td id="riskPointTypeName"></td>
 
-                                                 </tr>
 
-                                                 <tr>
 
-                                                     <th width="150">危险源 / 检查项</th>
 
-                                                     <td id="checkItemName" colspan="3"></td>
 
-                                                 </tr>
 
-                                                 <tr>
 
-                                                     <th width="150">管控措施 / 检查内容</th>
 
-                                                     <td id="checkContentName" colspan="3"></td>
 
-                                                 </tr>
 
-                                                 <tr>
 
-                                                     <th width="150">当前处理人</th>
 
-                                                     <td id="executor"></td>
 
-                                                     <th width="150">整改期限</th>
 
-                                                     <td id="hdangerRetifyDeadline"></td>
 
-                                                 </tr>
 
-                                                 <tr>
 
-                                                     <th width="150">提交人员</th>
 
-                                                     <td id="hdangerCreatedByName"></td>
 
-                                                     <th width="150">提交时间</th>
 
-                                                     <td id="createdTime"></td>
 
-                                                 </tr>
 
-                                                 <tr>
 
-                                                     <th width="150">发生时间</th>
 
-                                                     <td id="happenedTime"></td>
 
-                                                     <th width="150">闭环时间</th>
 
-                                                     <td id="finishedTime"></td>
 
-                                                 </tr>
 
-                                                 <tr class="hidden-danger-img display-none">
 
-                                                     <th colspan="4" style="border-bottom: 0px">隐患现场照片
 
-                                                         <p id="hdangerAtt" class="m-top10px"></p>
 
-                                                     </th>
 
-                                                 </tr>
 
-                                                 <tr class="hidden-danger-video display-none">
 
-                                                     <th colspan="4" style="border-bottom: 0px">隐患现场视频
 
-                                                         <p id="hdangerVideo" class="m-top10px"></p>
 
-                                                         <!--<div id="video" style="width: 300px;height: 200px;"></div>-->
 
-                                                     </th>
 
-                                                 </tr>
 
-                                                 <tr style="border-left: 0px;border-right: 0px;" >
 
-                                                     <td  style="border-left: 0px;border-right: 0px;"  colspan="4"></td>
 
-                                                 </tr>
 
-                                                 <tr>
 
-                                                     <th width="150">评审部门</th>
 
-                                                     <td id="hdangerReviewGroupName"></td>
 
-                                                     <th width="150">评审人员</th>
 
-                                                     <td id="hdangerReviewByName"></td>
 
-                                                 </tr>
 
-                                                 <tr class="getReviewRecord" style="display: none;">
 
-                                                     <th width="150">评审结果</th>
 
-                                                     <td id="hdangerReviewResult"></td>
 
-                                                     <th width="150">评审日期</th>
 
-                                                     <td id="hdangerReviewTime"></td>
 
-                                                 </tr>
 
-                                                 <tr class="getReviewRecord display-none">
 
-                                                     <th width="150">评审说明</th>
 
-                                                     <td colspan="3" id="hdangerReviewRemark"></td>
 
-                                                 </tr>
 
-                                                 <tr style="border-left: 0px;border-right: 0px;" >
 
-                                                     <td  style="border-left: 0px;border-right: 0px;"  colspan="4"></td>
 
-                                                 </tr>
 
-                                                 <tr>
 
-                                                     <th width="150">整改部门</th>
 
-                                                     <td id="hdangerRetifyGroupName"></td>
 
-                                                     <th width="150">整改人员</th>
 
-                                                     <td id="hdangerRetifyByName"></td>
 
-                                                 </tr>
 
-                                                 <tr class="getRetifyRecord display-none">
 
-                                                     <th width="150">整改类型</th>
 
-                                                     <td id="hdangerRetifyTypeName"></td>
 
-                                                     <th width="150">协助单位</th>
 
-                                                     <td id="hdangerRetifyAssistingunit"></td>
 
-                                                 </tr>
 
-                                                 <tr class="getRetifyRecord display-none">
 
-                                                     <th width="150">整改费用</th>
 
-                                                     <td id="hdangerRetifyAmountspent"></td>
 
-                                                     <th width="150">整改日期</th>
 
-                                                     <td id="hdangerRetifycreatedTime"></td>
 
-                                                 </tr>
 
-                                                 <tr class="getRetifyRecord display-none">
 
-                                                     <th width="150">原因分析</th>
 
-                                                     <td colspan="3" id="hdangerRetifyReasons"></td>
 
-                                                 </tr>
 
-                                                 <tr class="getRetifyRecord display-none">
 
-                                                     <th width="150">整改措施</th>
 
-                                                     <td colspan="3" id="hdangerRetifyMeasures"></td>
 
-                                                 </tr>
 
-                                                 <tr class="retify-img display-none" style="display: none">
 
-                                                     <th colspan="4" style="border-bottom: 0px">最近整改照片
 
-                                                         <p id="retifyAtt" class="m-top10px"></p>
 
-                                                     </th>
 
-                                                 </tr>
 
-                                                 <tr class="retify-video display-none">
 
-                                                     <th colspan="4" style="border-bottom: 0px">最近整改视频</th>
 
-                                                 </tr>
 
-                                                 <tr class="retify-video display-none">
 
-                                                     <td id="retifyVideo" colspan="4"></td>
 
-                                                 </tr>
 
-                                                 <tr style="border-left: 0px;border-right: 0px;" ><td  style="border-left: 0px;border-right: 0px;"  colspan="4"></td></tr>
 
-                                                 <tr>
 
-                                                     <th width="150">验收部门</th>
 
-                                                     <td id="hdangerAcceptedGroupName"></td>
 
-                                                     <th width="150">验收人员</th>
 
-                                                     <td id="hdangerAcceptedByName"></td>
 
-                                                 </tr>
 
-                                                 <tr class="getAcceptRecord display-none">
 
-                                                     <th width="150">验收结果</th>
 
-                                                     <td id="hdangerAcceptedResult"></td>
 
-                                                     <th width="150">验收日期</th>
 
-                                                     <td id="hdangerAcceptedTime"></td>
 
-                                                 </tr>
 
-                                                 <tr class="getAcceptRecord display-none">
 
-                                                     <th width="150">验收说明</th>
 
-                                                     <td colspan="3" id="hdangerAcceptedRemark"></td>
 
-                                                 </tr>
 
-                                                 <tr class="accept-img display-none">
 
-                                                     <th colspan="4" style="border-bottom: 0px">最近验收照片
 
-                                                         <p id="acceptAtt" class="m-top10px"></p>
 
-                                                     </th>
 
-                                                 </tr>
 
-                                                 <tr class="accept-video display-none">
 
-                                                     <th colspan="4" style="border-bottom: 0px">最近验收视频</th>
 
-                                                 </tr>
 
-                                                 <tr class="accept-video display-none">
 
-                                                     <td id="acceptVideo" colspan="4"></td>
 
-                                                 </tr>
 
-                                                 </tbody>
 
-                                             </table>
 
-                                         </div>
 
-                                     </div>
 
-                                 <!--// </script>-->
 
-                             </div>
 
-                             <div class="getAcceptRecord display-none">
 
-                                 <fieldset class="layui-elem-field layui-field-title">
 
-                                     <legend>验收记录</legend>
 
-                                 </fieldset>
 
-                                 <div class="layui-row">
 
-                                     <div class="layui-col-xs12">
 
-                                         <div class="layui-form">
 
-                                             <table class="layui-table">
 
-                                                 <colgroup>
 
-                                                     <col width="80">
 
-                                                     <col width="200">
 
-                                                     <col width="200">
 
-                                                     <col>
 
-                                                     <col>
 
-                                                     <col>
 
-                                                 </colgroup>
 
-                                                 <thead>
 
-                                                 <tr>
 
-                                                     <th>序号</th>
 
-                                                     <th>时间</th>
 
-                                                     <th>部门</th>
 
-                                                     <th>处理人员</th>
 
-                                                     <th>处理结果</th>
 
-                                                     <th>说明</th>
 
-                                                 </tr>
 
-                                                 </thead>
 
-                                                 <tbody id="acceptRecord">
 
-                                                 </tbody>
 
-                                             </table>
 
-                                         </div>
 
-                                     </div>
 
-                                 </div>
 
-                             </div>
 
-                             <div class="getRetifyRecord display-none">
 
-                                 <fieldset class="layui-elem-field layui-field-title">
 
-                                     <legend>整改记录</legend>
 
-                                 </fieldset>
 
-                                 <div class="layui-row">
 
-                                     <div class="layui-col-xs12">
 
-                                         <div class="layui-form">
 
-                                             <table class="layui-table">
 
-                                                 <colgroup>
 
-                                                     <col width="80">
 
-                                                     <col width="200">
 
-                                                     <col width="200">
 
-                                                     <col>
 
-                                                     <col>
 
-                                                     <col>
 
-                                                     <col>
 
-                                                     <col>
 
-                                                     <col>
 
-                                                 </colgroup>
 
-                                                 <thead>
 
-                                                 <tr>
 
-                                                     <th>序号</th>
 
-                                                     <th>时间</th>
 
-                                                     <th>部门</th>
 
-                                                     <th>处理人员</th>
 
-                                                     <th>类型</th>
 
-                                                     <th>整改协助单位</th>
 
-                                                     <th>整改费用(元)</th>
 
-                                                     <th>原因分析</th>
 
-                                                     <th>整改措施</th>
 
-                                                 </tr>
 
-                                                 </thead>
 
-                                                 <tbody id="retifyRecord">
 
-                                                 </tbody>
 
-                                             </table>
 
-                                         </div>
 
-                                     </div>
 
-                                 </div>
 
-                             </div>
 
-                             <div class="getReviewRecord display-none">
 
-                                 <fieldset class="layui-elem-field layui-field-title">
 
-                                     <legend>评审记录</legend>
 
-                                 </fieldset>
 
-                                 <div class="layui-row">
 
-                                     <div class="layui-col-xs12">
 
-                                         <div class="layui-form">
 
-                                             <table class="layui-table">
 
-                                                 <colgroup>
 
-                                                     <col width="80">
 
-                                                     <col width="200">
 
-                                                     <col width="200">
 
-                                                     <col>
 
-                                                     <col>
 
-                                                     <col>
 
-                                                 </colgroup>
 
-                                                 <thead>
 
-                                                 <tr>
 
-                                                     <th>序号</th>
 
-                                                     <th>时间</th>
 
-                                                     <th>部门</th>
 
-                                                     <th>处理人员</th>
 
-                                                     <th>处理结果</th>
 
-                                                     <th>说明</th>
 
-                                                 </tr>
 
-                                                 </thead>
 
-                                                 <tbody id="reviewRecord">
 
-                                                 </tbody>
 
-                                             </table>
 
-                                         </div>
 
-                                     </div>
 
-                                 </div>
 
-                             </div>
 
-                         </div>
 
-                     </div>
 
-                 </div>
 
-             </div>
 
-         </div>
 
-     </div>
 
- </div>
 
- <!-- js部分 -->
 
- <script type="text/javascript" src="../../../assets/libs/layui/layui.js"></script>
 
- <script type="text/javascript" src="../../../assets/js/common.js?v=312"></script>
 
- <script type="text/javascript" src="../../../assets/libs/ckplayer/ckplayer.js"></script>
 
- <script>
 
-     var hdangerId;
 
-     var $;
 
-     layui.use(['layer', 'form', 'table', 'util', 'zTree', 'admin', 'uParas', 'element', 'laytpl'], function () {
 
-         $ = layui.jquery;
 
-         var layer = layui.layer;
 
-         var form = layui.form;
 
-         var util = layui.util;
 
-         var admin = layui.admin;
 
-         var uParas = layui.uParas;
 
-         var element = layui.element, laytpl = layui.laytpl;
 
-         hdangerId = uParas.getUrlParam("hdangerId");
 
-         admin.req(uParas.baseUrl + '/ent/hiddenDanger/details?hdangerId=' + hdangerId, null, function (res) {
 
-             if (res.code == 1) {
 
-                 var hd = res.data;
 
-                 if(hd != null){
 
-                     $("#hdangerTitle").text(hd.hdangerTitle);
 
-                     $("#hdangerDesc").text(hd.hdangerDesc);
 
-                     $("#hdangerLevelName").text(hd.hdangerLevelName);
 
-                     $("#hdangerCatTitle").text(hd.hdangerCatTitle);
 
-                     $("#bizCheckDefName").text(hd.bizCheckDefName);
 
-                     $("#riskPointLevelName").text(hd.riskPointLevelName);
 
-                     $("#riskPointTypeName").text(hd.riskPointTypeName);
 
-                     $("#riskPointName").text(hd.riskPointName);
 
-                     $("#checkItemName").text(hd.checkItemName);
 
-                     $("#checkContentName").text(hd.checkContentName);
 
-                     $("#statusStr").text(hd.statusStr);
 
-                     $("#companyName").text(hd.companyName);
 
-                     $("#groupName").text(hd.groupName);
 
-                     if(hd.hdangerReviewGroupName == null || hd.hdangerReviewGroupName == '' || hd.hdangerReviewByName == null || hd.hdangerReviewByName == ''){
 
-                         $("#hdangerReviewGroupName").text("*评审流程未开启");
 
-                         $("#hdangerReviewByName").text("*评审流程未开启");
 
-                     }else{
 
-                         $("#hdangerReviewGroupName").text(hd.hdangerReviewGroupName);
 
-                         $("#hdangerReviewByName").text(hd.hdangerReviewByName);
 
-                     }
 
-                     $("#hdangerRetifyGroupName").text(hd.hdangerRetifyGroupName);
 
-                     $("#hdangerRetifyByName").text(hd.hdangerRetifyByName);
 
-                     $("#hdangerAcceptedGroupName").text(hd.hdangerAcceptedGroupName);
 
-                     $("#hdangerAcceptedByName").text(hd.hdangerAcceptedByName);
 
-                     $("#hdangerCreatedByName").text(hd.hdangerCreatedByName);
 
-                     $("#hdangerRetifyDeadline").text(hd.hdangerRetifyDeadline);
 
-                     $("#executor").text(hd.executor);
 
-                     $("#createdTime").text(hd.createdTime);
 
-                     if(hd.happenedTime == null || hd.happenedTime == ''){
 
-                         $("#happenedTime").text(hd.createdTime);
 
-                     }else{
 
-                         $("#happenedTime").text(hd.happenedTime);
 
-                     }
 
-                     if(hd.finishedTime == null || hd.finishedTime == ''){
 
-                         $("#finishedTime").text("");
 
-                     }else{
 
-                         $("#finishedTime").text(hd.finishedTime);
 
-                     }
 
-                     $("#executor").text(hd.executor);
 
-                 }
 
-                 var hiddendangerAtt = res.data.attachList;
 
-                 if(hiddendangerAtt.length > 0){
 
-                     var htmlImg = '';
 
-                     var htmlVideo = '';
 
-                     for (var i = 0; i < hiddendangerAtt.length; i++) {
 
-                         var att = hiddendangerAtt[i];
 
-                         if(att.attachType == "image"){
 
-                             /*图片*/
 
-                             htmlImg += '<a onclick="showImg(\''+ att.attachPath +'\');"  style="margin-right: 10px;">';
 
-                             htmlImg += '<img style="width: 60px;height: 80px;" src="'+att.attachPath+'">';
 
-                             htmlImg += '</a>';
 
-                         }else if(att.attachType == "video"){
 
-                             /*视频*/
 
-                             htmlVideo += '<a onclick="videoPlayer(\''+ att.attachPath +'\');" >';
 
-                             htmlVideo += '<div style="margin-right: 10px;width: 80px;height: 60px;">点击播放';
 
-                             htmlVideo += '</div>';
 
-                             htmlVideo += '</a>';
 
-                         }
 
-                     }
 
-                     if(htmlImg != ''){
 
-                         $('.hidden-danger-img').show();
 
-                         $('#hdangerAtt ').html(htmlImg);
 
-                     }
 
-                     if(htmlVideo != ''){
 
-                         $('.hidden-danger-video').show();
 
-                         $('#hdangerVideo ').html(htmlVideo);
 
-                     }
 
-                 }
 
-             }
 
-         }, 'get');
 
-         /*评审记录*/
 
-         admin.req(uParas.baseUrl + '/ent/hiddenDanger/getReviewRecord?hdangerId=' + hdangerId, null, function (res) {
 
-             if (res.code == 1) {
 
-                 var records = res.data;
 
-                 var html = "";
 
-                 if (records.length > 0) {
 
-                     $("#hdangerReviewResult").text((records[0].hdangerReviewResult) != null ? (records[0].hdangerReviewResult):'-');
 
-                     $("#hdangerReviewRemark").text((records[0].hdangerReviewRemark) != null ? (records[0].hdangerReviewRemark):'-');
 
-                     $("#hdangerReviewTime").text((records[0].hdangerReviewTime) != null ? (records[0].hdangerReviewTime):'-');
 
-                     $('.getReviewRecord').show();
 
-                     for (var i = 0; i < records.length; i++) {
 
-                         html += "<tr>";
 
-                         var record = records[i];
 
-                         html += "<td>" + (i+1) + "</td>";
 
-                         html += "<td>" + record.createdTime + "</td>";
 
-                         html += "<td>" + record.groupName + "</td>";
 
-                         html += "<td>" + record.hdangerReviewByName + "</td>";
 
-                         html += "<td>" + record.hdangerReviewResult + "</td>";
 
-                         html += "<td>" + record.hdangerReviewRemark + "</td>";
 
-                         html += "</tr>";
 
-                     }
 
-                     $('#reviewRecord ').html(html);
 
-                 }
 
-             }
 
-         }, 'get');
 
-         /*整改记录*/
 
-         admin.req(uParas.baseUrl + '/ent/hiddenDanger/getRetifyRecord?hdangerId=' + hdangerId, null, function (res) {
 
-             if (res.code == 1) {
 
-                 var records = res.data;
 
-                 if (records.length > 0) {
 
-                     $("#hdangerRetifyAmountspent").text((records[0].hdangerRetifyAmountspent) != null ? (records[0].hdangerRetifyAmountspent + ' 元'):'-');
 
-                     $("#hdangerRetifyTypeName").text((records[0].hdangerRetifyTypeName) != null ? (records[0].hdangerRetifyTypeName):'-');
 
-                     $("#hdangerRetifyMeasures").text((records[0].hdangerRetifyMeasures) != null ? (records[0].hdangerRetifyMeasures):'-');
 
-                     $("#hdangerRetifyReasons").text(((records[0].hdangerRetifyReasons) != null && (records[0].hdangerRetifyReasons) != '') ? (records[0].hdangerRetifyReasons):'-');
 
-                     $("#hdangerRetifycreatedTime").text((records[0].createdTime) != null ? (records[0].createdTime):'-');
 
-                     $("#hdangerRetifyAssistingunit").text((records[0].hdangerRetifyAssistingunit) != null ? (records[0].hdangerRetifyAssistingunit):'-');
 
-                     var retifyAtt = records[0].attachList;
 
-                     if(retifyAtt.length > 0){
 
-                         $('#retifyAtt ').html('');
 
-                         $('.retify-img').show();
 
-                         var atthtml = '';
 
-                         for (var i = 0; i < retifyAtt.length; i++) {
 
-                             var att = retifyAtt[i];
 
-                             if(att.attachType == "image"){
 
-                                 atthtml += '<a onclick="showImg(\''+ att.attachPath +'\');" style="margin-right: 10px;">';
 
-                                 atthtml += '<img style="width: 60px;height: 80px;" src="'+att.attachPath+'">';
 
-                                 atthtml += '</a>';
 
-                             }
 
-                         }
 
-                         $('#retifyAtt ').html(atthtml);
 
-                     }
 
-                     $('.getRetifyRecord').show();
 
-                     var html = "";
 
-                     for (var i = 0; i < records.length; i++) {
 
-                         html += "<tr>";
 
-                         var record = records[i];
 
-                         html += "<td>" + (i+1) + "</td>";
 
-                         html += "<td>" + record.createdTime + "</td>";
 
-                         html += "<td>" + record.hdangerRetifyGroupName + "</td>";
 
-                         html += "<td>" + record.hdangerRetifyByName + "</td>";
 
-                         html += "<td>" + record.hdangerRetifyTypeName + "</td>";
 
-                         html += "<td>" + record.hdangerRetifyAssistingunit + "</td>";
 
-                         html += "<td>" + record.hdangerRetifyAmountspent + "</td>";
 
-                         html += "<td>" + record.hdangerRetifyReasons + "</td>";
 
-                         html += "<td>" + record.hdangerRetifyMeasures + "</td>";
 
-                         html += "</tr>";
 
-                     }
 
-                     $('#retifyRecord ').html(html);
 
-                 }
 
-             }
 
-         }, 'get');
 
-         /*验收记录*/
 
-         admin.req(uParas.baseUrl + '/ent/hiddenDanger/getAcceptRecord?hdangerId=' + hdangerId, null, function (res) {
 
-             if (res.code == 1) {
 
-                 var records = res.data;
 
-                 if (records.length > 0) {
 
-                     $("#hdangerAcceptedResult").text((records[0].hdangerAcceptedResult) != null ? (records[0].hdangerAcceptedResult):'-');
 
-                     $("#hdangerAcceptedRemark").text((records[0].hdangerAcceptedRemark) != null ? (records[0].hdangerAcceptedRemark):'-');
 
-                     $("#hdangerAcceptedTime").text((records[0].hdangerAcceptedTime) != null ? (records[0].hdangerAcceptedTime):'-');
 
-                     var acceptAtt = records[0].attachList;
 
-                     if(acceptAtt.length > 0){
 
-                         $('#acceptAtt ').html('');
 
-                         $('.accept-img').show();
 
-                         var atthtml = '';
 
-                         for (var i = 0; i < acceptAtt.length; i++) {
 
-                             var att = acceptAtt[i];
 
-                             if(att.attachType == "image"){
 
-                                 atthtml += '<a onclick="showImg(\''+ att.attachPath +'\');" style="margin-right: 10px;">';
 
-                                 atthtml += '<img style="width: 60px;height: 80px;" src="'+att.attachPath+'">';
 
-                                 atthtml += '</a>';
 
-                             }
 
-                         }
 
-                         $('#acceptAtt ').html(atthtml);
 
-                     }
 
-                     $('.getAcceptRecord').show();
 
-                     var html = "";
 
-                     for (var i = 0; i < records.length; i++) {
 
-                         html += "<tr>";
 
-                         var record = records[i];
 
-                         html += "<td>" + (i+1) + "</td>";
 
-                         html += "<td>" + record.createdTime + "</td>";
 
-                         html += "<td>" + record.groupName + "</td>";
 
-                         html += "<td>" + record.hdangerAcceptedByName + "</td>";
 
-                         html += "<td>" + record.hdangerAcceptedResult + "</td>";
 
-                         html += "<td>" + record.hdangerAcceptedRemark + "</td>";
 
-                         html += "</tr>";
 
-                     }
 
-                     $('#acceptRecord ').html(html);
 
-                 }
 
-             }
 
-         }, 'get');
 
-     });
 
-     function videoPlayer(url) {
 
-         layer.open({
 
-             type: 2,
 
-             zIndex: 1000,
 
-             title: "视频播放",
 
-             shadeClose: true,
 
-             area: ['650px', '530px'],
 
-             content: "./videoPlayer.html?ipCameraUrl=" + url,
 
-             fixed: false
 
-         });
 
-     }
 
-     function showImg(src) {
 
-         var imgHtml = "<img src='" + src + "' width='1000px' height='650'/>";
 
-         layer.open({
 
-             type: 1,
 
-             shade: 0.1,
 
-             offset: 'auto',
 
-             area: [1000 + 'px',650+'px'],  // area: [width + 'px',height+'px']  //原图显示
 
-             shadeClose:true,
 
-             scrollbar: false,
 
-             title: "图片附件预览", //不显示标题
 
-             content: imgHtml, //捕获的元素,注意:最好该指定的元素要存放在body最外层,否则可能被其它的相对元素所影响
 
-             // cancel: function () {
 
-             //     layer.msg('捕获就是从页面已经存在的元素上,包裹layer的结构', { time: 5000, icon: 6 });
 
-             // }
 
-         });
 
-     }
 
- </script>
 
- </body>
 
- </html>
 
 
  |