Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
6c5cc93793
|
|
@ -241,7 +241,7 @@
|
|||
innerHtml += `<div style="padding:6px 0;display: flex; align-items: center;">
|
||||
<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: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" class="uploadBtn" style="color: #4CAF50; border: none; margin-left: 10px; cursor: pointer;">
|
||||
+ 上传评分依据
|
||||
</button>
|
||||
</div>`
|
||||
|
|
@ -263,7 +263,7 @@
|
|||
btn: ['确定', '取消'],
|
||||
success: function (layero, index) {
|
||||
// 点击上传按钮的逻辑
|
||||
$('#uploadBtn').on('click', function (event) {
|
||||
$('.uploadBtn').on('click', function (event) {
|
||||
event.stopPropagation(); // 阻止事件冒泡
|
||||
event.preventDefault(); // 阻止默认行为
|
||||
console.log('上传附件按钮被点击了');
|
||||
|
|
@ -272,7 +272,7 @@
|
|||
var upload = layui.upload;
|
||||
// 执行上传功能
|
||||
var uploadInst = upload.render({
|
||||
elem: '#uploadBtn', // 上传按钮
|
||||
elem: '.uploadBtn', // 上传按钮
|
||||
url: '/upload/', // 文件上传接口(这里要根据实际接口替换)
|
||||
accept: 'file', // 选择文件类型
|
||||
multiple: false, // 支持多文件上传
|
||||
|
|
|
|||
Loading…
Reference in New Issue