execution-log.js 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. /*
  2. * Copyright (c) 2018-2025, lengleng All rights reserved.
  3. *
  4. * Redistribution and use in source and binary forms, with or without
  5. * modification, are permitted provided that the following conditions are met:
  6. *
  7. * Redistributions of source code must retain the above copyright notice,
  8. * this list of conditions and the following disclaimer.
  9. * Redistributions in binary form must reproduce the above copyright
  10. * notice, this list of conditions and the following disclaimer in the
  11. * documentation and/or other materials provided with the distribution.
  12. * Neither the name of the pig4cloud.com developer nor the names of its
  13. * contributors may be used to endorse or promote products derived from
  14. * this software without specific prior written permission.
  15. * Author: lengleng (wangiegie@gmail.com)
  16. */
  17. const DIC = {
  18. isSuccess: [{
  19. label: '成功',
  20. value: 1
  21. },
  22. {
  23. label: '失败',
  24. value: 0
  25. }
  26. ]
  27. }
  28. export const tableOption = {
  29. border: true,
  30. index: true,
  31. indexLabel: '序号',
  32. stripe: true,
  33. menuAlign: 'center',
  34. align: 'center',
  35. searchMenuSpan: 6,
  36. editBtn: false,
  37. addBtn: false,
  38. viewBtn: true,
  39. column: [
  40. {
  41. label: 'ID',
  42. prop: 'id',
  43. hide: true
  44. },
  45. {
  46. label: '任务名称',
  47. prop: 'jobName'
  48. },
  49. {
  50. label: '任务ID',
  51. prop: 'taskId',
  52. hide: true,
  53. overHidden: true
  54. },
  55. {
  56. label: '主机名',
  57. prop: 'hostname',
  58. hide: true
  59. },
  60. {
  61. label: 'IP',
  62. prop: 'ip'
  63. },
  64. {
  65. width: 80,
  66. label: '分片项',
  67. prop: 'shardingItem'
  68. },
  69. {
  70. label: '执行源',
  71. prop: 'executionSource',
  72. hide: true
  73. },
  74. {
  75. label: '失败原因',
  76. prop: 'failureCause',
  77. hide: true
  78. },
  79. {
  80. width: 100,
  81. label: '执行结果',
  82. prop: 'isSuccess',
  83. type: 'select',
  84. dicData: DIC.isSuccess
  85. },
  86. {
  87. label: '开始时间',
  88. prop: 'startTime',
  89. hide: true
  90. },
  91. {
  92. label: '完成时间',
  93. prop: 'completeTime'
  94. }
  95. ]
  96. }