| | |
| | | <el-icon><Plus /></el-icon> |
| | | 新增归还 |
| | | </el-button> |
| | | <el-button @click="handleOut"> |
| | | 导出 |
| | | </el-button> |
| | | <el-button |
| | | type="danger" |
| | | @click="handleBatchDelete" |
| | |
| | | |
| | | // 构建查询参数 |
| | | const query = { |
| | | page: pagination.currentPage, |
| | | current: pagination.currentPage, |
| | | size: pagination.pageSize, |
| | | borrowStatus: searchForm.borrowStatus || undefined, |
| | | borrower: searchForm.borrower || undefined, |
| | |
| | | }); |
| | | }; |
| | | |
| | | // 导出 |
| | | const handleOut = () => { |
| | | ElMessageBox.confirm("选中的内容将被导出,是否确认导出?", "导出", { |
| | | confirmButtonText: "确认", |
| | | cancelButtonText: "取消", |
| | | type: "warning", |
| | | }) |
| | | .then(() => { |
| | | proxy.download("/documentationBorrowManagement/exportrevent", {}, "归还登记.xlsx"); |
| | | }) |
| | | .catch(() => { |
| | | ElMessage.info("已取消"); |
| | | }); |
| | | }; |
| | | |
| | | // 选择变化事件 |
| | | const handleSelectionChange = (selection) => { |
| | | selectedRows.value = selection; |
| | | }; |
| | | |
| | | // 处理分页变化 |
| | | const handlePagination = (current, size) => { |
| | | pagination.currentPage = current; |
| | | pagination.pageSize = size; |
| | | const handlePagination = (pageInfo) => { |
| | | pagination.currentPage = pageInfo.current || pageInfo.page; |
| | | pagination.pageSize = pageInfo.size || pageInfo.limit; |
| | | loadReturnList(); |
| | | }; |
| | | // 处理扫码内容 |