From 1a4ffff573a82579bcd85469baea54687d03f0a1 Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Thu, 27 Feb 2025 12:06: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 --- .../pages/evaluate/outsourcerEvaluation/evaluationForm.html | 4 ++-- 1 file changed, 2 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 197739b..484d5b5 100644 --- a/src/main/resources/static/pages/evaluate/outsourcerEvaluation/evaluationForm.html +++ b/src/main/resources/static/pages/evaluate/outsourcerEvaluation/evaluationForm.html @@ -218,7 +218,7 @@ let dataId = $(this).data('field') - if (item1[`${dataId}-file`] && item1[`${dataId}-file`]['fileName']) { + if (item1[`${dataId}-file`] && item1[`${dataId}-file`]['fileName'] != '') { $(this).find('.layui-table-cell').append(` `) } } @@ -416,7 +416,7 @@ }) $(`#uploadBtn${Index}`).show() - let hasIcon = tableView.find('tr[data-index=' + dataIndex + ']').find('td[data-field=' + dataId + ']').find('.layui-icon') > 0 + let hasIcon = tableView.find('tr[data-index=' + dataIndex + ']').find('td[data-field=' + dataId + ']').find('.layui-table-cell').find('.layui-icon') > 0 if (hasIcon) { tableView.find('tr[data-index=' + rowIndex + ']').find('td[data-field=' + dataId + ']').find('.layui-table-cell').find('.layui-icon').remove()