|
|
|
@ -127,8 +127,6 @@ const confrimModalRef = ref<any>()
|
|
|
|
|
// // }
|
|
|
|
|
// // el.value!.scrollTo({ top: height, behavior: 'instant' })
|
|
|
|
|
// loading = false
|
|
|
|
|
// console.log('loading---------------', loading)
|
|
|
|
|
// console.log('pagination.pageNo---------------', pagination.pageNo)
|
|
|
|
|
// if (pagination.pageNo == 3) {
|
|
|
|
|
// let timer
|
|
|
|
|
// if (timer)
|
|
|
|
@ -136,7 +134,6 @@ const confrimModalRef = ref<any>()
|
|
|
|
|
|
|
|
|
|
// timer = setTimeout(() => {
|
|
|
|
|
// isTop.value = false
|
|
|
|
|
// console.log('isTop.value---------------', isTop.value)
|
|
|
|
|
// }, 1000)
|
|
|
|
|
// }
|
|
|
|
|
// })
|
|
|
|
@ -171,7 +168,6 @@ async function featchList() {
|
|
|
|
|
try {
|
|
|
|
|
// const result = await dubiousfilelist({ ...pagination, orderbyname: timeRange.value })
|
|
|
|
|
pagination.pageNo += 1
|
|
|
|
|
// console.log('pagination.pageNo------------', pagination.pageNo)
|
|
|
|
|
const result = await dubiousfilelist({ ...pagination, ...sortObj })
|
|
|
|
|
// TODO:测试数据
|
|
|
|
|
// result.data = Array.from({ length: 30 })
|
|
|
|
@ -180,7 +176,6 @@ async function featchList() {
|
|
|
|
|
// canloadMore = pageCount >= pagination.pageNo && pageCount > 0;
|
|
|
|
|
canloadMore = data.pages >= pagination.pageNo && data.pages > 0
|
|
|
|
|
|
|
|
|
|
// console.log('canloadMore------------', canloadMore)
|
|
|
|
|
loading = false
|
|
|
|
|
return result.data.records
|
|
|
|
|
// const list = data.map((item) => {
|
|
|
|
@ -201,12 +196,10 @@ const app = getCurrentInstance()
|
|
|
|
|
|
|
|
|
|
const updateHtml = debounce(() => {
|
|
|
|
|
// app?.appContext.app.$waterfall?.forceUpdate()
|
|
|
|
|
console.log('更新页面了')
|
|
|
|
|
waterfallRef.value?.resize()
|
|
|
|
|
}, 200)
|
|
|
|
|
|
|
|
|
|
async function loadMore() {
|
|
|
|
|
console.log('可疑文件夹出来了11111111111111', loading, el.value)
|
|
|
|
|
if (loading || el.value == null)
|
|
|
|
|
return
|
|
|
|
|
|
|
|
|
@ -221,13 +214,11 @@ async function loadMore() {
|
|
|
|
|
if (pagination.pageNo <= 1) {
|
|
|
|
|
listData.value = []
|
|
|
|
|
listData.value = listData.value.concat(more)
|
|
|
|
|
console.log('listData.value可疑文件夹出来了11111111111111', listData.value, pagination.pageNo)
|
|
|
|
|
if (pagination.pageNo <= 1)
|
|
|
|
|
waterfallRef.value?.resize()
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
listData.value = listData.value.concat(more)
|
|
|
|
|
console.log('listData.value可疑文件夹出来了2222222222', listData.value, pagination.pageNo)
|
|
|
|
|
// waterfallRef.value?.mix()
|
|
|
|
|
updateHtml()
|
|
|
|
|
}
|
|
|
|
@ -283,21 +274,6 @@ function imUpdateSelectIds(x: number, y: number, w: number, h: number) {
|
|
|
|
|
if (rect.right > x && rect.bottom > y && rect.left < x + w && rect.top < y + h)
|
|
|
|
|
index === -1 && selectIds.value.push(item.dataset.id!)
|
|
|
|
|
else index !== -1 && selectIds.value.splice(index, 1)
|
|
|
|
|
|
|
|
|
|
// let tempApproveIndex = -1;
|
|
|
|
|
// selectedApproveItems.value.map((approveItem, approveIndex) => {
|
|
|
|
|
// console.log("approveItem and item", approveItem, item );
|
|
|
|
|
// if(approveItem.selfId == item.dataset.id) {
|
|
|
|
|
// tempApproveIndex = approveIndex;
|
|
|
|
|
// }
|
|
|
|
|
// })
|
|
|
|
|
// if (tempApproveIndex === -1 && item.className.indexOf('grid-item-selected') != -1) {
|
|
|
|
|
// let tempItem: any = cloneDeep(item);
|
|
|
|
|
// tempItem.selfId = item.dataset.id;
|
|
|
|
|
// selectedApproveItems.value.push(tempItem)
|
|
|
|
|
// } else {
|
|
|
|
|
// selectedApproveItems.value.splice(tempApproveIndex, 1);
|
|
|
|
|
// }
|
|
|
|
|
})
|
|
|
|
|
selectedApproveItems.value = []
|
|
|
|
|
// 选中复选框
|
|
|
|
@ -307,12 +283,10 @@ function imUpdateSelectIds(x: number, y: number, w: number, h: number) {
|
|
|
|
|
selectedApproveItems.value.push(item)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
console.log('selectedApproveItems.value可疑选中了。。。。。。。。', selectedApproveItems.value)
|
|
|
|
|
updateHtml()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function isSelected(pictureId: number) {
|
|
|
|
|
// console.log('selectIds.value多少只啊啊啊啊啊啊啊啊啊啊啊啊啊', selectIds.value, pictureId)
|
|
|
|
|
return selectIds.value.includes(String(pictureId))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -500,7 +474,6 @@ async function commit() {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
function remove() {
|
|
|
|
|
// console.log("finally-selectedApproveItems------------", selectedApproveItems.value);
|
|
|
|
|
if (!selectIds.value || selectIds.value.length === 0) {
|
|
|
|
|
message.error('至少选中一个')
|
|
|
|
|
return
|
|
|
|
@ -509,7 +482,6 @@ function remove() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function setBatch(value, isUpdate?) {
|
|
|
|
|
// console.log('执行了设置可疑勾选-------------')
|
|
|
|
|
if (value && batch.value)
|
|
|
|
|
batch.value = !value
|
|
|
|
|
else
|
|
|
|
@ -676,7 +648,6 @@ async function refreshHandler(filtersearchId?: any) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function finish() {
|
|
|
|
|
// console.log('finish')
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
onBeforeMount(async () => {
|
|
|
|
@ -706,7 +677,6 @@ watch(() => show.value, async (newVal) => {
|
|
|
|
|
// const list = await featchList()
|
|
|
|
|
// listData.value = list
|
|
|
|
|
// layout()
|
|
|
|
|
console.log('开启了可疑弹窗aaa')
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
reset()
|
|
|
|
|
loadMore()
|
|
|
|
|