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)