From d9d2ae687fc922d176d04063be02a62d5b986538 Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Tue, 25 Feb 2025 16:27:21 +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 --- .../outsourcerEvaluation/evaluationForm.html | 16 ++++++++++++++-- 1 file changed, 14 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 0fda870..5d9c6d9 100644 --- a/src/main/resources/static/pages/evaluate/outsourcerEvaluation/evaluationForm.html +++ b/src/main/resources/static/pages/evaluate/outsourcerEvaluation/evaluationForm.html @@ -241,7 +241,7 @@
${e.title}
- + @@ -263,6 +263,8 @@ event.stopPropagation(); // 阻止事件冒泡 event.preventDefault(); // 阻止默认行为 console.log('上传附件按钮被点击了'); + + // 在这里可以添加附件上传的逻辑,例如打开文件选择器等 }); @@ -279,15 +281,25 @@ // 点击"确定"按钮时的逻辑 let formData = {}; + let fields = dialogLabelInfo.map((e) => e.field) $('#uploadForm input').each(function () { let inputValue = $(this).val(); let dataId = $(this).data('id'); // 获取 data-id if (dataId && inputValue) { formData[dataId] = inputValue; // 将 data-id 作为键,输入框的值作为值 } + const currentRows = tableList[rowIndex] + Object.assign(currentRows, formData) + let data = { + templateId: getUrlParam('templateId'), + evaluateId: getUrlParam('id'), + id: getUrlParam('detailsId'), + jsonData: JSON.stringify([currentRows]), + titleFiled: fields.join(',') + } }); - console.log('formDat参数', formData) + console.log('提交时的formDat参数', data) // 这里可以执行你需要的操作 // layer.close(index); // 关闭弹框 },