From 0ae5531f97bf47d4fe3d4ceeb6cf23fefb66642c Mon Sep 17 00:00:00 2001 From: lq <121091329@qq.com> Date: Sat, 20 Sep 2025 14:57:25 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=89=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/draw-popup.vue | 22 +------------------ 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/src/views/property-marketing/assignment-management/components/draw-popup.vue b/src/views/property-marketing/assignment-management/components/draw-popup.vue index c8ac6d3..e83d11e 100644 --- a/src/views/property-marketing/assignment-management/components/draw-popup.vue +++ b/src/views/property-marketing/assignment-management/components/draw-popup.vue @@ -229,27 +229,14 @@ const columns = ref([ ]); // 表格分页逻辑 -const { - pageInfo, - onPageChange, - onPageSizeChange, - rowSelection, - selectedRowKeys -} = useTableSelectionWithPagination({ +const { pageInfo, onPageChange, onPageSizeChange, rowSelection, selectedRowKeys } = useTableSelectionWithPagination({ rowKey: 'id', onPageChange: () => handleSearch(), onPageSizeChange: () => handleSearch(), }); -// 处理选择变更 -// const handleSelectChange = (selectedRowKeys, selectedRows) => { -// console.log('选择变更:', selectedRowKeys, selectedRows); -// query.ids = selectedRowKeys; -// }; - // 监听选中项变化 watch(selectedRowKeys, (newVal) => { - console.log('选择++++++++++++++'); console.log(newVal); query.ids = newVal; }); @@ -277,13 +264,6 @@ const handleSearch = async () => { materialData.value = [...materialData.value, ...res.data.data]; }; -// 移除原来的 handleSelectRow 方法,因为我们现在使用 hook 提供的 handleSelect 方法 -// const handleSelectRow = (selectedRowKeys, selectedRows) => { -// console.log('选择++++++++++++++'); -// console.log(selectedRowKeys, selectedRows); -// query.ids = selectedRowKeys; -// }; - const isActive = ref('ai'); // 发布类型选项