P21.html 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  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. display: flex;
  54. align-items: center;
  55. font-size: 14px;
  56. color: #fff;
  57. padding:5px 10px;
  58. }
  59. .warmli li .iconfont{
  60. color: #0081ff;
  61. font-size: 1.4rem;
  62. margin-right: 4px;
  63. }
  64. .warmli li .act{
  65. color: #0081FF;
  66. }
  67. .el-table,.el-table tr {
  68. color: #d0d0d0;
  69. background-color: transparent;
  70. }
  71. .elTable {
  72. width: 100%;
  73. border: 1px solid rgba(255, 255, 255, 0.2);
  74. }
  75. .el-table::before {
  76. height: 0;
  77. }
  78. .el-table::after {
  79. width: 0;
  80. }
  81. .el-table,.el-table__expanded-cell {
  82. color: #ddd;
  83. background-color: transparent !important;
  84. }
  85. .el-table tr,.el-table td {
  86. font-size: 14px;
  87. background-color: transparent !important;
  88. }
  89. .el-table td.el-table__cell,.el-table th.el-table__cell.is-leaf {
  90. padding: 4px 0;
  91. border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  92. }
  93. .el-table--border .el-table__cell {
  94. border-right: 1px solid rgba(255, 255, 255, 0.2);
  95. }
  96. .el-input__inner,input[type=text] {
  97. color: #ececec;
  98. height: 34px;
  99. line-height: 34px;
  100. border-color: transparent;
  101. background-color: rgba(255, 255, 255, 0.2);
  102. }
  103. .el-input__icon{
  104. line-height: 34px;
  105. }
  106. input:hover {
  107. border: none;
  108. outline: none;
  109. }
  110. </style>
  111. </head>
  112. <body>
  113. <div id="app" style="height:100vh;overflow: auto;">
  114. <div class="yz_aside warmli">
  115. <div class="padding-sm text-bold" style="color: #5793f3;">设备列表</div>
  116. <ul style="height: calc(100% - 52px);overflow: auto;" v-if="dataLi.length">
  117. <li v-for="(it,ind) in dataLi" :key="ind" @click="changTab(it.device_id)">
  118. <img :src="'../img/'+(it.on_line==0?'maozi_no':'maozi')+'.png'" style="width:24px;margin-right:6px;"/>
  119. <div class="text-sm" :class="it.device_id == nowTab.device_id?'act':(it.on_line ==1?'':'text-gray')">{{ it.nick }}</div>
  120. </li>
  121. </ul>
  122. <div v-else class="text-center padding-sm text-sm text-grey">
  123. 暂无设备
  124. </div>
  125. </div>
  126. <div class="yz_main ">
  127. <div class="margin-bottom-sm text-center">
  128. <el-button type="primary" size="small" @click="prenDay(-1)">前一天</el-button>
  129. <el-date-picker
  130. class="radius margin-lr-sm"
  131. style="width: 140px;"
  132. v-model="nowDate"
  133. type="date"
  134. @change="pickCli"
  135. value-format="yyyy-MM-dd"
  136. placeholder="开始时间">
  137. </el-date-picker>
  138. <el-button type="primary" size="small" @click="prenDay(1)">后一天</el-button>
  139. </div>
  140. <div style="height: calc(100% - 45px);overflow-y: auto;">
  141. <el-table :data="backLi" border class="elTable" stripe
  142. :header-cell-style="{background:'#082041',color:'#fff'}">
  143. <el-table-column align="center" type="index" width="80" label="序号"></el-table-column>
  144. <el-table-column align="center" prop="ctime" label="录制时间">
  145. <template slot-scope="scope">
  146. <span>{{ scope.row.ctime | getNew}}</span>
  147. </template>
  148. </el-table-column>
  149. <el-table-column align="center" prop="id" label="文件名称">
  150. <template slot-scope="scope">
  151. <span>视频:{{scope.row.id}}</span>
  152. </template>
  153. </el-table-column>
  154. <el-table-column align="center" prop="play_time" label="录制时长">
  155. <template slot-scope="scope">
  156. <span>{{scope.row.play_time | getLong}}</span>
  157. </template>
  158. </el-table-column>
  159. <el-table-column align="center" label="操作" width="160">
  160. <template slot-scope="scope">
  161. <el-button type="text" size="small" @click="Detail(scope.row)" class="text-blue"><i class="el-icon-view"></i>查看</el-button>
  162. <el-button type="text" size="small" @click="Dwonload(scope.row)" class="text-green"><i class="el-icon-download"></i>下载</el-button>
  163. <!-- <el-button type="text" size="small" @click="Delete(scope.row)" class="text-red"><i class="el-icon-delete"></i>删除</el-button> -->
  164. </template>
  165. </el-table-column>
  166. </el-table>
  167. </div>
  168. </div>
  169. <el-dialog
  170. title="视频回放"
  171. top="20px"
  172. :visible.sync="dialogVisible"
  173. :before-close="handleClose"
  174. width="80%">
  175. <div v-html="vidSrc"></div>
  176. </el-dialog>
  177. </div>
  178. <script type="text/javascript">
  179. document.write('<script src="../assets/helmetBack.js?id='+(new Date().getTime())+'" type="text/javascript" charset="utf-8"><\/script>');
  180. </script>
  181. </body>
  182. </html>