From 3a5bbf385159c03a04d7be58506338cb20e0bdd8 Mon Sep 17 00:00:00 2001 From: lSun <15893999301@qq.com> Date: Mon, 27 Oct 2025 15:15:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E9=97=AE=E9=A2=98=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../image-captioning-library/index.vue | 19 ++++++++++------- .../image-captioning/components/Sidebar.vue | 21 +++++++++++-------- .../image-captioning/index.vue | 12 +++++++++-- .../image-evaluate-library/index.vue | 7 ++++--- 4 files changed, 37 insertions(+), 22 deletions(-) diff --git a/src/views/imageCaptioning/image-captioning-library/index.vue b/src/views/imageCaptioning/image-captioning-library/index.vue index f3e9fbc..e20b3e0 100644 --- a/src/views/imageCaptioning/image-captioning-library/index.vue +++ b/src/views/imageCaptioning/image-captioning-library/index.vue @@ -3,7 +3,7 @@ @@ -11,9 +11,9 @@ - + {{ item.operaTime }}
- {{ item.operaName }} + {{ item.contentImage }} @@ -109,8 +109,10 @@ export default { queryParams: { pageNum: 1, pageSize: 8, - operaTime: '', - operaType: 1 + createTime: '', + operaType: 1, + contentImage: '', + userName: '' }, // 表单参数 form: {}, @@ -158,6 +160,7 @@ export default { resetQuery() { this.resetForm("queryForm") this.queryParams.operaTime = null + this.queryParams.createTime = null this.handleQuery() }, @@ -228,12 +231,12 @@ export default { overflow-y: auto; display: flex; flex-wrap: wrap; - column-gap: 47px; row-gap: 30px; } .services-grid { - width: 355px; + width: 22%; + margin-left: 2.5%; display: flex; flex-direction: column; align-items: center; diff --git a/src/views/imageCaptioning/image-captioning/components/Sidebar.vue b/src/views/imageCaptioning/image-captioning/components/Sidebar.vue index 788b754..8374908 100644 --- a/src/views/imageCaptioning/image-captioning/components/Sidebar.vue +++ b/src/views/imageCaptioning/image-captioning/components/Sidebar.vue @@ -18,16 +18,19 @@ 新建标注
-
{ formData.append('files', file.raw); // 使用 raw 字段获取原始文件对象 }); - formData.append('param', selectedTagNames); - formData.append('id', this.addId); + // formData.append('param', selectedTagNames); + // formData.append('id', this.addId); + + // 修改参数处理方式,与之前的params 保持一致 + const params = { + param: selectedTagNames, + id: this.addId + }; + formData.append('params', JSON.stringify(params)); + //调用上传的接口,传递文件列表和标签IDs,name addImageInfoAPI(formData) .then(res => { diff --git a/src/views/imageCaptioning/image-evaluate-library/index.vue b/src/views/imageCaptioning/image-evaluate-library/index.vue index cf28969..07981ee 100644 --- a/src/views/imageCaptioning/image-evaluate-library/index.vue +++ b/src/views/imageCaptioning/image-evaluate-library/index.vue @@ -97,7 +97,8 @@ export default { pageNum: 1, pageSize: 8, date: '', - operaType: 2 + operaType: 2, + operaTime:'' }, // 表单参数 form: {}, @@ -214,12 +215,12 @@ export default { overflow-y: auto; display: flex; flex-wrap: wrap; - column-gap: 47px; row-gap: 20px; } .services-grid { - width: 355px; + width: 22%; + margin-left: 2.5%; display: flex; flex-direction: column; align-items: center;