|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
<template>
|
|
|
<div class="videoDaysDetail">
|
|
<div class="videoDaysDetail">
|
|
|
- <DialogCom title="录像详情" :visible.sync="isShow" width="1200px">
|
|
|
|
|
|
|
+ <DialogCom title="录像详情" :visible.sync="isShow" width="1100px">
|
|
|
<el-descriptions
|
|
<el-descriptions
|
|
|
title="基础信息"
|
|
title="基础信息"
|
|
|
:column="2"
|
|
:column="2"
|
|
@@ -45,7 +45,9 @@
|
|
|
>{{ data.storage.realDays }}天</el-descriptions-item
|
|
>{{ data.storage.realDays }}天</el-descriptions-item
|
|
|
>
|
|
>
|
|
|
<el-descriptions-item label="最早录像存储日期">{{
|
|
<el-descriptions-item label="最早录像存储日期">{{
|
|
|
- dayjs(data.storage.earliestTime).format("YYYY年M月D日")
|
|
|
|
|
|
|
+ data.storage.earliestTime
|
|
|
|
|
+ ? dayjs(data.storage.earliestTime).format("YYYY年M月D日")
|
|
|
|
|
+ : ""
|
|
|
}}</el-descriptions-item>
|
|
}}</el-descriptions-item>
|
|
|
</el-descriptions>
|
|
</el-descriptions>
|
|
|
<el-descriptions :column="1">
|
|
<el-descriptions :column="1">
|
|
@@ -74,7 +76,8 @@
|
|
|
|
|
|
|
|
<div class="calendar-box">
|
|
<div class="calendar-box">
|
|
|
<Calendar
|
|
<Calendar
|
|
|
- :startDate="data.storage.earliestTime"
|
|
|
|
|
|
|
+ :startDate="calenderStartDate"
|
|
|
|
|
+ :endDate="new Date(dayjs().add(-1, 'day').startOf('day'))"
|
|
|
:full="data.storage.fullDates"
|
|
:full="data.storage.fullDates"
|
|
|
:paritialLoss="data.storage.partialLossDates"
|
|
:paritialLoss="data.storage.partialLossDates"
|
|
|
:allLoss="data.storage.allLostDates"
|
|
:allLoss="data.storage.allLostDates"
|
|
@@ -82,14 +85,13 @@
|
|
|
></Calendar>
|
|
></Calendar>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
- <div style="height:10px"></div>
|
|
|
|
|
|
|
+ <div style="height: 10px"></div>
|
|
|
<el-descriptions
|
|
<el-descriptions
|
|
|
title="录像完整性"
|
|
title="录像完整性"
|
|
|
:column="3"
|
|
:column="3"
|
|
|
border
|
|
border
|
|
|
:label-style="labelStyle"
|
|
:label-style="labelStyle"
|
|
|
:contentStyle="content_style"
|
|
:contentStyle="content_style"
|
|
|
-
|
|
|
|
|
v-if="integrity == null || integrity.state == null"
|
|
v-if="integrity == null || integrity.state == null"
|
|
|
>
|
|
>
|
|
|
<el-descriptions-item label="检测结果"> 未知 </el-descriptions-item>
|
|
<el-descriptions-item label="检测结果"> 未知 </el-descriptions-item>
|
|
@@ -309,6 +311,22 @@ export default {
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
props: ["videoIntegrityState", "videoDaysState", "videoDiagnosisState"],
|
|
props: ["videoIntegrityState", "videoDaysState", "videoDiagnosisState"],
|
|
|
|
|
+ computed: {
|
|
|
|
|
+ calenderStartDate() {
|
|
|
|
|
+ if (this.data == null || this.data.storage == null) {
|
|
|
|
|
+ return new Date();
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ if (this.data.storage.earliestTime) {
|
|
|
|
|
+ return this.data.storage.earliestTime;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ let d = dayjs().add(this.data.storage.planDays * -1 - 1, "day");
|
|
|
|
|
+
|
|
|
|
|
+ return d;
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
methods: {
|
|
methods: {
|
|
|
dayjs,
|
|
dayjs,
|
|
|
getLabel,
|
|
getLabel,
|
|
@@ -379,7 +397,10 @@ export default {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
let minute = duration % 60;
|
|
let minute = duration % 60;
|
|
|
- str += `${minute}分`;
|
|
|
|
|
|
|
+ if (minute > 0) {
|
|
|
|
|
+ str += `${minute}分`;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
return str;
|
|
return str;
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|