gaoluyang
昨天 1f17fe5e687b4dadef305d25b1e97ce8cd1afc8a
src/views/fileManagement/return/index.vue
@@ -52,6 +52,9 @@
            <el-icon><Plus /></el-icon>
            新增归还
          </el-button>
          <el-button @click="handleOut">
            导出
          </el-button>
          <el-button
            type="danger"
            @click="handleBatchDelete"
@@ -329,7 +332,7 @@
    
    // 构建查询参数
    const query = {
      page: pagination.currentPage,
      current: pagination.currentPage,
      size: pagination.pageSize,
      borrowStatus: searchForm.borrowStatus || undefined,
      borrower: searchForm.borrower || undefined,
@@ -529,15 +532,30 @@
  });
};
// 导出
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();
};
// 处理扫码内容