|
|
@@ -45,7 +45,7 @@
|
|
|
<div v-else>
|
|
|
<el-descriptions
|
|
|
title="录像质量"
|
|
|
- :column="2"
|
|
|
+ :column="3"
|
|
|
border
|
|
|
:label-style="labelStyle"
|
|
|
:contentStyle="content_style"
|
|
|
@@ -53,6 +53,9 @@
|
|
|
<el-descriptions-item label="检测结果">{{
|
|
|
getLabel(videoDiagnosisState, data.quality.quality)
|
|
|
}}</el-descriptions-item>
|
|
|
+ <el-descriptions-item label="检测日期">{{
|
|
|
+ dayjs().format("YYYY年M月D日")
|
|
|
+ }}</el-descriptions-item>
|
|
|
<el-descriptions-item label="更新时间">{{
|
|
|
dayjs(data.quality.updateTime).format("YYYY年M月D日H时m分")
|
|
|
}}</el-descriptions-item>
|
|
|
@@ -165,9 +168,7 @@
|
|
|
dayjs(integrity.recordDate).format("YYYY年M月D日")
|
|
|
}}</el-descriptions-item>
|
|
|
<el-descriptions-item label="丢失时长">{{
|
|
|
- integrity.loseDuration == 0
|
|
|
- ? "未丢失"
|
|
|
- : integrity.loseDuration + "分钟"
|
|
|
+ lostDurationText(integrity.loseDuration)
|
|
|
}}</el-descriptions-item>
|
|
|
<el-descriptions-item label="更新时间">{{
|
|
|
dayjs(integrity.updateTime).format("YYYY年M月D日H时m分")
|
|
|
@@ -358,7 +359,7 @@ export default {
|
|
|
},
|
|
|
getIntegrity(hostCode, channelCode, date) {
|
|
|
integrity(hostCode, channelCode, dayjs(date).format("YYYY-MM-DD")).then((r) => {
|
|
|
-
|
|
|
+
|
|
|
this.handleInterity(r.data);
|
|
|
});
|
|
|
},
|
|
|
@@ -392,6 +393,21 @@ export default {
|
|
|
onSelectDate(date) {
|
|
|
this.getIntegrity(this.data.hostCode,this. data.channelCode, date);
|
|
|
},
|
|
|
+ lostDurationText(duration) {
|
|
|
+ if (!duration) {
|
|
|
+ return '未丢失'
|
|
|
+ }
|
|
|
+
|
|
|
+ let str = ''
|
|
|
+ let hour = Math.floor(duration / 60)
|
|
|
+ if (hour > 0) {
|
|
|
+ str += `${hour}小时`
|
|
|
+ }
|
|
|
+
|
|
|
+ let minute = duration % 60
|
|
|
+ str += `${minute}分`
|
|
|
+ return str
|
|
|
+ }
|
|
|
},
|
|
|
};
|
|
|
</script>
|