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