From fcfc07359d105db786142cb9a695b961c65a00af Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Tue, 25 Feb 2025 18:07:49 +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 --- .../evaluate/outsourcerEvaluation/evaluationForm.html | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/main/resources/static/pages/evaluate/outsourcerEvaluation/evaluationForm.html b/src/main/resources/static/pages/evaluate/outsourcerEvaluation/evaluationForm.html index 7024c2a..2579e8d 100644 --- a/src/main/resources/static/pages/evaluate/outsourcerEvaluation/evaluationForm.html +++ b/src/main/resources/static/pages/evaluate/outsourcerEvaluation/evaluationForm.html @@ -247,7 +247,7 @@ innerHtml += `
${e.title}
-
` @@ -293,7 +293,9 @@ console.log('当前按钮的 data-index:', dataIndex); // 隐藏当前上传按钮 - $(this.elem).hide(); + // $(this.elem).hide(); + + $(`#uploadBtn${dataIndex}`).hide() // 插入新的 DOM 元素,例如:显示上传成功的消息或其他操作 var newDom = $(`
${res.message}
`); @@ -374,8 +376,10 @@ var dataIndex = $(this).data('index'); console.log('删除图标被点击,data-index:', dataIndex); + // 执行删除操作 - $(this).parent().remove(); // 移除 .upload-success 容器,包含该 i 标签 + $(this).parent().remove() + $(`#uploadBtn${dataIndex}`).show() }); tableLoading && layer.close(tableLoading); }