data.ts 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. import { BasicColumn, FormSchema } from '/@/components/Table';
  2. import { DescItem } from '/@/components/Description';
  3. export const columns: BasicColumn[] = [
  4. {
  5. title: '任务名称',
  6. dataIndex: 'jobName',
  7. },
  8. {
  9. title: '任务分组',
  10. dataIndex: 'jobGroup',
  11. },
  12. {
  13. title: '调用目标字符串',
  14. dataIndex: 'invokeTarget',
  15. },
  16. {
  17. title: '日志信息',
  18. dataIndex: 'jobMessage',
  19. },
  20. {
  21. title: '状态',
  22. dataIndex: 'status',
  23. },
  24. {
  25. title: '开始时间',
  26. dataIndex: 'startTime',
  27. width: 150,
  28. fixed: 'right',
  29. },
  30. ];
  31. export const searchFormSchema: FormSchema[] = [
  32. {
  33. field: 'jobName',
  34. label: '任务名称',
  35. component: 'Input',
  36. componentProps: {
  37. placeholder: '请输入表名称',
  38. },
  39. },
  40. ];
  41. export const viewSchema: DescItem[] = [
  42. {
  43. label: '任务名称',
  44. field: 'jobName',
  45. },
  46. {
  47. label: '任务分组',
  48. field: 'jobGroup',
  49. },
  50. {
  51. label: '调用目标字符串',
  52. field: 'invokeTarget',
  53. },
  54. {
  55. label: '任务状态',
  56. field: 'status',
  57. },
  58. {
  59. label: '日志信息',
  60. field: 'jobMessage',
  61. },
  62. {
  63. label: '创建时间',
  64. field: 'startTime',
  65. },
  66. {
  67. label: '异常信息',
  68. field: 'exceptionInfo',
  69. },
  70. ];