const tableConfig = { // 表格列配置 columns: [ { label: "编号", prop: "id", align: "center", width: 80, }, { label: "卡号段", prop: "cardRange", align: "center", minWidth: 180, type: "slot", slotName: "cardRange", }, { label: "申请数量", prop: "quantity", align: "center", width: 100, type: "slot", slotName: "quantity", }, { label: "申请人", prop: "applicant", align: "center", minWidth: 120, }, { label: "学校", prop: "schoolName", align: "center", minWidth: 150, }, { label: "申请时间", prop: "createTime", align: "center", width: 180, type: "time", format: "{y}-{m}-{d} {h}:{i}:{s}", }, { label: "申请状态", prop: "status", align: "center", width: 100, type: "slot", slotName: "status", }, { label: "原因", prop: "auditDesc", align: "center", minWidth: 120, type: "slot", slotName: "auditDesc", }, ], // 操作按钮配置 actions: [ { key: "review", label: "审核", type: "primary", link: true, permission: ["dz:open:review"], condition: (row) => row.status === 1, // 只有待审核状态才显示审核按钮 }, ], // 表格属性配置 tableProps: { stripe: true, border: false, showSelection: true, showIndex: false, showPagination: true, actionWidth: 150, selectionMode: "multiple", rowKey: "id", }, }; export default tableConfig;