This commit is contained in:
parent
42011fea02
commit
b358fcedc7
|
|
@ -338,10 +338,6 @@
|
|||
$('#uploadForm input[name="numberInput"]').each(function () {
|
||||
let inputValue = $(this).val().trim();
|
||||
let maxValue = $(this).data('value')
|
||||
// if (parseFloat(inputValue) < 0) {
|
||||
// layer.msg('请输入大于0的数字')
|
||||
// return false
|
||||
// }
|
||||
|
||||
console.log('inputValueinputValueinputValue', inputValue)
|
||||
|
||||
|
|
@ -376,54 +372,11 @@
|
|||
|
||||
if (curTd.length > 0) {
|
||||
$(curTd).find('.layui-table-cell').text(formData[key]);
|
||||
} else {
|
||||
console.log('没有找到对应的 td:', key);
|
||||
}
|
||||
}
|
||||
layer.msg('保存成功');
|
||||
layer.close(index); // 关闭弹框
|
||||
|
||||
// 更新当前行的表格数据
|
||||
// let colsNew = tableView.find('tr[data-index=' + rowIndex + ']').find('td');
|
||||
|
||||
// 遍历所有列,更新相应的单元格
|
||||
// colsNew.each(function (index, td) {
|
||||
// // 获取字段名,和表格列的字段对应
|
||||
// let fieldName = dialogLabelInfo[index]?.field;
|
||||
|
||||
// // 如果该列对应的字段存在,则更新该单元格的值
|
||||
// if (fieldName && currentRows[fieldName] !== undefined) {
|
||||
// $(td).text(formData[fieldName]);
|
||||
// }
|
||||
// })
|
||||
// let dataForm = {
|
||||
// templateId: getUrlParam('templateId'),
|
||||
// evaluateId: getUrlParam('id'),
|
||||
// id: getUrlParam('detailsId'),
|
||||
// jsonData: JSON.stringify([currentRows]),
|
||||
// titleFiled: fields.join(','),
|
||||
// }
|
||||
|
||||
// console.log('提交时的formDat参数', dataForm)
|
||||
// let path = getUrlParam("type") == '0' ? '/outsourcer/saveEvaluateData' : '/outsourcer/updateEvaluateData';
|
||||
// $.ajax({
|
||||
// url: ctxPath + path,
|
||||
// type: 'post',
|
||||
// data: dataForm,
|
||||
// success: function (res) {
|
||||
// if (res.res == '1') {
|
||||
// layer.msg('保存成功');
|
||||
// layer.close(index); // 关闭弹框
|
||||
// initTable()
|
||||
// } else {
|
||||
// layer.msg(res.resMsg);
|
||||
// }
|
||||
// }
|
||||
// })
|
||||
|
||||
|
||||
// 这里可以执行你需要的操作
|
||||
|
||||
},
|
||||
btn2: function (index) {
|
||||
layer.close(index) // 关闭弹框
|
||||
|
|
@ -462,7 +415,13 @@
|
|||
$(`#upload-success_${Index} .prepend-content`).remove();
|
||||
})
|
||||
$(`#uploadBtn${Index}`).show()
|
||||
});
|
||||
|
||||
let hasIcon = tableView.find('tr[data-index=' + dataIndex + ']').find('td[data-field=' + dataId + ']').find('.layui-icon') > 0
|
||||
|
||||
if (hasIcon) {
|
||||
tableView.find('tr[data-index=' + rowIndex + ']').find('td[data-field=' + dataId + ']').find('.layui-table-cell').find('.layui-icon').remove()
|
||||
}
|
||||
})
|
||||
tableLoading && layer.close(tableLoading);
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue