bizProcessNew.ts 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. import http from '@/api'
  2. /**
  3. * @name 查询算法业务处理列表
  4. * @param query 参数
  5. * @returns 返回列表
  6. */
  7. export const listBizProcessApi = (query: any) => {
  8. return http.get<any[]>('/identification/identificationSubtaskDetails/list', query, { loading: false })
  9. }
  10. /**
  11. * @name 查询算法业务处理详细
  12. * @param id id
  13. * @returns returns
  14. */
  15. export const getBizProcessApi = (id: string | number) => {
  16. return http.get<any>(`/identification/identificationSubtaskDetails/${id}`)
  17. }
  18. /**
  19. * @name 新增算法业务处理
  20. * @param data data
  21. * @returns returns
  22. */
  23. export const addBizProcessApi = (data: any) => {
  24. return http.post<any>('/identification/identificationSubtaskDetails', data, { loading: false })
  25. }
  26. /**
  27. * @name 修改算法业务处理
  28. * @param data data
  29. * @returns returns
  30. */
  31. export const updateBizProcessApi = (data: any) => {
  32. return http.put<any>('/identification/identificationSubtaskDetails', data, { loading: false })
  33. }
  34. /**
  35. * @name 删除算法业务处理
  36. * @param id id
  37. * @returns returns
  38. */
  39. export const delBizProcessApi = (id: string | number | Array<string | number>) => {
  40. return http.delete<any>(`/identification/identificationSubtaskDetails/${id}`)
  41. }
  42. /**
  43. * @name 下载模板
  44. * @returns returns
  45. */
  46. export const importTemplateApi = () => {
  47. return http.downloadPost('/identification/identificationSubtaskDetails/importTemplate', {})
  48. }
  49. /**
  50. * @name 导入数据
  51. * @returns returns
  52. */
  53. export const importBizProcessDataApi = (data: any) => {
  54. return http.post('/identification/identificationSubtaskDetails/importData', data)
  55. }
  56. /**
  57. * @name 导出数据
  58. * @returns returns
  59. */
  60. export const exportBizProcessApi = (data: any) => {
  61. return http.downloadPost('/identification/identificationSubtaskDetails/export', data)
  62. }
  63. /**
  64. * @name 查看训练结果
  65. * @returns returns
  66. */
  67. export const getTrainResultApi = (subtaskId: string | number) => {
  68. return http.get(`/identification/identificationSubtaskDetails/getTrainResult/${subtaskId}`)
  69. }
  70. /**
  71. * @name 查看验证结果
  72. * @returns returns
  73. */
  74. export const getVerifyResultApi = (subtaskId: string | number) => {
  75. return http.get(`/identification/identificationSubtaskDetails/getVerifyResult/${subtaskId}`)
  76. }
  77. /**
  78. * @name 查看测试结果
  79. * @returns returns
  80. */
  81. export const getTestResultApi = (subtaskId: string | number) => {
  82. return http.get(`/identification/identificationSubtaskDetails/getTestResult/${subtaskId}`)
  83. }