This commit is contained in:
BianLzhaoMin 2025-02-25 16:35:00 +08:00
parent 56872100f7
commit 62dc6ea64d
1 changed files with 11 additions and 11 deletions

View File

@ -241,7 +241,7 @@
<form id="uploadForm"> <form id="uploadForm">
<div style="display: flex; align-items: center;"> <div style="display: flex; align-items: center;">
<div style="margin-right: 10px;width: 200px";>${e.title}</div> <div style="margin-right: 10px;width: 200px";>${e.title}</div>
<input type="text" data-id="${dialogLabelInfo[index].field}" id="numberInput" name="numberInput" min="0.01" step="0.01" placeholder="请输入大于0的数字" style=";width:180px; padding:5px;" value="${tableList[rowIndex][dialogLabelInfo[index].field]}"> <input type="text" data-id="${dialogLabelInfo[index].field}" id="numberInput" name="numberInput" min="0.01" step="0.01" placeholder="请输入大于0的数字" style=";width:180px; padding:1px 5px;" value="${tableList[rowIndex][dialogLabelInfo[index].field]}">
<button type="button" id="uploadBtn" style="color: #4CAF50; border: none; margin-left: 10px; cursor: pointer;"> <button type="button" id="uploadBtn" style="color: #4CAF50; border: none; margin-left: 10px; cursor: pointer;">
+ 上传评分依据 + 上传评分依据
</button> </button>
@ -288,6 +288,7 @@
if (dataId && inputValue) { if (dataId && inputValue) {
formData[dataId] = inputValue; // 将 data-id 作为键,输入框的值作为值 formData[dataId] = inputValue; // 将 data-id 作为键,输入框的值作为值
} }
})
const currentRows = tableList[rowIndex] const currentRows = tableList[rowIndex]
Object.assign(currentRows, formData) Object.assign(currentRows, formData)
let dataForm = { let dataForm = {
@ -297,7 +298,6 @@
jsonData: JSON.stringify([currentRows]), jsonData: JSON.stringify([currentRows]),
titleFiled: fields.join(',') titleFiled: fields.join(',')
} }
});
console.log('提交时的formDat参数', dataForm) console.log('提交时的formDat参数', dataForm)
// 这里可以执行你需要的操作 // 这里可以执行你需要的操作