|
|
|
@ -140,7 +140,6 @@ const listStyle = computed(() => {
|
|
|
|
|
useInfiniteScroll(
|
|
|
|
|
el as any,
|
|
|
|
|
() => {
|
|
|
|
|
console.log('初始化加载了')
|
|
|
|
|
loadMore()
|
|
|
|
|
},
|
|
|
|
|
{ distance: 10, canLoadMore: () => canloadMore },
|
|
|
|
@ -182,14 +181,14 @@ const isInitSeaerch = ref(false) // 是否初始化搜索
|
|
|
|
|
const collapse = ref(1)
|
|
|
|
|
nextTick(() => {
|
|
|
|
|
configStore.$subscribe(() => {
|
|
|
|
|
console.log('subscribe', 'configStore')
|
|
|
|
|
// console.log('subscribe', 'configStore')
|
|
|
|
|
isAllowDownload.value = configStore.isAllowDownload
|
|
|
|
|
calNum.value = configStore.getTimeNum
|
|
|
|
|
// console.log("calNum.value----------", calNum.value);
|
|
|
|
|
searchValue.value = configStore.getSearchValue
|
|
|
|
|
console.log(configStore.getSearchValue, 'getSearchValue')
|
|
|
|
|
// console.log(configStore.getSearchValue, 'getSearchValue')
|
|
|
|
|
collapse.value = configStore.getCollapse ? 1 : 0
|
|
|
|
|
console.log('collapse.value的这个肚饿的点点滴滴的点点滴滴', collapse.value)
|
|
|
|
|
// console.log('collapse.value的这个肚饿的点点滴滴的点点滴滴', collapse.value)
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
@ -222,7 +221,7 @@ watch(() => collapse.value, (newVal, oldVal) => {
|
|
|
|
|
watch(
|
|
|
|
|
() => searchValue.value,
|
|
|
|
|
async (newVal, oldVal) => {
|
|
|
|
|
console.log('搜索框的值', newVal, oldVal)
|
|
|
|
|
// console.log('搜索框的值', newVal, oldVal)
|
|
|
|
|
if (newVal) {
|
|
|
|
|
isInitSeaerch.value = true
|
|
|
|
|
// pagination.pageNo = 0
|
|
|
|
@ -250,7 +249,7 @@ watch(
|
|
|
|
|
watch(
|
|
|
|
|
() => configStore.getAsideValue,
|
|
|
|
|
async (newVal, oldVal) => {
|
|
|
|
|
console.log('configStore.getAsideValue变化了啊', configStore.getAsideValue, pagination.pageNo)
|
|
|
|
|
// console.log('configStore.getAsideValue变化了啊', configStore.getAsideValue, pagination.pageNo)
|
|
|
|
|
if (pagination.pageNo > 1 && newVal && !(Object.entries(newVal).toString() === Object.entries(oldVal).toString())) {
|
|
|
|
|
reset()
|
|
|
|
|
loadMore()
|
|
|
|
@ -340,7 +339,7 @@ async function featchList(userSearchId?: string) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
async function loadMore() {
|
|
|
|
|
console.log('loading.value加兹安', loading.value, el.value)
|
|
|
|
|
// console.log('loading.value加兹安', loading.value, el.value)
|
|
|
|
|
if (loading.value || el.value == null)
|
|
|
|
|
return
|
|
|
|
|
canloadMore = false
|
|
|
|
@ -407,7 +406,6 @@ async function oneCheck() {
|
|
|
|
|
|
|
|
|
|
const tasksLoadingModal = queryRepeatedTasksModalRef.value as any
|
|
|
|
|
|
|
|
|
|
console.log('calNum.value111111111111111', calNum.value, checkTaskStatus.value)
|
|
|
|
|
if (calNum.value == 0 && isRefresh.value) {
|
|
|
|
|
if (timer.value)
|
|
|
|
|
clearInterval(timer.value)
|
|
|
|
@ -568,8 +566,7 @@ async function refreshHandler(filtersearchId?: any) {
|
|
|
|
|
|
|
|
|
|
if (filtersearchId)
|
|
|
|
|
filterId = filtersearchId
|
|
|
|
|
console.log('refreshHandler执行了')
|
|
|
|
|
loadMore(true)
|
|
|
|
|
loadMore()
|
|
|
|
|
// nextTick(() => {
|
|
|
|
|
// setTimeout(() => {
|
|
|
|
|
// useInfiniteScroll(
|
|
|
|
@ -671,7 +668,6 @@ function refresh(val?: any) {
|
|
|
|
|
|
|
|
|
|
if (timer.value)
|
|
|
|
|
clearInterval(timer.value)
|
|
|
|
|
console.log('refresh刷新了')
|
|
|
|
|
reset()
|
|
|
|
|
loadMore()
|
|
|
|
|
configStore.setTimeNum(0)
|
|
|
|
@ -725,7 +721,7 @@ const dropdownOptions = ref([
|
|
|
|
|
])
|
|
|
|
|
|
|
|
|
|
function finish() {
|
|
|
|
|
console.log('finish')
|
|
|
|
|
// console.log('finish')
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const masonryRef = ref(null)
|
|
|
|
|