| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187 |
- const tableConfig = {
- // 表格列配置
- columns: [
- {
- label: "序号",
- type: "index",
- align: "center",
- width: 80,
- },
- {
- label: "卡号",
- prop: "cardNo",
- align: "center",
- width: 120,
- showOverflowTooltip: true,
- },
- {
- label: "密码",
- prop: "password",
- align: "center",
- width: 100,
- },
- {
- label: "姓名—手机",
- prop: "studentInfo",
- align: "center",
- type: "slot",
- slotName: "studentInfo", // 自定义插槽显示姓名-手机
- width: 150,
- },
- {
- label: "卡类型",
- prop: "type",
- align: "center",
- type: "dict",
- options: [], // 动态设置
- width: 100,
- },
- {
- label: "分配学校",
- prop: "assignSchoolId",
- align: "center",
- type: "dict",
- options: [], // 动态设置学校选项
- width: 120,
- },
- {
- label: "注册学校",
- prop: "schoolName",
- align: "center",
- type: "dict",
- options: [], // 动态设置学校选项
- width: 120,
- },
- {
- label: "班级",
- prop: "classId",
- align: "center",
- type: "dict",
- options: [], // 动态设置班级选项
- width: 100,
- },
- {
- label: "校区",
- prop: "campusId",
- align: "center",
- type: "dict",
- options: [], // 动态设置校区选项
- width: 100,
- },
- {
- label: "校区班级",
- prop: "classId",
- align: "center",
- type: "dict",
- options: [], // 动态设置校区班级选项
- width: 120,
- },
- {
- label: "分配考生类型",
- prop: "assignExamType",
- align: "center",
- type: "dict",
- options: [], // 动态设置
- width: 120,
- },
- {
- label: "分配状态",
- prop: "distributeStatus",
- align: "center",
- type: "dict",
- options: [], // 动态设置
- width: 100,
- },
- {
- label: "使用状态",
- prop: "status",
- align: "center",
- type: "dict",
- options: [], // 动态设置
- width: 100,
- },
- {
- label: "过期状态",
- prop: "timeStatus",
- align: "center",
- type: "dict",
- options: [], // 动态设置
- width: 100,
- },
- {
- label: "结算状态",
- prop: "isSettlement",
- align: "center",
- type: "dict",
- options: [], // 动态设置
- width: 100,
- },
- {
- label: "激活时间",
- prop: "activeTime",
- align: "center",
- type: "time",
- format: "{y}-{m}-{d}",
- width: 120,
- },
- {
- label: "到期时间",
- prop: "outDate",
- align: "center",
- type: "time",
- format: "{y}-{m}-{d}",
- width: 120,
- },
- {
- label: "缴费时间",
- prop: "payTime",
- align: "center",
- type: "time",
- format: "{y}-{m}-{d}",
- width: 120,
- },
- {
- label: "开卡时间",
- prop: "openTime",
- align: "center",
- type: "time",
- format: "{y}-{m}-{d}",
- width: 120,
- },
- ],
- // 操作按钮配置
- actions: [
- {
- key: "edit",
- label: "修改",
- type: "primary",
- icon: "Edit",
- link: true,
- permission: ["dz:cards:edit"],
- },
- {
- key: "delete",
- label: "删除",
- type: "primary",
- icon: "Delete",
- link: true,
- permission: ["dz:cards:remove"],
- },
- ],
- // 表格属性配置
- tableProps: {
- stripe: true,
- border: false,
- showSelection: false, // 移除多选列
- showIndex: false, // 使用自定义序号列
- showPagination: true,
- actionWidth: "auto",
- // 选择模式配置
- selectionMode: "multiple", // 'single' | 'multiple' | 'none'
- rowKey: "cardId", // 选择键字段名
- },
- };
- export default tableConfig;
|