| | |
| | | <el-table-column label="快照" width="80" align="center"> |
| | | <template slot-scope="scope"> |
| | | <img style="max-height: 3rem;max-width: 4rem;" |
| | | v-if="scope.row.subCount === 0 && scope.row.parental === 0" |
| | | :id="scope.row.deviceId + '_' + scope.row.channelId" |
| | | :src="getSnap(scope.row)" |
| | | @error="getSnapErrorEvent($event.target.id)" |
| | |
| | | <el-button size="mini" icon="el-icon-switch-button" type="danger" v-if="!!scope.row.streamId" |
| | | @click="stopDevicePush(scope.row)">停止 |
| | | </el-button> |
| | | <el-button size="mini" icon="el-icon-s-open" type="primary" v-if="scope.row.subCount > 0" |
| | | <el-button size="mini" icon="el-icon-s-open" type="primary" v-if="scope.row.subCount > 0 || scope.row.parental === 1" |
| | | @click="changeSubchannel(scope.row)">查看 |
| | | </el-button> |
| | | <el-button size="mini" icon="el-icon-video-camera" type="primary" @click="queryRecords(scope.row)">设备录象 |
| | | <el-button size="mini" icon="el-icon-video-camera" type="primary" @click="queryRecords(scope.row)">设备录像 |
| | | </el-button> |
| | | <!-- <el-button size="mini" @click="sendDevicePush(scope.row)">录像查询</el-button> --> |
| | | </el-button-group> |
| | |
| | | that.initData(); |
| | | }, 1000) |
| | | |
| | | } else { |
| | | that.$message.error(res.data.msg); |
| | | } |
| | | }).catch(function (e) { |
| | | that.isLoging = false; |
| | | that.$message.error("请求超时"); |
| | | }); |
| | | }, |
| | | queryRecords: function (itemData) { |
| | | var format = moment().format("YYYY-M-D"); |
| | | var format = moment().format("yyyy-MM-DD"); |
| | | let deviceId = this.deviceId; |
| | | let channelId = itemData.channelId; |
| | | this.$refs.devicePlayer.openDialog("record", deviceId, channelId, {date: format}) |