This commit is contained in:
parent
bee01ea0f0
commit
74a79431ef
|
|
@ -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:12px 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:12px 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>
|
||||||
|
|
@ -277,9 +277,19 @@
|
||||||
},
|
},
|
||||||
yes: function (index, layero) {
|
yes: function (index, layero) {
|
||||||
// 点击"确定"按钮时的逻辑
|
// 点击"确定"按钮时的逻辑
|
||||||
console.log('确定按钮被点击了');
|
|
||||||
|
let formData = {};
|
||||||
|
$('#uploadForm input').each(function () {
|
||||||
|
let inputValue = $(this).val();
|
||||||
|
let dataId = $(this).data('id'); // 获取 data-id
|
||||||
|
if (dataId && inputValue) {
|
||||||
|
formData[dataId] = inputValue; // 将 data-id 作为键,输入框的值作为值
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
console.log('formDat参数', formData)
|
||||||
// 这里可以执行你需要的操作
|
// 这里可以执行你需要的操作
|
||||||
layer.close(index); // 关闭弹框
|
// layer.close(index); // 关闭弹框
|
||||||
},
|
},
|
||||||
btn2: function (index, layero) {
|
btn2: function (index, layero) {
|
||||||
// 点击"取消"按钮时的逻辑
|
// 点击"取消"按钮时的逻辑
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue