utils.ts 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. /*
  2. * @Datetime : 2024/9/28 15:51
  3. * @Author : WANGKANG
  4. * @Email : 1686617586@qq.com
  5. * @Blog :
  6. * @File : utils.vue
  7. * @brief : 组件工具包
  8. * Copyright 2024 WANGKANG, All Rights Reserved.
  9. */
  10. export const AlgorithmType = {
  11. '0': '训练',
  12. '1': '测试',
  13. '2': '预测/推理'
  14. }
  15. export const SubSystem = {
  16. '0': '可见光转红外',
  17. '1': '目标检测',
  18. '2': '注释轨迹序列'
  19. }
  20. export const SubSystem__ = {
  21. 可见光转红外: '0',
  22. 目标检测: '1',
  23. 注释轨迹序列: '2'
  24. }
  25. export const AlgorithmType2 = {
  26. 训练: '0',
  27. 测试: '1',
  28. '预测/推理': '2'
  29. }
  30. export const enumsAlgorithmType = [
  31. { label: '训练', value: '0' },
  32. { label: '测试', value: '1' },
  33. { label: '预测/推理', value: '2' }
  34. ]
  35. export const enumsSubSystem = [
  36. { label: '可见光转红外', value: '0' },
  37. { label: '目标检测', value: '1' },
  38. { label: '注释轨迹序列', value: '2' }
  39. ]
  40. export const enumsModelStatus = [
  41. {
  42. label: '未训练',
  43. value: '0',
  44. disabled: false,
  45. tagType: 'default'
  46. },
  47. {
  48. label: '训练中',
  49. value: '1',
  50. disabled: false,
  51. tagType: 'primary'
  52. },
  53. {
  54. label: '完成',
  55. value: '2',
  56. disabled: false,
  57. tagType: 'success'
  58. },
  59. {
  60. label: '失败',
  61. value: '3',
  62. disabled: false,
  63. tagType: 'danger'
  64. },
  65. {
  66. label: '中断',
  67. value: '4',
  68. disabled: false,
  69. tagType: 'default'
  70. }
  71. ]