hddetails.html 34 KB

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