|
@@ -119,16 +119,15 @@
|
|
|
if (!dateRange.value) {
|
|
if (!dateRange.value) {
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
- if (cameraDetailStore.detail?.pushstreamIp) {
|
|
|
|
|
- cameraDetailStore.clear();
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ // if (cameraDetailStore.detail?.pushstreamIp) {
|
|
|
|
|
+ // cameraDetailStore.clear();
|
|
|
|
|
+ // }
|
|
|
const nvrParams: GetReplayNvrBody = {
|
|
const nvrParams: GetReplayNvrBody = {
|
|
|
cameraId: cameraDetailStore.cameraId,
|
|
cameraId: cameraDetailStore.cameraId,
|
|
|
startTime: dayjs(dateRange.value[0]).format('YYYY-MM-DD HH:mm:ss'),
|
|
startTime: dayjs(dateRange.value[0]).format('YYYY-MM-DD HH:mm:ss'),
|
|
|
endTime: dayjs(dateRange.value[1]).format('YYYY-MM-DD HH:mm:ss'),
|
|
endTime: dayjs(dateRange.value[1]).format('YYYY-MM-DD HH:mm:ss'),
|
|
|
};
|
|
};
|
|
|
secondMargin.value = dateRange.value[0].getSeconds();
|
|
secondMargin.value = dateRange.value[0].getSeconds();
|
|
|
- confirmDate.value = true;
|
|
|
|
|
if (nowTime) {
|
|
if (nowTime) {
|
|
|
const nowTimeMin = new Date(nowTime.setSeconds(0));
|
|
const nowTimeMin = new Date(nowTime.setSeconds(0));
|
|
|
if (nowTimeMin < dateRange.value[0]) {
|
|
if (nowTimeMin < dateRange.value[0]) {
|
|
@@ -139,10 +138,18 @@
|
|
|
secondMargin.value = nowTimeMin.getSeconds();
|
|
secondMargin.value = nowTimeMin.getSeconds();
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- getReplayNvr(nvrParams).then((res) => {
|
|
|
|
|
- min = 0;
|
|
|
|
|
- nvrUrl.value = res.data;
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ getReplayNvr(nvrParams)
|
|
|
|
|
+ .then((res) => {
|
|
|
|
|
+ confirmDate.value = true;
|
|
|
|
|
+
|
|
|
|
|
+ min = 0;
|
|
|
|
|
+ nvrUrl.value = res;
|
|
|
|
|
+ })
|
|
|
|
|
+ .catch(() => {
|
|
|
|
|
+ confirmDate.value = false;
|
|
|
|
|
+ min = 0;
|
|
|
|
|
+ nvrUrl.value = '';
|
|
|
|
|
+ });
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
const clearNvrUrl = () => {
|
|
const clearNvrUrl = () => {
|