feat: 修改可疑

pull/312/head
raoyongjun 1 year ago
parent 38343d1f87
commit 55bcb26474

@ -170,16 +170,16 @@ async function featchList() {
loading = true loading = true
try { try {
// const result = await dubiousfilelist({ ...pagination, orderbyname: timeRange.value }) // const result = await dubiousfilelist({ ...pagination, orderbyname: timeRange.value })
pagination.pageNo += 1
// console.log('pagination.pageNo------------', pagination.pageNo) // console.log('pagination.pageNo------------', pagination.pageNo)
const result = await dubiousfilelist({ ...pagination, ...sortObj }) const result = await dubiousfilelist({ ...pagination, ...sortObj })
// TODO // TODO
// result.data = Array.from({ length: 30 }) // result.data = Array.from({ length: 30 })
const { data, pageCount, current } = result const { data, pageCount, current } = result
// pagination.pageNo = data.current pagination.pageNo = data.current
// canloadMore = pageCount >= pagination.pageNo && pageCount > 0; // canloadMore = pageCount >= pagination.pageNo && pageCount > 0;
canloadMore = data.pages >= pagination.pageNo && data.pages > 0 canloadMore = data.pages >= pagination.pageNo && data.pages > 0
pagination.pageNo += 1
// console.log('canloadMore------------', canloadMore) // console.log('canloadMore------------', canloadMore)
loading = false loading = false
return result.data.records return result.data.records
@ -204,6 +204,7 @@ const updateHtml = debounce(() => {
}, 1600) }, 1600)
async function loadMore() { async function loadMore() {
console.log('可疑文件夹出来了11111111111111', loading, el.value)
if (loading || el.value == null) if (loading || el.value == null)
return return
@ -562,7 +563,7 @@ function rejectHandler() {
function reset() { function reset() {
batch.value = false batch.value = false
// pagination.pageNo = 1; // pagination.pageNo = 1;
pagination.pageNo = 1 pagination.pageNo = 0
pagination.pageSize = 30 pagination.pageSize = 30
selectIds.value = [] selectIds.value = []
selectedApproveItems.value.length = 0 selectedApproveItems.value.length = 0
@ -699,8 +700,11 @@ watch(() => show.value, async (newVal) => {
// const list = await featchList() // const list = await featchList()
// listData.value = list // listData.value = list
// layout() // layout()
reset() console.log('开启了可疑弹窗')
loadMore() setTimeout(() => {
reset()
loadMore()
}, 50)
} }
}) })
</script> </script>

@ -299,8 +299,8 @@ async function featchList(userSearchId?: string) {
params.izsimilarity = params.izsimilarity.join('-') params.izsimilarity = params.izsimilarity.join('-')
// rao end // rao end
console.log('window.cancle.queryPageListByCheckNo', window.cancle.queryPageListByCheckNo) // console.log('window.cancle.queryPageListByCheckNo', window.cancle.queryPageListByCheckNo)
console.log('window.cancle.getPictureList', window.cancle.getPictureList) // console.log('window.cancle.getPictureList', window.cancle.getPictureList)
if (checkTaskStatus.value === 2 && isRefresh) { if (checkTaskStatus.value === 2 && isRefresh) {
// //
window.cancle.queryPageListByCheckNo && window.cancle.queryPageListByCheckNo() window.cancle.queryPageListByCheckNo && window.cancle.queryPageListByCheckNo()
@ -787,6 +787,7 @@ function loadImg(src) {
function previewImageUrl(img1, img2) { function previewImageUrl(img1, img2) {
setTimeout(async () => { setTimeout(async () => {
const img = document.getElementsByClassName('n-image-preview').item(0) const img = document.getElementsByClassName('n-image-preview').item(0)
img.src = img1
await loadImg(img2) await loadImg(img2)
img.src = img2 img.src = img2
}, 50) }, 50)

@ -435,6 +435,7 @@ function loadImg(src) {
function previewImageUrl(img1, img2) { function previewImageUrl(img1, img2) {
setTimeout(async () => { setTimeout(async () => {
const img = document.getElementsByClassName('n-image-preview').item(0) const img = document.getElementsByClassName('n-image-preview').item(0)
img.src = img1
await loadImg(img2) await loadImg(img2)
img.src = img2 img.src = img2
}, 50) }, 50)

Loading…
Cancel
Save