gaoluyang
2 天以前 9aae2af6f3937a7d99ec619b51f457002cef969f
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"
@@ -529,6 +532,21 @@
  });
};
// 导出
const handleOut = () => {
  ElMessageBox.confirm("选中的内容将被导出,是否确认导出?", "导出", {
    confirmButtonText: "确认",
    cancelButtonText: "取消",
    type: "warning",
  })
    .then(() => {
      proxy.download("/documentationBorrowManagement/exportrevent", {}, "归还登记.xlsx");
    })
    .catch(() => {
      ElMessage.info("已取消");
    });
};
// 选择变化事件
const handleSelectionChange = (selection) => {
  selectedRows.value = selection;