const tableConfig = {
  // 表格列配置
  columns: [
    {
      label: "序号",
      type: "slot",
      slotName: "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: "assignSchoolName",
      align: "center",

      width: 120,
    },
    {
      label: "机构",
      prop: "deptName",
      align: "center",
      width: 120,
    },
    {
      label: "代理商",
      prop: "agentName",
      align: "center",
      width: 120,
    },
    {
      label: "注册学校",
      prop: "schoolName",
      align: "center",

      width: 120,
    },
    {
      label: "班级",
      prop: "className",
      align: "center",

      width: 100,
    },
    {
      label: "校区",
      prop: "campusName",
      align: "center",
      width: 100,
    },
    {
      label: "校区班级",
      prop: "className",
      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: true, // 启用多选列
    showIndex: false, // 使用自定义序号列
    showPagination: true,
    actionWidth: "auto",
    // 选择模式配置
    selectionMode: "multiple", // 'single' | 'multiple' | 'none'
    rowKey: "cardId", // 选择键字段名
  },
};

export default tableConfig;
