|
|
@ -55,6 +55,7 @@ import {
|
|
|
|
|
|
|
|
|
|
|
|
import bgLoading from '@/assets/images/bg-loading.png'
|
|
|
|
import bgLoading from '@/assets/images/bg-loading.png'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const show=ref(false)
|
|
|
|
const listData = ref<any[]>([])
|
|
|
|
const listData = ref<any[]>([])
|
|
|
|
const timer = ref()
|
|
|
|
const timer = ref()
|
|
|
|
const showClose = ref(false)
|
|
|
|
const showClose = ref(false)
|
|
|
@ -154,7 +155,9 @@ async function inittask() {
|
|
|
|
useInfiniteScroll(
|
|
|
|
useInfiniteScroll(
|
|
|
|
el as any,
|
|
|
|
el as any,
|
|
|
|
() => {
|
|
|
|
() => {
|
|
|
|
|
|
|
|
if(configStore.asideValue!=null){
|
|
|
|
loadMore()
|
|
|
|
loadMore()
|
|
|
|
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{ distance: 10, canLoadMore: () => canloadMore },
|
|
|
|
{ distance: 10, canLoadMore: () => canloadMore },
|
|
|
|
)
|
|
|
|
)
|
|
|
@ -221,6 +224,7 @@ watch(() => collapse.value, (newVal, oldVal) => {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
const asideLoadMore = debounce(() => {
|
|
|
|
const asideLoadMore = debounce(() => {
|
|
|
|
|
|
|
|
|
|
|
|
reset()
|
|
|
|
reset()
|
|
|
|
loadMore()
|
|
|
|
loadMore()
|
|
|
|
}, 400)
|
|
|
|
}, 400)
|
|
|
@ -229,6 +233,7 @@ watch(
|
|
|
|
() => searchValue.value,
|
|
|
|
() => searchValue.value,
|
|
|
|
async (newVal, oldVal) => {
|
|
|
|
async (newVal, oldVal) => {
|
|
|
|
if (newVal) {
|
|
|
|
if (newVal) {
|
|
|
|
|
|
|
|
|
|
|
|
isInitSeaerch.value = true
|
|
|
|
isInitSeaerch.value = true
|
|
|
|
// pagination.pageNo = 0
|
|
|
|
// pagination.pageNo = 0
|
|
|
|
// const more = await featchList()
|
|
|
|
// const more = await featchList()
|
|
|
@ -258,6 +263,7 @@ watch(
|
|
|
|
async (newVal, oldVal) => {
|
|
|
|
async (newVal, oldVal) => {
|
|
|
|
if (pagination.pageNo > 1 && newVal && !(Object.entries(newVal).toString() === Object.entries(oldVal).toString())) {
|
|
|
|
if (pagination.pageNo > 1 && newVal && !(Object.entries(newVal).toString() === Object.entries(oldVal).toString())) {
|
|
|
|
// reset()
|
|
|
|
// reset()
|
|
|
|
|
|
|
|
|
|
|
|
asideLoadMore()
|
|
|
|
asideLoadMore()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -301,6 +307,7 @@ async function featchList(userSearchId?: string) {
|
|
|
|
...contentParams,
|
|
|
|
...contentParams,
|
|
|
|
...params,
|
|
|
|
...params,
|
|
|
|
...sortObj,
|
|
|
|
...sortObj,
|
|
|
|
|
|
|
|
...configStore.asideValue,
|
|
|
|
checkDuplicateNo: checkDuplicateNo.value,
|
|
|
|
checkDuplicateNo: checkDuplicateNo.value,
|
|
|
|
upUserName: searchValue,
|
|
|
|
upUserName: searchValue,
|
|
|
|
})
|
|
|
|
})
|
|
|
@ -566,7 +573,8 @@ watch(timeRange, () => {
|
|
|
|
watch(
|
|
|
|
watch(
|
|
|
|
() => configStore.asideValue,
|
|
|
|
() => configStore.asideValue,
|
|
|
|
(newVal, oldVal) => {
|
|
|
|
(newVal, oldVal) => {
|
|
|
|
refreshHandler()
|
|
|
|
refreshHandler()
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{ deep: true },
|
|
|
|
{ deep: true },
|
|
|
|
)
|
|
|
|
)
|
|
|
@ -785,6 +793,14 @@ function previewImageUrl(img1, img2) {
|
|
|
|
nodes.next,
|
|
|
|
nodes.next,
|
|
|
|
]
|
|
|
|
]
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
function handleMouseEnter(){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
show.value=true
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
function handleMouseLeave(){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
show.value=false
|
|
|
|
|
|
|
|
}
|
|
|
|
defineExpose({
|
|
|
|
defineExpose({
|
|
|
|
showLoginSuccessModal,
|
|
|
|
showLoginSuccessModal,
|
|
|
|
closeLoginSuccessModal,listData
|
|
|
|
closeLoginSuccessModal,listData
|
|
|
@ -1068,11 +1084,20 @@ defineExpose({
|
|
|
|
<div class="img-name">
|
|
|
|
<div class="img-name">
|
|
|
|
<n-tooltip trigger="hover">
|
|
|
|
<n-tooltip trigger="hover">
|
|
|
|
<template #trigger>
|
|
|
|
<template #trigger>
|
|
|
|
<span>{{ item.imgName }}</span>
|
|
|
|
<div style="postion:relative">
|
|
|
|
|
|
|
|
<div class="pppp" v-if="item.imgName.length>15">{{ item.imgName }}</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="img-name"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
>{{ item.imgName }}</div>
|
|
|
|
|
|
|
|
<div></div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<span
|
|
|
|
<span
|
|
|
|
style="font-size: 12px; margin-top: 4px; margin-bottom: 16px"
|
|
|
|
style="font-size: 12px; margin-top: 4px; margin-bottom: 16px"
|
|
|
|
>{{ item.imgName }}</span>
|
|
|
|
>{{ item.imgName }}</span>
|
|
|
|
|
|
|
|
|
|
|
|
</n-tooltip>
|
|
|
|
</n-tooltip>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
<div
|
|
|
@ -1426,6 +1451,22 @@ defineExpose({
|
|
|
|
grid-gap: 10px 15px;
|
|
|
|
grid-gap: 10px 15px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.pppp{
|
|
|
|
|
|
|
|
display: none;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.img-name:hover{
|
|
|
|
|
|
|
|
.pppp{
|
|
|
|
|
|
|
|
display: block;
|
|
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
|
|
background: #252525;
|
|
|
|
|
|
|
|
padding: 7px;
|
|
|
|
|
|
|
|
top: -26px;
|
|
|
|
|
|
|
|
left: 0;
|
|
|
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
|
|
|
margin: auto 0;
|
|
|
|
|
|
|
|
z-index: 110;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
/*::v-deep(.n-image-preview-toolbar .n-base-icon:nth-last-child(2)){
|
|
|
|
/*::v-deep(.n-image-preview-toolbar .n-base-icon:nth-last-child(2)){
|
|
|
|
display: none;
|
|
|
|
display: none;
|
|
|
|
}*/
|
|
|
|
}*/
|
|
|
|