log.data.ts 926 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. import { BasicColumn, FormSchema } from '/@/components/Table';
  2. export const columns: BasicColumn[] = [
  3. {
  4. title: '日志内容',
  5. dataIndex: 'logContent',
  6. width: 100,
  7. align: 'left',
  8. },
  9. {
  10. title: '操作人ID',
  11. dataIndex: 'userid',
  12. width: 80,
  13. },
  14. {
  15. title: '操作人',
  16. dataIndex: 'username',
  17. width: 80,
  18. },
  19. {
  20. title: 'IP',
  21. dataIndex: 'ip',
  22. width: 80,
  23. },
  24. {
  25. title: '耗时(毫秒)',
  26. dataIndex: 'costTime',
  27. width: 80,
  28. },
  29. {
  30. title: '创建时间',
  31. dataIndex: 'createTime',
  32. sorter: true,
  33. width: 80,
  34. },
  35. {
  36. title: '结束时间',
  37. dataIndex: 'endTime',
  38. sorter: true,
  39. width: 80,
  40. },
  41. ];
  42. export const searchFormSchema: FormSchema[] = [
  43. {
  44. field: 'fieldTime',
  45. component: 'RangePicker',
  46. label: '创建时间',
  47. componentProps: {
  48. valueType: 'Date',
  49. },
  50. colProps: {
  51. span: 4,
  52. },
  53. },
  54. ];