details.html 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  6. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  7. <title>隐患详情</title>
  8. <link rel="stylesheet" href="../../../assets/libs/layui/css/layui.css"/>
  9. <link rel="stylesheet" href="../../../assets/module/formSelects/formSelects-v4.css"/>
  10. <link rel="stylesheet" href="../../../assets/module/admin.css?v=312"/>
  11. <link rel="stylesheet" href="../../../assets/module/uParas.css?v=312"/>
  12. </head>
  13. <body>
  14. <style type="text/css">
  15. table th {
  16. /*color: #ffb800;*/
  17. }
  18. </style>
  19. <!-- 加载动画 -->
  20. <div class="page-loading">
  21. <div class="ball-loader">
  22. <span></span><span></span><span></span><span></span>
  23. </div>
  24. </div>
  25. <!-- 正文开始 -->
  26. <div class="layui-fluid">
  27. <div class="layui-card">
  28. <div class="layui-card-body">
  29. <div class="layui-card-header">
  30. 隐患详情
  31. <div class="layui-inline pull-right" id="_btn">
  32. <button id="btnPrint1" class="layui-btn layui-btn-sm layui-btn-radius layui-btn-normal">
  33. <i class="layui-icon">&#xe66d;</i>打印
  34. </button>
  35. <button onclick="history.back()" class="layui-btn layui-btn-sm layui-btn-radius layui-btn-normal"><i
  36. class="layui-icon">&#xe65c;</i>返回
  37. </button>
  38. </div>
  39. </div>
  40. <div class="layui-card-body" id="divTablePrint">
  41. <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
  42. <div class="layui-tab-content" style="height: auto;padding-bottom: 80px">
  43. <div class="layui-tab-item layui-show">
  44. <fieldset class="layui-elem-field layui-field-title">
  45. <legend>基本信息</legend>
  46. </fieldset>
  47. <div class="layui-row">
  48. <!--<script type="text/html">-->
  49. <div class="layui-col-xs12">
  50. <div class="layui-form">
  51. <table class="layui-table">
  52. <!--<colgroup>-->
  53. <!--<col width="150">-->
  54. <!--<col width="150">-->
  55. <!--<col width="200">-->
  56. <!--<col>-->
  57. <!--</colgroup>-->
  58. <thead>
  59. </thead>
  60. <tbody>
  61. <tr>
  62. <th width="150">隐患名称</th>
  63. <td id="hdangerTitle"></td>
  64. <th width="150">隐患类型</th>
  65. <td id="hdangerCatTitle">
  66. </td>
  67. </tr>
  68. <tr>
  69. <th width="150">单位名称</th>
  70. <td id="companyName"></td>
  71. <th width="150">部门名称</th>
  72. <td id="groupName"></td>
  73. </tr>
  74. <tr>
  75. <th width="150">隐患等级</th>
  76. <td id="hdangerLevelName"></td>
  77. <th width="150">隐患状态</th>
  78. <td id="statusStr"></td>
  79. </tr>
  80. <tr>
  81. <th width="150">现场描述</th>
  82. <td id="hdangerDesc" colspan="3"></td>
  83. </tr>
  84. <tr>
  85. <th width="150">风险点名称</th>
  86. <td id="riskPointName"></td>
  87. <th width="150">风险点等级</th>
  88. <td id="riskPointLevelName"></td>
  89. </tr>
  90. <tr>
  91. <th width="150">检查表名称</th>
  92. <td id="bizCheckDefName"></td>
  93. <th width="150">风险点类型</th>
  94. <td id="riskPointTypeName"></td>
  95. </tr>
  96. <tr>
  97. <th width="150">危险源 / 检查项</th>
  98. <td id="checkItemName" colspan="3"></td>
  99. </tr>
  100. <tr>
  101. <th width="150">管控措施 / 检查内容</th>
  102. <td id="checkContentName" colspan="3"></td>
  103. </tr>
  104. <tr>
  105. <th width="150">当前处理人</th>
  106. <td id="executor"></td>
  107. <th width="150">整改期限</th>
  108. <td id="hdangerRetifyDeadline"></td>
  109. </tr>
  110. <tr>
  111. <th width="150">提交人员</th>
  112. <td id="hdangerCreatedByName"></td>
  113. <th width="150">提交时间</th>
  114. <td id="createdTime"></td>
  115. </tr>
  116. <tr>
  117. <th width="150">发生时间</th>
  118. <td id="happenedTime"></td>
  119. <th width="150">闭环时间</th>
  120. <td id="finishedTime"></td>
  121. </tr>
  122. <tr class="hidden-danger-img display-none">
  123. <th colspan="4" style="border-bottom: 0px">隐患现场照片
  124. <p id="hdangerAtt" class="m-top10px"></p>
  125. </th>
  126. </tr>
  127. <tr class="hidden-danger-video display-none">
  128. <th colspan="4" style="border-bottom: 0px">隐患现场视频
  129. <p id="hdangerVideo" class="m-top10px"></p>
  130. <!--<div id="video" style="width: 300px;height: 200px;"></div>-->
  131. </th>
  132. </tr>
  133. <tr style="border-left: 0px;border-right: 0px;">
  134. <td style="border-left: 0px;border-right: 0px;" colspan="4"></td>
  135. </tr>
  136. <tr>
  137. <th width="150">评审部门</th>
  138. <td id="hdangerReviewGroupName"></td>
  139. <th width="150">评审人员</th>
  140. <td id="hdangerReviewByName"></td>
  141. </tr>
  142. <tr class="getReviewRecord" style="display: none;">
  143. <th width="150">评审结果</th>
  144. <td id="hdangerReviewResult"></td>
  145. <th width="150">评审日期</th>
  146. <td id="hdangerReviewTime"></td>
  147. </tr>
  148. <tr class="getReviewRecord display-none">
  149. <th width="150">评审说明</th>
  150. <td colspan="3" id="hdangerReviewRemark"></td>
  151. </tr>
  152. <tr style="border-left: 0px;border-right: 0px;">
  153. <td style="border-left: 0px;border-right: 0px;" colspan="4"></td>
  154. </tr>
  155. <tr>
  156. <th width="150">整改部门</th>
  157. <td id="hdangerRetifyGroupName"></td>
  158. <th width="150">整改人员</th>
  159. <td id="hdangerRetifyByName"></td>
  160. </tr>
  161. <tr class="getRetifyRecord display-none">
  162. <th width="150">整改类型</th>
  163. <td id="hdangerRetifyTypeName"></td>
  164. <th width="150">协助单位</th>
  165. <td id="hdangerRetifyAssistingunit"></td>
  166. </tr>
  167. <tr class="getRetifyRecord display-none">
  168. <th width="150">整改费用</th>
  169. <td id="hdangerRetifyAmountspent"></td>
  170. <th width="150">整改日期</th>
  171. <td id="hdangerRetifycreatedTime"></td>
  172. </tr>
  173. <tr class="getRetifyRecord display-none">
  174. <th width="150">原因分析</th>
  175. <td colspan="3" id="hdangerRetifyReasons"></td>
  176. </tr>
  177. <tr class="getRetifyRecord display-none">
  178. <th width="150">整改措施</th>
  179. <td colspan="3" id="hdangerRetifyMeasures"></td>
  180. </tr>
  181. <tr class="retify-img display-none" style="display: none">
  182. <th colspan="4" style="border-bottom: 0px">最近整改照片
  183. <p id="retifyAtt" class="m-top10px"></p>
  184. </th>
  185. </tr>
  186. <tr class="retify-video display-none">
  187. <th colspan="4" style="border-bottom: 0px">最近整改视频</th>
  188. </tr>
  189. <tr class="retify-video display-none">
  190. <td id="retifyVideo" colspan="4"></td>
  191. </tr>
  192. <tr style="border-left: 0px;border-right: 0px;">
  193. <td style="border-left: 0px;border-right: 0px;" colspan="4"></td>
  194. </tr>
  195. <tr>
  196. <th width="150">验收部门</th>
  197. <td id="hdangerAcceptedGroupName"></td>
  198. <th width="150">验收人员</th>
  199. <td id="hdangerAcceptedByName"></td>
  200. </tr>
  201. <tr class="getAcceptRecord display-none">
  202. <th width="150">验收结果</th>
  203. <td id="hdangerAcceptedResult"></td>
  204. <th width="150">验收日期</th>
  205. <td id="hdangerAcceptedTime"></td>
  206. </tr>
  207. <tr class="getAcceptRecord display-none">
  208. <th width="150">验收说明</th>
  209. <td colspan="3" id="hdangerAcceptedRemark"></td>
  210. </tr>
  211. <tr class="accept-img display-none">
  212. <th colspan="4" style="border-bottom: 0px">最近验收照片
  213. <p id="acceptAtt" class="m-top10px"></p>
  214. </th>
  215. </tr>
  216. <tr class="accept-video display-none">
  217. <th colspan="4" style="border-bottom: 0px">最近验收视频</th>
  218. </tr>
  219. <tr class="accept-video display-none">
  220. <td id="acceptVideo" colspan="4"></td>
  221. </tr>
  222. </tbody>
  223. </table>
  224. </div>
  225. </div>
  226. <!--// </script>-->
  227. </div>
  228. <div class="getAcceptRecord display-none">
  229. <fieldset class="layui-elem-field layui-field-title">
  230. <legend>验收记录</legend>
  231. </fieldset>
  232. <div class="layui-row">
  233. <div class="layui-col-xs12">
  234. <div class="layui-form">
  235. <table class="layui-table">
  236. <colgroup>
  237. <col width="80">
  238. <col width="200">
  239. <col width="200">
  240. <col>
  241. <col>
  242. <col>
  243. </colgroup>
  244. <thead>
  245. <tr>
  246. <th>序号</th>
  247. <th>时间</th>
  248. <th>部门</th>
  249. <th>处理人员</th>
  250. <th>处理结果</th>
  251. <th>说明</th>
  252. </tr>
  253. </thead>
  254. <tbody id="acceptRecord">
  255. </tbody>
  256. </table>
  257. </div>
  258. </div>
  259. </div>
  260. </div>
  261. <div class="getRetifyRecord display-none">
  262. <fieldset class="layui-elem-field layui-field-title">
  263. <legend>整改记录</legend>
  264. </fieldset>
  265. <div class="layui-row">
  266. <div class="layui-col-xs12">
  267. <div class="layui-form">
  268. <table class="layui-table">
  269. <colgroup>
  270. <col width="80">
  271. <col width="200">
  272. <col width="200">
  273. <col>
  274. <col>
  275. <col>
  276. <col>
  277. <col>
  278. <col>
  279. </colgroup>
  280. <thead>
  281. <tr>
  282. <th>序号</th>
  283. <th>时间</th>
  284. <th>部门</th>
  285. <th>处理人员</th>
  286. <th>类型</th>
  287. <th>整改协助单位</th>
  288. <th>整改费用(元)</th>
  289. <th>原因分析</th>
  290. <th>整改措施</th>
  291. </tr>
  292. </thead>
  293. <tbody id="retifyRecord">
  294. </tbody>
  295. </table>
  296. </div>
  297. </div>
  298. </div>
  299. </div>
  300. <div class="getReviewRecord display-none">
  301. <fieldset class="layui-elem-field layui-field-title">
  302. <legend>评审记录</legend>
  303. </fieldset>
  304. <div class="layui-row">
  305. <div class="layui-col-xs12">
  306. <div class="layui-form">
  307. <table class="layui-table">
  308. <colgroup>
  309. <col width="80">
  310. <col width="200">
  311. <col width="200">
  312. <col>
  313. <col>
  314. <col>
  315. </colgroup>
  316. <thead>
  317. <tr>
  318. <th>序号</th>
  319. <th>时间</th>
  320. <th>部门</th>
  321. <th>处理人员</th>
  322. <th>处理结果</th>
  323. <th>说明</th>
  324. </tr>
  325. </thead>
  326. <tbody id="reviewRecord">
  327. </tbody>
  328. </table>
  329. </div>
  330. </div>
  331. </div>
  332. </div>
  333. </div>
  334. </div>
  335. </div>
  336. </div>
  337. </div>
  338. </div>
  339. </div>
  340. <!-- js部分 -->
  341. <script type="text/javascript" src="../../../assets/libs/layui/layui.js"></script>
  342. <script type="text/javascript" src="../../../assets/js/common.js?v=312"></script>
  343. <script type="text/javascript" src="../../../assets/libs/ckplayer/ckplayer.js"></script>
  344. <script>
  345. var hdangerId;
  346. var $;
  347. layui.use(['layer', 'form', 'printer', 'table', 'util', 'zTree', 'admin', 'uParas', 'element', 'laytpl'], function () {
  348. $ = layui.jquery;
  349. var layer = layui.layer;
  350. var form = layui.form;
  351. var util = layui.util;
  352. var printer = layui.printer;
  353. var admin = layui.admin;
  354. var uParas = layui.uParas;
  355. var element = layui.element, laytpl = layui.laytpl;
  356. hdangerId = uParas.getUrlParam("hdangerId");
  357. // 打印当前页面
  358. $('#btnPrint1').click(function () {
  359. $('#_btn').attr("style", "display:none;");
  360. printer.print();
  361. $('#_btn').attr("style", "display:block;")
  362. });
  363. admin.req(uParas.baseUrl + '/ent/hiddenDanger/details?hdangerId=' + hdangerId, null, function (res) {
  364. if (res.code == 1) {
  365. var hd = res.data;
  366. if (hd != null) {
  367. $("#hdangerTitle").text(hd.hdangerTitle);
  368. $("#hdangerDesc").text(hd.hdangerDesc);
  369. $("#hdangerLevelName").text(hd.hdangerLevelName);
  370. $("#hdangerCatTitle").text(hd.hdangerCatTitle);
  371. $("#bizCheckDefName").text(hd.bizCheckDefName);
  372. $("#riskPointLevelName").text(hd.riskPointLevelName);
  373. $("#riskPointTypeName").text(hd.riskPointTypeName);
  374. $("#riskPointName").text(hd.riskPointName);
  375. $("#checkItemName").text(hd.checkItemName);
  376. $("#checkContentName").text(hd.checkContentName);
  377. $("#statusStr").text(hd.statusStr);
  378. $("#companyName").text(hd.companyName);
  379. $("#groupName").text(hd.groupName);
  380. if (hd.hdangerReviewGroupName == null || hd.hdangerReviewGroupName == '' || hd.hdangerReviewByName == null || hd.hdangerReviewByName == '') {
  381. $("#hdangerReviewGroupName").text("*评审流程未开启");
  382. $("#hdangerReviewByName").text("*评审流程未开启");
  383. } else {
  384. $("#hdangerReviewGroupName").text(hd.hdangerReviewGroupName);
  385. $("#hdangerReviewByName").text(hd.hdangerReviewByName);
  386. }
  387. $("#hdangerRetifyGroupName").text(hd.hdangerRetifyGroupName);
  388. $("#hdangerRetifyByName").text(hd.hdangerRetifyByName);
  389. $("#hdangerAcceptedGroupName").text(hd.hdangerAcceptedGroupName);
  390. $("#hdangerAcceptedByName").text(hd.hdangerAcceptedByName);
  391. $("#hdangerCreatedByName").text(hd.hdangerCreatedByName);
  392. $("#hdangerRetifyDeadline").text(hd.hdangerRetifyDeadline);
  393. $("#executor").text(hd.executor);
  394. $("#createdTime").text(hd.createdTime);
  395. if (hd.happenedTime == null || hd.happenedTime == '') {
  396. $("#happenedTime").text(hd.createdTime);
  397. } else {
  398. $("#happenedTime").text(hd.happenedTime);
  399. }
  400. if (hd.finishedTime == null || hd.finishedTime == '') {
  401. $("#finishedTime").text("");
  402. } else {
  403. $("#finishedTime").text(hd.finishedTime);
  404. }
  405. $("#executor").text(hd.executor);
  406. }
  407. var hiddendangerAtt = res.data.attachList;
  408. if (hiddendangerAtt.length > 0) {
  409. var htmlImg = '';
  410. var htmlVideo = '';
  411. for (var i = 0; i < hiddendangerAtt.length; i++) {
  412. var att = hiddendangerAtt[i];
  413. if (att.attachType == "image") {
  414. /*图片*/
  415. htmlImg += '<a onclick="showImg(\'' + att.attachPath + '\');" style="margin-right: 10px;">';
  416. htmlImg += '<img style="width: 480px!important;height: 600px;max-width: 500px" src="' + att.attachPath + '">';
  417. htmlImg += '</a>';
  418. } else if (att.attachType == "video") {
  419. /*视频*/
  420. htmlVideo += '<a onclick="videoPlayer(\'' + att.attachPath + '\');" >';
  421. htmlVideo += '<div style="margin-right: 10px;width: 80px;height: 60px;">点击播放';
  422. htmlVideo += '</div>';
  423. htmlVideo += '</a>';
  424. }
  425. }
  426. if (htmlImg != '') {
  427. $('.hidden-danger-img').show();
  428. $('#hdangerAtt ').html(htmlImg);
  429. }
  430. if (htmlVideo != '') {
  431. $('.hidden-danger-video').show();
  432. $('#hdangerVideo ').html(htmlVideo);
  433. }
  434. }
  435. }
  436. }, 'get');
  437. /*评审记录*/
  438. admin.req(uParas.baseUrl + '/ent/hiddenDanger/getReviewRecord?hdangerId=' + hdangerId, null, function (res) {
  439. if (res.code == 1) {
  440. var records = res.data;
  441. var html = "";
  442. if (records.length > 0) {
  443. $("#hdangerReviewResult").text((records[0].hdangerReviewResult) != null ? (records[0].hdangerReviewResult) : '-');
  444. $("#hdangerReviewRemark").text((records[0].hdangerReviewRemark) != null ? (records[0].hdangerReviewRemark) : '-');
  445. $("#hdangerReviewTime").text((records[0].hdangerReviewTime) != null ? (records[0].hdangerReviewTime) : '-');
  446. $('.getReviewRecord').show();
  447. for (var i = 0; i < records.length; i++) {
  448. html += "<tr>";
  449. var record = records[i];
  450. html += "<td>" + (i + 1) + "</td>";
  451. html += "<td>" + record.createdTime + "</td>";
  452. html += "<td>" + record.groupName + "</td>";
  453. html += "<td>" + record.hdangerReviewByName + "</td>";
  454. html += "<td>" + record.hdangerReviewResult + "</td>";
  455. html += "<td>" + record.hdangerReviewRemark + "</td>";
  456. html += "</tr>";
  457. }
  458. $('#reviewRecord ').html(html);
  459. }
  460. }
  461. }, 'get');
  462. /*整改记录*/
  463. admin.req(uParas.baseUrl + '/ent/hiddenDanger/getRetifyRecord?hdangerId=' + hdangerId, null, function (res) {
  464. if (res.code == 1) {
  465. var records = res.data;
  466. if (records.length > 0) {
  467. $("#hdangerRetifyAmountspent").text((records[0].hdangerRetifyAmountspent) != null ? (records[0].hdangerRetifyAmountspent + ' 元') : '-');
  468. $("#hdangerRetifyTypeName").text((records[0].hdangerRetifyTypeName) != null ? (records[0].hdangerRetifyTypeName) : '-');
  469. $("#hdangerRetifyMeasures").text((records[0].hdangerRetifyMeasures) != null ? (records[0].hdangerRetifyMeasures) : '-');
  470. $("#hdangerRetifyReasons").text(((records[0].hdangerRetifyReasons) != null && (records[0].hdangerRetifyReasons) != '') ? (records[0].hdangerRetifyReasons) : '-');
  471. $("#hdangerRetifycreatedTime").text((records[0].createdTime) != null ? (records[0].createdTime) : '-');
  472. $("#hdangerRetifyAssistingunit").text((records[0].hdangerRetifyAssistingunit) != null ? (records[0].hdangerRetifyAssistingunit) : '-');
  473. var retifyAtt = records[0].attachList;
  474. if (retifyAtt.length > 0) {
  475. $('#retifyAtt ').html('');
  476. $('.retify-img').show();
  477. var atthtml = '';
  478. for (var i = 0; i < retifyAtt.length; i++) {
  479. var att = retifyAtt[i];
  480. if (att.attachType == "image") {
  481. atthtml += '<a onclick="showImg(\'' + att.attachPath + '\');" style="margin-right: 10px;">';
  482. atthtml += '<img style="width: 480px!important;height: 600px;max-width: 500px" src="' + att.attachPath + '">';
  483. atthtml += '</a>';
  484. }
  485. }
  486. $('#retifyAtt ').html(atthtml);
  487. }
  488. $('.getRetifyRecord').show();
  489. var html = "";
  490. for (var i = 0; i < records.length; i++) {
  491. html += "<tr>";
  492. var record = records[i];
  493. html += "<td>" + (i + 1) + "</td>";
  494. html += "<td>" + record.createdTime + "</td>";
  495. html += "<td>" + record.hdangerRetifyGroupName + "</td>";
  496. html += "<td>" + record.hdangerRetifyByName + "</td>";
  497. html += "<td>" + record.hdangerRetifyTypeName + "</td>";
  498. html += "<td>" + record.hdangerRetifyAssistingunit + "</td>";
  499. html += "<td>" + record.hdangerRetifyAmountspent + "</td>";
  500. html += "<td>" + record.hdangerRetifyReasons + "</td>";
  501. html += "<td>" + record.hdangerRetifyMeasures + "</td>";
  502. html += "</tr>";
  503. }
  504. $('#retifyRecord ').html(html);
  505. }
  506. }
  507. }, 'get');
  508. /*验收记录*/
  509. admin.req(uParas.baseUrl + '/ent/hiddenDanger/getAcceptRecord?hdangerId=' + hdangerId, null, function (res) {
  510. if (res.code == 1) {
  511. var records = res.data;
  512. if (records.length > 0) {
  513. $("#hdangerAcceptedResult").text((records[0].hdangerAcceptedResult) != null ? (records[0].hdangerAcceptedResult) : '-');
  514. $("#hdangerAcceptedRemark").text((records[0].hdangerAcceptedRemark) != null ? (records[0].hdangerAcceptedRemark) : '-');
  515. $("#hdangerAcceptedTime").text((records[0].hdangerAcceptedTime) != null ? (records[0].hdangerAcceptedTime) : '-');
  516. var acceptAtt = records[0].attachList;
  517. if (acceptAtt.length > 0) {
  518. $('#acceptAtt ').html('');
  519. $('.accept-img').show();
  520. var atthtml = '';
  521. for (var i = 0; i < acceptAtt.length; i++) {
  522. var att = acceptAtt[i];
  523. if (att.attachType == "image") {
  524. atthtml += '<a onclick="showImg(\'' + att.attachPath + '\');" style="margin-right: 10px;">';
  525. atthtml += '<img style="width: 480px!important;height: 600px;max-width: 500px" src="' + att.attachPath + '">';
  526. atthtml += '</a>';
  527. }
  528. }
  529. $('#acceptAtt ').html(atthtml);
  530. }
  531. $('.getAcceptRecord').show();
  532. var html = "";
  533. for (var i = 0; i < records.length; i++) {
  534. html += "<tr>";
  535. var record = records[i];
  536. html += "<td>" + (i + 1) + "</td>";
  537. html += "<td>" + record.createdTime + "</td>";
  538. html += "<td>" + record.groupName + "</td>";
  539. html += "<td>" + record.hdangerAcceptedByName + "</td>";
  540. html += "<td>" + record.hdangerAcceptedResult + "</td>";
  541. html += "<td>" + record.hdangerAcceptedRemark + "</td>";
  542. html += "</tr>";
  543. }
  544. $('#acceptRecord ').html(html);
  545. }
  546. }
  547. }, 'get');
  548. });
  549. function videoPlayer(url) {
  550. layer.open({
  551. type: 2,
  552. zIndex: 1000,
  553. title: "视频播放",
  554. shadeClose: true,
  555. area: ['650px', '530px'],
  556. content: "./videoPlayer.html?ipCameraUrl=" + url,
  557. fixed: false
  558. });
  559. }
  560. function showImg(src) {
  561. var imgHtml = "<img src='" + src + "' width='1000px' height='650'/>";
  562. layer.open({
  563. type: 1,
  564. shade: 0.1,
  565. offset: 'auto',
  566. area: [1000 + 'px', 650 + 'px'], // area: [width + 'px',height+'px'] //原图显示
  567. shadeClose: true,
  568. scrollbar: false,
  569. title: "图片附件预览", //不显示标题
  570. content: imgHtml, //捕获的元素,注意:最好该指定的元素要存放在body最外层,否则可能被其它的相对元素所影响
  571. // cancel: function () {
  572. // layer.msg('捕获就是从页面已经存在的元素上,包裹layer的结构', { time: 5000, icon: 6 });
  573. // }
  574. });
  575. }
  576. </script>
  577. </body>
  578. </html>