|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
<script lang="ts" setup>
|
|
|
|
|
import { computed, nextTick, onMounted,onUnmounted, reactive, ref, watch } from 'vue'
|
|
|
|
|
import { computed, nextTick, onMounted, onUnmounted, onUpdated, reactive, ref, watch } from 'vue'
|
|
|
|
|
import Masonry from 'masonry-layout'
|
|
|
|
|
import { useInfiniteScroll } from '@vueuse/core'
|
|
|
|
|
import { debounce } from 'lodash-es'
|
|
|
|
@ -14,6 +14,7 @@ import { TASK_STATUS_OBJ } from '@/enums/index'
|
|
|
|
|
import { formatToDateHMS } from '@/utils/dateUtil'
|
|
|
|
|
import { getSimilarityList, getTaskDetailInfo } from '@/api/task/task'
|
|
|
|
|
import emitter from '@/utils/mitt'
|
|
|
|
|
import bgLoading from '@/assets/images/bg-loading.png'
|
|
|
|
|
|
|
|
|
|
const emit = defineEmits<{
|
|
|
|
|
(e: 'reject', params: any)
|
|
|
|
@ -25,6 +26,7 @@ const cardStyle = {
|
|
|
|
|
'--n-padding-left': '120px',
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const bgLoadingImg = ref(bgLoading)
|
|
|
|
|
const totalCount = ref(0)
|
|
|
|
|
const timeRange = ref('all')
|
|
|
|
|
const taskId = ref('')
|
|
|
|
@ -412,6 +414,14 @@ defineExpose({
|
|
|
|
|
reload,
|
|
|
|
|
closeModal,
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
onUpdated(() => {
|
|
|
|
|
nextTick(() => {
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
layout()
|
|
|
|
|
}, 50)
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<template>
|
|
|
|
@ -555,6 +565,8 @@ defineExpose({
|
|
|
|
|
}"
|
|
|
|
|
|
|
|
|
|
:src="item.serverThumbnailUrl ? item.serverThumbnailUrl : item.imgUrl"
|
|
|
|
|
:fallback-src="bgLoadingImg"
|
|
|
|
|
:style="{ backgroundImage: `url(${loading ? bgLoadingImg : 'none'})` }"
|
|
|
|
|
/>
|
|
|
|
|
<div class="small-mark" />
|
|
|
|
|
<div class="time">
|
|
|
|
|