fix:无时间时展示内容

pull/250/head
lihui_ocr 1 year ago
parent 94b4e1dc3b
commit b91eee93cc

@ -753,12 +753,12 @@ watch(() => show.value, async (newVal) => {
<div class="time-item" style="margin-bottom: 4px;">
<SvgIcon color="#FFF" size="16" name="camera" style="margin-right: 4px;" />
<span class="time-value">{{ item?.photoDateTimestamp
? formatToDateHMS(Number(item.photoDateTimestamp)) : '-' }} </span>
? formatToDateHMS(Number(item.photoDateTimestamp)) : '- -' }} </span>
</div>
<div class="time-item">
<SvgIcon class="svg-time" color="#FFF" size="16" name="time" />
<span>{{ item.submitDateTimestamp
? formatToDateHMS(Number(item.submitDateTimestamp)) : '-' }}</span>
? formatToDateHMS(Number(item.submitDateTimestamp)) : '- -' }}</span>
</div>
</div>
</div>

@ -309,7 +309,10 @@ async function handleDragEnd(event, item) {
setBatch(false)
getTableData()
getImgList()
}else{
message.error(res.message)
}
taskStore.setInFile(false)
taskStore.setInFile(item.pictureId)
}
@ -989,7 +992,7 @@ function nodrage(){
<span>{{
item.photoDateTimestamp
? formatToDateHMS(Number(item.photoDateTimestamp))
: "-"
: "- -"
}}</span>
</div>
<div class="time-item time-item2">
@ -997,7 +1000,7 @@ function nodrage(){
<span>{{
item.submitDateTimestamp
? formatToDateHMS(Number(item.submitDateTimestamp))
: "-"
: "- -"
}}</span>
</div>
</div>
@ -1232,7 +1235,7 @@ function nodrage(){
<span>{{
item.photoDateTimestamp
? formatToDateHMS(Number(item.photoDateTimestamp))
: "-"
: "- -"
}}</span>
</div>
<div class="time-item time-item2">
@ -1240,7 +1243,7 @@ function nodrage(){
<span>{{
item.submitDateTimestamp
? formatToDateHMS(Number(item.submitDateTimestamp))
: "-"
: "- -"
}}</span>
</div>
</div>

@ -340,13 +340,13 @@ onUnmounted(() => {
<div class="time">
<SvgIcon color="#FFF" size="16" name="camera" />
<span class="current-time">{{ item.photoDateTimestamp ? formatToDateHMS(Number(item.photoDateTimestamp) ||
0) : '-'
0) : '- -'
}}</span>
</div>
<div class="time">
<SvgIcon color="#FFF" size="16" name="save" />
<span class="current-time">{{ item.submitDateTimestamp ? formatToDateHMS(Number(item.submitDateTimestamp)
|| 0) : '-'
|| 0) : '- -'
}}</span>
</div>
</div>

@ -190,7 +190,7 @@ function previewHandler(event: MouseEvent) {
<div class="time-item">
<SvgIcon class="svg-time" color="#FFF" size="16" name="camera-time" />
<span>{{ taskDetailInfo?.ocrPicture?.photoDateTimestamp ?? "-" }}</span>
<span>{{ taskDetailInfo?.ocrPicture?.photoDateTimestamp ?? "- -" }}</span>
</div>
<div class="time-item time-item2">
<SvgIcon class="svg-time" color="#FFF" size="16" name="submit-time" />

@ -647,14 +647,19 @@ defineExpose({
<div class="footer-times">
<div class="time" style="margin-bottom: 4px">
<SvgIcon color="#FFF" size="16" name="camera" />
<span class="time-value">{{ taskDetailInfo?.photoDateTimestamp }} </span>
<span class="time-value">{{
taskDetailInfo?.photoDateTimestamp
? format(taskDetailInfo?.photoDateTimestamp, "yyyy-MM-dd HH:mm:ss")
: "- -"
}}
</span>
</div>
<div class="time">
<SvgIcon color="#FFF" size="16" name="save" />
<span class="time-value">{{
taskDetailInfo?.submitDateTimestamp
? format(taskDetailInfo?.submitDateTimestamp, "yyyy-MM-dd HH:mm:ss")
: "-"
: "- -"
}}
</span>
</div>
@ -856,7 +861,7 @@ defineExpose({
<span class="current-time">{{
item.photoDateTimestamp
? formatToDateHMS(Number(item.photoDateTimestamp) || 0)
: "-"
: "- -"
}}</span>
</div>
<div class="time">

Loading…
Cancel
Save