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;