From 9d5221fa0be2fa569ad7eed2aaf36c1285daca21 Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Wed, 26 Feb 2025 11:03:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=82=E6=95=B0=E7=BB=84=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/evaluate/outsourcerEvaluation/evaluationForm.html | 6 ++++-- 1 file changed, 4 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 d6fd2b3..1a6b986 100644 --- a/src/main/resources/static/pages/evaluate/outsourcerEvaluation/evaluationForm.html +++ b/src/main/resources/static/pages/evaluate/outsourcerEvaluation/evaluationForm.html @@ -225,6 +225,7 @@ text: '评价', type: 'button' }); + let fileList = [] // 将自定义元素插入到最后一个单元格 div.append(customElement); @@ -233,7 +234,7 @@ event.preventDefault() let rowIndex = $(this).closest('tr').data('index') const tableList = JSON.parse(msg) - let fileList = [] + // 组装dom let formHtml = `
${tableList[rowIndex].proName}
` @@ -334,13 +335,14 @@ }) const currentRows = tableList[rowIndex] Object.assign(currentRows, formData) + + currentRows.fileList = fileList let dataForm = { templateId: getUrlParam('templateId'), evaluateId: getUrlParam('id'), id: getUrlParam('detailsId'), jsonData: JSON.stringify([currentRows]), titleFiled: fields.join(','), - fileList } console.log('提交时的formDat参数', dataForm)