P04.html 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta name="renderer" content="webkit">
  5. <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
  6. <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
  7. <meta http-equiv="pragma" content="no-cache">
  8. <meta http-equiv="Cache" content="no-cache">
  9. <meta http-equiv="cache-control" content="no-cache, must-revalidate">
  10. <meta http-equiv="expires" content="0">
  11. <meta name="viewport"
  12. content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  13. <title>报警统计</title>
  14. <link rel="stylesheet" href="../css/index.css">
  15. <link rel="stylesheet" href="../css/style.css">
  16. <link rel="stylesheet" href="../css/iconfont.css">
  17. <script src="../js/vue.min.js"></script>
  18. <script src="../js/index.js"></script>
  19. <script src="../js/jquery.min.js"></script>
  20. <script type="text/javascript">
  21. document.write('<script src="../assets/init.js?id='+(new Date().getTime())+'" type="text/javascript" charset="utf-8"><\/script>');
  22. </script>
  23. <script>
  24. checkLogin();
  25. </script>
  26. <style type="text/css">
  27. * {
  28. padding: 0;
  29. margin: 0;
  30. box-sizing: border-box;
  31. }
  32. .yz_main{
  33. width: calc(100% - 160px);
  34. height: 100%;
  35. float: right;
  36. padding: 10px;
  37. }
  38. .yz_aside{
  39. width: 160px;
  40. height: 100%;
  41. float: left;
  42. color: #fff;
  43. background-color: #06162d;
  44. }
  45. .yz_aside li{
  46. cursor: pointer;
  47. padding: 7px 0;
  48. }
  49. li{
  50. list-style: none;
  51. }
  52. .warmli li{
  53. font-size: 14px;
  54. color: #94d1ff;
  55. padding: 7px 0 7px 33px;
  56. }
  57. .warmli li.act{
  58. color: #fff;
  59. background-color: #0081FF;
  60. }
  61. .el-pagination__jump,.el-pagination__total{
  62. color: #fff;
  63. }
  64. .Sense .el-input__inner{
  65. background-color: transparent;
  66. border: none;
  67. color: #fff;
  68. }
  69. .detailli{
  70. width:24%;
  71. margin: 0 0.5% 10px;
  72. color:#94d1ff;
  73. }
  74. .detailli i{
  75. margin-right: 4px;
  76. }
  77. @media screen and (max-width: 700px) {
  78. .detailli{
  79. width:100%;
  80. }
  81. }
  82. .el-image__error{
  83. color: #fff;
  84. background-color: #b1b1b1;
  85. }
  86. .el-dialog__body{
  87. padding: 0;
  88. }
  89. .el-dialog__header{
  90. padding: 5px 20px;
  91. }
  92. .el-dialog__title{
  93. font-size: 14px
  94. }
  95. .el-dialog__headerbtn{
  96. top: 10px;
  97. }
  98. .el-date-editor.el-input{
  99. width: 140px;
  100. }
  101. .el-table,.el-table__expanded-cell {
  102. color: #b4b4b4;
  103. background-color: rgba(255,255,255,0) !important;
  104. }
  105. .el-table td.el-table__cell,.el-table th.el-table__cell.is-leaf{
  106. border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  107. }
  108. .el-table--border .el-table__cell{
  109. border-right: 1px solid rgba(255, 255, 255, 0.2);
  110. }
  111. .el-table::before{
  112. background-color: rgba(255,255,255,0) !important;
  113. }
  114. </style>
  115. </head>
  116. <body>
  117. <div id="app" style="height:100vh;overflow: auto;">
  118. <div class="yz_aside warmli">
  119. <div v-for="(item,index) in warmLi" :key="index">
  120. <div style="color: #5793f3;" class="padding-sm yz_cursor" @click="changeShow(index)">
  121. <i class="text-lg iconfont" :class="!item.show?'icon-jia-xianxingfangkuang':'icon-jian-xianxingfangkuang'"></i>
  122. <span>{{item.label}}</span>
  123. </div>
  124. <ul v-if="item.show">
  125. <li v-for="(subit,subind) in item.children" :key="subind"
  126. :class="subit.type == ajaxType||subit.type == queryRame.typestr?'act':''" :data-type="subit.type"
  127. @click="changType">{{subit.label}}</li>
  128. </ul>
  129. </div>
  130. </div>
  131. <div class="yz_main" v-if="!isGen">
  132. <div class="margin-bottom-sm">
  133. <el-date-picker
  134. class="Sense radius"
  135. v-model="starDay"
  136. type="date"
  137. value-format="yyyy-MM-dd"
  138. placeholder="开始时间">
  139. </el-date-picker>
  140. <el-date-picker
  141. class="Sense radius margin-lr-sm"
  142. v-model="endDay"
  143. type="date"
  144. value-format="yyyy-MM-dd"
  145. placeholder="结束时间">
  146. </el-date-picker>
  147. <el-button type="primary" size="small" @click="seachLi">查询</el-button>
  148. </div>
  149. <div style="height: calc(100% - 90px);overflow-y: auto;">
  150. <div v-if="dataLi.length" class="flex flex-wrap">
  151. <template v-for="(item,index) in dataLi" :key="index">
  152. <div class="detailli Sense">
  153. <div class="padding-xs yz_cursor" style="height:150px">
  154. <el-image :src="item.imageUrl | setImg(0)" :preview-src-list="item.imageUrl | setImg(1)" style="width: 100%;height: 100%;"></el-image>
  155. </div>
  156. <div class="flex justify-between padding-sm" style="font-size: 13px;">
  157. <div>
  158. <div><i class="el-icon-warning-outline"></i>{{item.msgTypeCn}}</div>
  159. <div class="margin-tb-sm"><i class="el-icon-location-outline"></i>{{item.channelAlias}}</div>
  160. <div><i class="el-icon-time"></i>{{item.createDate | setTime}}</div>
  161. </div>
  162. <div>
  163. <div>LV.{{item.msgLevel}}</div>
  164. <div class="margin-tb-sm yz_cursor" @click="seeVid(item.videoUrl);">
  165. <i class="el-icon-video-camera"></i>视频
  166. </div>
  167. </div>
  168. </div>
  169. </div>
  170. </template>
  171. </div>
  172. <div v-else class="flex align-center justify-center" style="height: 100%;">
  173. <img src="../img/nodata.png" alt="" style="width: 40%;">
  174. </div>
  175. </div>
  176. <div style="background-color: #06162d;" class="margin-tb-sm padding-xs">
  177. <el-pagination
  178. @current-change="handleCurrentChange"
  179. :current-page="curPage"
  180. background
  181. :page-size="12"
  182. layout="total, prev, pager, next, jumper"
  183. :total="allTotal">
  184. </el-pagination>
  185. </div>
  186. </div>
  187. <div class="yz_main" v-else>
  188. <div class="margin-bottom-sm">
  189. <el-date-picker
  190. class="Sense radius"
  191. v-model="queryRame.startTime"
  192. type="date"
  193. value-format="yyyy-MM-dd"
  194. placeholder="开始时间">
  195. </el-date-picker>
  196. <el-date-picker
  197. class="Sense radius margin-lr-sm"
  198. v-model="queryRame.endTime"
  199. type="date"
  200. value-format="yyyy-MM-dd"
  201. placeholder="结束时间">
  202. </el-date-picker>
  203. <el-button type="primary" size="small" @click="seachGenLi">查询</el-button>
  204. </div>
  205. <el-table :data="tableData"
  206. height="calc(100vh - 70px)"
  207. ref="singleTable"
  208. highlight-current-row
  209. :row-style="{ background: 'transparent' }"
  210. :cell-style="{background: 'transparent',padding: '8px 0' }"
  211. :header-cell-style="{ background: '#0068ff',color: 'var(--white)',padding: '5px 0' }">
  212. <el-table-column align="center" type="index" label="序号"></el-table-column>
  213. <el-table-column align="center" prop="typeId" label="报警类型">
  214. <template slot-scope="scope">
  215. {{scope.row.typeId | getType}}
  216. </template>
  217. </el-table-column>
  218. <el-table-column align="center" prop="startTime" label="报警时间"></el-table-column>
  219. <el-table-column align="center" label="图片">
  220. <template slot-scope="scope">
  221. <i class="el-icon-picture pointer" @click="seeDetail(scope.row, 0)"></i>
  222. </template>
  223. </el-table-column>
  224. <el-table-column align="center" label="视频">
  225. <template slot-scope="scope">
  226. <i class="el-icon-video-camera pointer" @click="seeDetail(scope.row, 1)"></i>
  227. </template>
  228. </el-table-column>
  229. </el-table>
  230. </div>
  231. <el-dialog
  232. title="视频回放"
  233. top="20px"
  234. :visible.sync="dialogVisible"
  235. :before-close="handleClose"
  236. width="80%">
  237. <div v-html="vidSrc"></div>
  238. </el-dialog>
  239. <el-dialog
  240. title="图片"
  241. top="20px"
  242. :visible.sync="dialogVisibleImg"
  243. width="80%">
  244. <img style="width:100%;" :src="imgSrc" alt="" />
  245. </el-dialog>
  246. </div>
  247. <script type="text/javascript">
  248. document.write('<script src="../assets/antiFatigue.js?id='+(new Date().getTime())+'" type="text/javascript" charset="utf-8"><\/script>');
  249. document.write('<script src="../assets/alarmManage.js?id='+(new Date().getTime())+'" type="text/javascript" charset="utf-8"><\/script>');
  250. </script>
  251. </body>
  252. </html>