123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta name="renderer" content="webkit">
- <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
- <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
- <meta http-equiv="pragma" content="no-cache">
- <meta http-equiv="Cache" content="no-cache">
- <meta http-equiv="cache-control" content="no-cache, must-revalidate">
- <meta http-equiv="expires" content="0">
- <meta name="viewport"
- content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
- <title>视频回放</title>
- <link rel="stylesheet" href="../css/index.css">
- <link rel="stylesheet" href="../css/style.css">
- <link rel="stylesheet" href="../css/iconfont.css">
- <script src="../js/vue.min.js"></script>
- <script src="../js/index.js"></script>
- <script src="../js/jquery.min.js"></script>
- <script type="text/javascript">
- document.write('<script src="../assets/init.js?id='+(new Date().getTime())+'" type="text/javascript" charset="utf-8"><\/script>');
- </script>
- <script>
- checkLogin();
- </script>
- <style type="text/css">
- * {
- padding: 0;
- margin: 0;
- box-sizing: border-box;
- }
- .yz_main{
- width: calc(100% - 160px);
- height: 100%;
- float: right;
- padding: 10px;
- }
- .yz_aside{
- width: 160px;
- height: 100%;
- float: left;
- color: #fff;
- background-color: #06162d;
- }
- .yz_aside li{
- cursor: pointer;
- padding: 7px 0;
- }
- li{
- list-style: none;
- }
- .warmli li{
- display: flex;
- align-items: center;
- font-size: 14px;
- color: #fff;
- padding:5px 10px;
- }
- .warmli li .iconfont{
- color: #0081ff;
- font-size: 1.4rem;
- margin-right: 4px;
- }
- .warmli li .act{
- color: #0081FF;
- }
- .el-table,.el-table tr {
- color: #d0d0d0;
- background-color: transparent;
- }
- .elTable {
- width: 100%;
- border: 1px solid rgba(255, 255, 255, 0.2);
- }
- .el-table::before {
- height: 0;
- }
- .el-table::after {
- width: 0;
- }
- .el-table,.el-table__expanded-cell {
- color: #ddd;
- background-color: transparent !important;
- }
- .el-table tr,.el-table td {
- font-size: 14px;
- background-color: transparent !important;
- }
- .el-table td.el-table__cell,.el-table th.el-table__cell.is-leaf {
- padding: 4px 0;
- border-bottom: 1px solid rgba(255, 255, 255, 0.2);
- }
- .el-table--border .el-table__cell {
- border-right: 1px solid rgba(255, 255, 255, 0.2);
- }
- .el-input__inner,input[type=text] {
- color: #ececec;
- height: 34px;
- line-height: 34px;
- border-color: transparent;
- background-color: rgba(255, 255, 255, 0.2);
- }
- .el-input__icon{
- line-height: 34px;
- }
- input:hover {
- border: none;
- outline: none;
- }
- </style>
- </head>
- <body>
- <div id="app" style="height:100vh;overflow: auto;">
- <div class="yz_aside warmli">
- <div class="padding-sm text-bold" style="color: #5793f3;">设备列表</div>
- <ul style="height: calc(100% - 52px);overflow: auto;" v-if="dataLi.length">
- <li v-for="(it,ind) in dataLi" :key="ind" @click="changTab(it.device_id)">
- <img :src="'../img/'+(it.on_line==0?'maozi_no':'maozi')+'.png'" style="width:24px;margin-right:6px;"/>
- <div class="text-sm" :class="it.device_id == nowTab.device_id?'act':(it.on_line ==1?'':'text-gray')">{{ it.nick }}</div>
- </li>
- </ul>
- <div v-else class="text-center padding-sm text-sm text-grey">
- 暂无设备
- </div>
- </div>
- <div class="yz_main ">
- <div class="margin-bottom-sm text-center">
- <el-button type="primary" size="small" @click="prenDay(-1)">前一天</el-button>
- <el-date-picker
- class="radius margin-lr-sm"
- style="width: 140px;"
- v-model="nowDate"
- type="date"
- @change="pickCli"
- value-format="yyyy-MM-dd"
- placeholder="开始时间">
- </el-date-picker>
- <el-button type="primary" size="small" @click="prenDay(1)">后一天</el-button>
- </div>
- <div style="height: calc(100% - 45px);overflow-y: auto;">
- <el-table :data="backLi" border class="elTable" stripe
- :header-cell-style="{background:'#082041',color:'#fff'}">
- <el-table-column align="center" type="index" width="80" label="序号"></el-table-column>
- <el-table-column align="center" prop="ctime" label="录制时间">
- <template slot-scope="scope">
- <span>{{ scope.row.ctime | getNew}}</span>
- </template>
- </el-table-column>
- <el-table-column align="center" prop="id" label="文件名称">
- <template slot-scope="scope">
- <span>视频:{{scope.row.id}}</span>
- </template>
- </el-table-column>
- <el-table-column align="center" prop="play_time" label="录制时长">
- <template slot-scope="scope">
- <span>{{scope.row.play_time | getLong}}</span>
- </template>
- </el-table-column>
- <el-table-column align="center" label="操作" width="160">
- <template slot-scope="scope">
- <el-button type="text" size="small" @click="Detail(scope.row)" class="text-blue"><i class="el-icon-view"></i>查看</el-button>
- <el-button type="text" size="small" @click="Dwonload(scope.row)" class="text-green"><i class="el-icon-download"></i>下载</el-button>
- <!-- <el-button type="text" size="small" @click="Delete(scope.row)" class="text-red"><i class="el-icon-delete"></i>删除</el-button> -->
- </template>
- </el-table-column>
- </el-table>
- </div>
- </div>
- <el-dialog
- title="视频回放"
- top="20px"
- :visible.sync="dialogVisible"
- :before-close="handleClose"
- width="80%">
- <div v-html="vidSrc"></div>
- </el-dialog>
- </div>
- <script type="text/javascript">
- document.write('<script src="../assets/helmetBack.js?id='+(new Date().getTime())+'" type="text/javascript" charset="utf-8"><\/script>');
- </script>
- </body>
- </html>
|