|
|
|
@ -46,6 +46,8 @@ import PackageSettingsModal from "./modal/PackageSettingsModal.vue";
|
|
|
|
|
import QueryRepeatedTasksModal from "./modal/QueryRepeatedTasksModal.vue";
|
|
|
|
|
import type { PictureSortParam } from "/#/api";
|
|
|
|
|
import defaultAvatar from "@/assets/icons/avatar.svg";
|
|
|
|
|
import baseImg from "@/assets/images/baseImg.png";
|
|
|
|
|
import axios from "axios";
|
|
|
|
|
|
|
|
|
|
const deviceHeight = ref(600);
|
|
|
|
|
let _masonry: null | Masonry = null;
|
|
|
|
@ -186,13 +188,13 @@ watch(
|
|
|
|
|
|
|
|
|
|
const listData = ref<any[]>([]);
|
|
|
|
|
|
|
|
|
|
async function featchList(userSearchId?:string) {
|
|
|
|
|
async function featchList(userSearchId?: string) {
|
|
|
|
|
loading.value = true;
|
|
|
|
|
try {
|
|
|
|
|
const contentParams = {
|
|
|
|
|
search_month: timeRange.value,
|
|
|
|
|
search_history: 0,
|
|
|
|
|
userSearchId
|
|
|
|
|
userSearchId,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
pagination.pageNo += 1;
|
|
|
|
@ -246,6 +248,7 @@ async function featchList(userSearchId?:string) {
|
|
|
|
|
uphead: item.uphead,
|
|
|
|
|
similar: item.similarityscore || -1,
|
|
|
|
|
imgName: item.imgname,
|
|
|
|
|
loadOver: false,
|
|
|
|
|
};
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
@ -284,8 +287,8 @@ const gridHeight = computed(() => {
|
|
|
|
|
async function oneCheck() {
|
|
|
|
|
const asideVal = cloneDeep(configStore.getAsideValue);
|
|
|
|
|
asideVal.upUserName = searchValue.value;
|
|
|
|
|
console.log('searchValue', asideVal, searchValue.value)
|
|
|
|
|
|
|
|
|
|
console.log("searchValue", asideVal, searchValue.value);
|
|
|
|
|
|
|
|
|
|
if (asideVal.izyear && asideVal.izyear.length == 2) {
|
|
|
|
|
asideVal.izyear =
|
|
|
|
|
dayjs(asideVal.izyear[0]).format("YYYY/MM/DD") +
|
|
|
|
@ -613,6 +616,11 @@ const dropdownOptions = ref([
|
|
|
|
|
icon: renderIcon(EyeOutlineIcon),
|
|
|
|
|
},
|
|
|
|
|
]);
|
|
|
|
|
|
|
|
|
|
const loadImgOver = (item) => {
|
|
|
|
|
console.log("loadImgOver", item);
|
|
|
|
|
setTimeout(() => (item.loadOver = true), 2000);
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<template>
|
|
|
|
@ -708,8 +716,19 @@ const dropdownOptions = ref([
|
|
|
|
|
:src="item.thumburl"
|
|
|
|
|
ref="imageRef"
|
|
|
|
|
/>
|
|
|
|
|
<!-- @load="loadImgOver(item)" -->
|
|
|
|
|
<!-- <n-image
|
|
|
|
|
class="img"
|
|
|
|
|
:class="{
|
|
|
|
|
'img-fit': viewMode === 'horizontalVersion',
|
|
|
|
|
'img-full': viewMode === '3:4' || viewMode === 'verticalVersion',
|
|
|
|
|
}"
|
|
|
|
|
:src="baseImg"
|
|
|
|
|
v-show="!item.loadOver"
|
|
|
|
|
/> -->
|
|
|
|
|
|
|
|
|
|
<div class="percent" v-if="item.similar != -1">
|
|
|
|
|
<SvgIcon size="42" :name="item.similar==100?'error_tag':'tag'" />
|
|
|
|
|
<SvgIcon size="42" :name="item.similar == 100 ? 'error_tag' : 'tag'" />
|
|
|
|
|
<div class="val">
|
|
|
|
|
{{ `${item.similar}%` }}
|
|
|
|
|
</div>
|
|
|
|
|