| src/views/dataCenter/components/searchData.vue | ●●●●● patch | view | raw | blame | history | |
| src/views/dataCenter/dataCenter.vue | ●●●●● patch | view | raw | blame | history |
src/views/dataCenter/components/searchData.vue
@@ -255,11 +255,18 @@ // 清空 const handleReset = () => { dateRange.value = []; Object.keys(searchForm).forEach(key => { searchForm[key] = ''; }); searchForm.jobName = '' searchForm.name = '' searchForm.areaCode = userAreaCode.value searchForm.endTime = endTime.format(timeFormat) searchForm.startTime = startTime.format(timeFormat) searchForm.deviceSn = '' searchForm.resultType = '' searchForm.photoType = '' handleNodeClick({ id: userAreaCode.value }); handleSearch(); console.log('searchForm',searchForm); }; // 下载 const downloadFun =()=>{ src/views/dataCenter/dataCenter.vue
@@ -147,7 +147,7 @@ <div>拍摄时间:{{ dialogDetailList?.createTime }}</div> <div>文件类型:{{ photoTypeMap[dialogDetailList?.photoType] }}</div> <div>文件格式:{{ resultTypeMap[dialogDetailList?.resultType] }}</div> <div>照片文件大小:{{ dialogDetailList?.attachSize }}</div> <div>照片文件大小:{{bytesToMB(dialogDetailList?.attachSize) }}</div> <div> <el-button type="success" @@ -217,6 +217,10 @@ import { getShowImg, getSmallImg } from '@/utils/util'; import { onMounted, watch } from 'vue'; import dayjs from 'dayjs'; function bytesToMB(bytes, decimalPlaces = 2) { if (typeof bytes !== 'number' || bytes < 0) return '无效输入'; return (bytes / 1048576).toFixed(decimalPlaces) + ' MB'; } // 视频一帧 function convertVideoUrlToThumbnail(videoUrl) { // 检查是否是有效的视频URL