From 683c3f863f90670ec233d9e22363a15594aec324 Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Wed, 26 Feb 2025 11:25:03 +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, 9 insertions(+), 4 deletions(-) diff --git a/src/main/resources/static/pages/evaluate/outsourcerEvaluation/evaluationForm.html b/src/main/resources/static/pages/evaluate/outsourcerEvaluation/evaluationForm.html index 2e91b39..aa49f03 100644 --- a/src/main/resources/static/pages/evaluate/outsourcerEvaluation/evaluationForm.html +++ b/src/main/resources/static/pages/evaluate/outsourcerEvaluation/evaluationForm.html @@ -207,11 +207,16 @@ //将td元素的style属性设置为pointer-events: none,禁止点击 $(this).css('pointer-events', 'none'); delete item.dataset.edit - let fileDom = '' - if (JSON.parse(msg).fileList && JSON.parse(msg).fileList.length > 0) { - fileDom = `${JSON.parse(msg).fileList[index - 3]}` + let fileDom = ''; + + // 只要有文件列表,并且文件列表数量大于0,添加文件信息 + if (item.fileList && item.fileList.length > 0) { + // 根据文件列表的索引判断将哪个文件添加到相应的列 + fileDom = `${item.fileList[index - 3] || ''}`; } - $(this).append(fileDom) + + // 将fileDom添加到当前单元格 + $(td).append(fileDom); } });