diff --git a/src/layout/components/Header/RecycleModal.vue b/src/layout/components/Header/RecycleModal.vue index d3a551e..c5e7fe5 100644 --- a/src/layout/components/Header/RecycleModal.vue +++ b/src/layout/components/Header/RecycleModal.vue @@ -173,15 +173,14 @@ function imUpdateSelectIds(x: number, y: number, w: number, h: number) { items.forEach((item: HTMLDivElement) => { const rect = item.getBoundingClientRect() const index = selectIds.value.indexOf(item.dataset.id!) - 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) }) } -function isSelected(id: number) { - return selectIds.value.includes(String(id)) +function isSelected(pictureId: number) { + return selectIds.value.includes(String(pictureId)) } function moveHandler(e: MouseEvent) { @@ -241,6 +240,7 @@ onMounted(() => { async function showModal() { show.value = true + reset() pagination.pageNo = 1 const list = await featchList() listData.value = list @@ -296,7 +296,6 @@ defineExpose({ const notPassModalRef = ref(null) const showActions = computed(() => { - console.log('selectedApproveItems', selectedApproveItems) return selectedApproveItems.value.length > 0 && batch; }); @@ -318,6 +317,7 @@ function reset() { batch.value = false; pagination.pageNo = 1; pagination.pageSize = 20; + selectIds.value = []; selectedApproveItems.value.length = 0; loading = false; canloadMore = true; @@ -457,8 +457,8 @@ async function refreshHandler() {
-
diff --git a/src/views/worksheet/components/PhotoWall.vue b/src/views/worksheet/components/PhotoWall.vue new file mode 100644 index 0000000..2ed8321 --- /dev/null +++ b/src/views/worksheet/components/PhotoWall.vue @@ -0,0 +1,491 @@ + + + + + diff --git a/src/views/worksheet/content/Content.vue b/src/views/worksheet/content/Content.vue index 51ffcb4..01b09d3 100644 --- a/src/views/worksheet/content/Content.vue +++ b/src/views/worksheet/content/Content.vue @@ -430,13 +430,13 @@ function reloadList() {