From aee826b9a6ab2009c538552d52f1fead3a9afff8 Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Tue, 25 Feb 2025 18:00:33 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../outsourcerEvaluation/evaluationForm.html | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/main/resources/static/pages/evaluate/outsourcerEvaluation/evaluationForm.html b/src/main/resources/static/pages/evaluate/outsourcerEvaluation/evaluationForm.html index 51d94f4..7024c2a 100644 --- a/src/main/resources/static/pages/evaluate/outsourcerEvaluation/evaluationForm.html +++ b/src/main/resources/static/pages/evaluate/outsourcerEvaluation/evaluationForm.html @@ -17,7 +17,8 @@ .upload-success { padding: 0 6px; - + display: flex; + align-items: center; } @@ -295,7 +296,7 @@ $(this.elem).hide(); // 插入新的 DOM 元素,例如:显示上传成功的消息或其他操作 - var newDom = $(`
${res.message}
`); + var newDom = $(`
${res.message}
`); $(this.elem).parent().append(newDom); }, error: function () { @@ -368,6 +369,14 @@ } }) }); + + $(document).on('click', '.upload-success i', function () { + var dataIndex = $(this).data('index'); + console.log('删除图标被点击,data-index:', dataIndex); + + // 执行删除操作 + $(this).parent().remove(); // 移除 .upload-success 容器,包含该 i 标签 + }); tableLoading && layer.close(tableLoading); } });