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); } });