data.ts 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. import { BasicColumn, FormSchema } from '/@/components/Table';
  2. // import { listDictModel } from '/@/api/common';
  3. export const columns: BasicColumn[] = [
  4. {
  5. title: '会话ID',
  6. dataIndex: 'sessionId',
  7. width: 280,
  8. },
  9. {
  10. title: '用户名',
  11. dataIndex: 'username',
  12. width: 150,
  13. },
  14. {
  15. title: '登录IP地址',
  16. dataIndex: 'lastLoginIp',
  17. width: 120,
  18. },
  19. {
  20. title: '登录地点',
  21. dataIndex: 'lastLoginLocation',
  22. width: 150,
  23. },
  24. {
  25. title: '浏览器类型',
  26. dataIndex: 'browser',
  27. width: 150,
  28. },
  29. {
  30. title: '操作系统',
  31. dataIndex: 'os',
  32. },
  33. {
  34. title: '登录时间',
  35. dataIndex: 'lastLoginTime',
  36. width: 160,
  37. },
  38. ];
  39. export const searchFormSchema: FormSchema[] = [
  40. {
  41. field: 'username',
  42. label: '用户名',
  43. component: 'Input',
  44. componentProps: {
  45. placeholder: '请输入用户名',
  46. },
  47. },
  48. ];
  49. export const tokenColumns: BasicColumn[] = [
  50. {
  51. title: '登录设备',
  52. dataIndex: 'loginDevice',
  53. },
  54. {
  55. title: '有效期',
  56. dataIndex: 'indate',
  57. },
  58. {
  59. title: '令牌',
  60. dataIndex: 'tokenValues',
  61. },
  62. ];