import { BasicColumn } from '/@/components/Table';
import { FormSchema } from '/@/components/Table';
import { RoleEnum } from '/@/enums/roleEnum';
export enum KeysTypeEnum {
  DISABLED = 'disabled',
  ENABLED = 'enabled',
}

export const RoleMenuDictEnum: Recordable<{ key: string; keyType: KeysTypeEnum }> = {
  [RoleEnum.PLATFORM_ADMIN]: { key: 'enabled_platform_admin_auth', keyType: KeysTypeEnum.ENABLED },
  [RoleEnum.SYS_ADMIN]: { key: 'enabled_sysadmin_auth', keyType: KeysTypeEnum.ENABLED },
  [RoleEnum.TENANT_ADMIN]: { key: 'disabled_tenant_auth', keyType: KeysTypeEnum.DISABLED },
  [RoleEnum.CUSTOMER_USER]: { key: 'disabled_tenant_auth', keyType: KeysTypeEnum.DISABLED },
};

/**
 * 列表显示信息
*/
export const columns: BasicColumn[] = [
  {
    title: '流程环节',
    dataIndex: 'NODEDISCRIPTION',
  },
  // {
  //   title: '处理岗位',
  //   dataIndex: 'handleDept',
  //   width: 110,
  // },
  {
    title: '处理人',
    dataIndex: 'CHECKUSERNAEM',
  },
  {
    title: '处理时间',
    dataIndex: 'CHECKTIME',
  },
  {
    title: '处理状态',
    dataIndex: 'ISPASS',
    slots: { customRender: 'ISPASS' },
  },
  {
    title: '处理意见',
    dataIndex: 'CHECKINFO',
  },
  // {
  //   title: '说明',
  //   dataIndex: 'illustrate',
  // }
];

