pull/1/head
lizijiee 1 year ago
commit e434b4155e

1
components.d.ts vendored

@ -27,6 +27,7 @@ declare module 'vue' {
NGi: typeof import('naive-ui')['NGi'] NGi: typeof import('naive-ui')['NGi']
NGrid: typeof import('naive-ui')['NGrid'] NGrid: typeof import('naive-ui')['NGrid']
NGridItem: typeof import('naive-ui')['NGridItem'] NGridItem: typeof import('naive-ui')['NGridItem']
NIcon: typeof import('naive-ui')['NIcon']
NImage: typeof import('naive-ui')['NImage'] NImage: typeof import('naive-ui')['NImage']
NInput: typeof import('naive-ui')['NInput'] NInput: typeof import('naive-ui')['NInput']
NMessageProvider: typeof import('naive-ui')['NMessageProvider'] NMessageProvider: typeof import('naive-ui')['NMessageProvider']

@ -546,13 +546,13 @@ function getPercent(pictureid: string) {
</n-grid> </n-grid>
</div> </div>
<div class="time"> <div class="time">
<div class="time-item"> <div v-if="taskDetailInfo?.ocrPicture?.photoDateTimestamp" class="time-item">
<SvgIcon class="svg-time" color="#FFF" size="16" name="camera-time" /> <SvgIcon class="svg-time" color="#FFF" size="16" name="camera-time" />
<span>{{ formatToDateHMS(taskDetailInfo.createdate || 0) }}</span> <span>{{ formatToDateHMS(Number(taskDetailInfo.ocrPicture.photoDateTimestamp) || 0) }}</span>
</div> </div>
<div class="time-item time-item2"> <div v-if="taskDetailInfo?.ocrPicture?.submitDateTimestamp" class="time-item time-item2">
<SvgIcon class="svg-time" color="#FFF" size="16" name="submit-time" /> <SvgIcon class="svg-time" color="#FFF" size="16" name="submit-time" />
<span>{{ formatToDateHMS(taskDetailInfo.createdate || 0) }}</span> <span>{{ formatToDateHMS(Number(taskDetailInfo.ocrPicture.submitDateTimestamp) || 0) }}</span>
</div> </div>
</div> </div>
<div style="display: none"> <div style="display: none">
@ -565,6 +565,7 @@ function getPercent(pictureid: string) {
</div> </div>
<div class="right"> <div class="right">
<n-scrollbar v-if="totalCount > 0" style="max-height: 100%"> <n-scrollbar v-if="totalCount > 0" style="max-height: 100%">
<div class="right-card">
<div class="header"> <div class="header">
<span>相似图片({{ totalCount }})</span> <span>相似图片({{ totalCount }})</span>
<SvgIcon <SvgIcon
@ -589,15 +590,15 @@ function getPercent(pictureid: string) {
<div class="small-mark" /> <div class="small-mark" />
<div class="check"> <div class="check">
<n-checkbox <n-checkbox
v-show="batch" v-show="batch && item.historyStates === 1"
v-model:checked="item.checked" v-model:checked="item.checked"
@click.stop @click.stop
@update:checked="onCheckChange($event, item)" @update:checked="onCheckChange($event, item)"
/> />
</div> </div>
<!-- <img class="tag-status" src="@/assets/images/task/tag-pass.png" alt=""> --> <img v-if="item.historyStates === 2" class="tag-status" src="@/assets/images/task/tag-pass.png" alt="">
<img v-if="item.historyStates === 3" class="tag-status" src="@/assets/images/task/tag-not-pass.png" alt="">
<div class="time"> <div class="time">
<div v-if="item.photoDateTimestamp" class="time-item"> <div v-if="item.photoDateTimestamp" class="time-item">
<SvgIcon class="svg-time" color="#FFF" size="8" name="camera-time" /> <SvgIcon class="svg-time" color="#FFF" size="8" name="camera-time" />
@ -613,6 +614,7 @@ function getPercent(pictureid: string) {
</div> </div>
</div> </div>
</div> </div>
</div>
</n-scrollbar> </n-scrollbar>
<n-empty v-else description="暂无数据" /> <n-empty v-else description="暂无数据" />
</div> </div>
@ -908,6 +910,10 @@ function getPercent(pictureid: string) {
margin-left: 20px; margin-left: 20px;
padding: 24px; padding: 24px;
.right-card{
padding: 3px;
}
.header { .header {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
@ -930,14 +936,14 @@ function getPercent(pictureid: string) {
box-sizing: border-box; box-sizing: border-box;
border-radius: 8px; border-radius: 8px;
position: relative; position: relative;
overflow: hidden; // overflow: hidden;
margin: 0px 16px 27px 0px; margin: 0px 16px 27px 0px;
.small-mark{ .small-mark{
width: 100%; width: 100%;
height: 36px; height: 36px;
background: linear-gradient(180deg,rgba(0,0,0,0.01), rgba(0,0,0,0.44) 88%); background: linear-gradient(180deg,rgba(0,0,0,0.01), rgba(0,0,0,0.44) 88%);
border-radius: 0px 8px 8px 0px; border-radius: 0px 8px 8px 8px;
position: absolute; position: absolute;
left: 0; left: 0;
bottom: 0; bottom: 0;
@ -946,10 +952,10 @@ function getPercent(pictureid: string) {
.tag-status{ .tag-status{
width: 46px; width: 46px;
height: 18px; height: 22px;
position: absolute; position: absolute;
left: 0; left: -4px;
top: 0; top: 4px;
} }
.time { .time {

Loading…
Cancel
Save