diff --git a/src/api/imageCaptioning/imageEvaluate.js b/src/api/imageCaptioning/imageEvaluate.js new file mode 100644 index 0000000..aed78b1 --- /dev/null +++ b/src/api/imageCaptioning/imageEvaluate.js @@ -0,0 +1,49 @@ +import request from '@/utils/request' +import request_formdata from "@/utils/request_formdata"; + +// 查询标签列表 +export function getSelectedAPI(data) { + return request({ + url: '/image/caption/getSelected', + method: 'POST', + data, + }) +} + +// 查询左侧历史记录 +export function getImageListAPI(data) { + return request({ + url: '/image/caption/getImageList', + method: 'POST', + data, + }) +} + +//查询右侧的历史记录详情 +export function getImageListDetailsAPI(data) { + return request({ + url: '/image/caption/getImageListDetails', + method: 'POST', + data, + }) +} + +//新增标注 +export function addImageEvaluateAPI(data) { + return request_formdata({ + url: '/image/caption/addImageEvaluate', + method: 'POST', + data, + }) +} + +//修改图片 +export function updateImageSureAPI(data) { + return request_formdata({ + url: '/image/caption/updateImageSure', + method: 'POST', + data, + }) +} + + diff --git a/src/views/imageCaptioning/image-captioning/components/HistoryViewUn.vue b/src/views/imageCaptioning/image-captioning/components/HistoryViewUn.vue index 4f625c3..3cef50c 100644 --- a/src/views/imageCaptioning/image-captioning/components/HistoryViewUn.vue +++ b/src/views/imageCaptioning/image-captioning/components/HistoryViewUn.vue @@ -3,6 +3,7 @@