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'); // 发布类型选项