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 @@
-
+
{{ uploadInfo }}
@@ -11,12 +11,12 @@
+ + +
+
+
+ 综合得分:80 + 2025-08-12 +
+
+
+ 清晰度: 20分 + 干净度: 10分 + 压缩痕迹: 10分 +
+
+ 明暗均衡: 10分 + 整体观感: 15分 + 细节体验: 15分 +
+
+
+
+
@@ -62,7 +85,11 @@ export default { isSure: { type: String, default: '0' - } + }, + isEvaluate: { + type: String, + default: '0' + }, }, watch: { isSure(newValue) { @@ -109,11 +136,25 @@ export default { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); } +.image-item-evaluate { + position: relative; + width: 100%; + height: 360px; + border-radius: 8px; + overflow: hidden; + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); +} + .result-image { width: 100%; height: 100%; } +.result-image-evaluate { + width: 100%; + height: 260px; +} + .icon-hand { position: absolute; top: 25px; @@ -133,4 +174,68 @@ export default { text-align: right; margin-bottom: 20px; } + + +.card-content { + width: 100%; + display: flex; + flex-direction: column; + font-size: 14px; +} + +.card-footer { + display: flex; + flex-direction: column; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + width: 100%; + min-height: 24px; +} + +.person-info { + display: flex; + justify-content: space-between; + margin: 10px 18px 0 18px; +} + +.name { + font-weight: bold; + color: #333; +} + +.date { + color: #666; + font-size: 12px; +} + +.tags { + display: flex; + flex-direction: column; + margin: 10px 18px 0 18px; + gap: 6px; +} + +.tag-row { + display: table; + width: 100%; + table-layout: fixed; + margin:3px 0 0 0; +} + +.tag-item { + display: table-cell; + width: 33.33%; + text-align: left; + font-size: 12px; + color: #333; + white-space: nowrap; + padding: 0 4px; +} + +.action-buttons { + display: flex; + justify-content: flex-end; + margin: 10px 18px 10px 18px; +} diff --git a/src/views/imageCaptioning/image-evaluate/index.vue b/src/views/imageCaptioning/image-evaluate/index.vue index fcafca1..43fac76 100644 --- a/src/views/imageCaptioning/image-evaluate/index.vue +++ b/src/views/imageCaptioning/image-evaluate/index.vue @@ -16,7 +16,7 @@
- 嗨!我是你的图像标注助理 + 嗨!我是你的图像评估助理
@@ -32,10 +32,10 @@