支持海康摄像头国标录像查看播放
This commit is contained in:
@@ -244,7 +244,7 @@ export default {
|
||||
});
|
||||
},
|
||||
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})
|
||||
|
||||
@@ -453,9 +453,19 @@ export default {
|
||||
method: 'get',
|
||||
url: '/api/gb_record/query/' + this.deviceId + '/' + this.channelId + '?startTime=' + startTime + '&endTime=' + endTime
|
||||
}).then(function (res) {
|
||||
// 处理时间信息
|
||||
that.videoHistory.searchHistoryResult = res.data.recordList;
|
||||
that.recordsLoading = false;
|
||||
console.log(res)
|
||||
if(res.data.code === 0) {
|
||||
// 处理时间信息
|
||||
that.videoHistory.searchHistoryResult = res.data.data.recordList;
|
||||
that.recordsLoading = false;
|
||||
}else {
|
||||
this.$message({
|
||||
showClose: true,
|
||||
message: res.data.msg,
|
||||
type: "error",
|
||||
});
|
||||
}
|
||||
|
||||
}).catch(function (e) {
|
||||
console.log(e.message);
|
||||
// that.videoHistory.searchHistoryResult = falsificationData.recordData;
|
||||
|
||||
Reference in New Issue
Block a user