From e5f9814aeb8f4b8c801646123c1430af6dba990c Mon Sep 17 00:00:00 2001 From: lSun <15893999301@qq.com> Date: Mon, 29 Sep 2025 19:11:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BE=E5=83=8F=E8=AF=84=E4=BC=B0=E7=9A=84?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/imageCaptioning/imageEvaluate.js | 49 +++++ .../components/HistoryViewUn.vue | 1 + .../components/ImageResults.vue | 113 ++++++++++- .../imageCaptioning/image-evaluate/index.vue | 179 +++++++++++++----- 4 files changed, 286 insertions(+), 56 deletions(-) create mode 100644 src/api/imageCaptioning/imageEvaluate.js 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 @@