This commit is contained in:
BianLzhaoMin 2025-02-26 11:25:03 +08:00
parent 1ff32925b3
commit 683c3f863f
1 changed files with 9 additions and 4 deletions

View File

@ -207,11 +207,16 @@
//将td元素的style属性设置为pointer-events: none禁止点击 //将td元素的style属性设置为pointer-events: none禁止点击
$(this).css('pointer-events', 'none'); $(this).css('pointer-events', 'none');
delete item.dataset.edit delete item.dataset.edit
let fileDom = '' let fileDom = '';
if (JSON.parse(msg).fileList && JSON.parse(msg).fileList.length > 0) {
fileDom = `<span>${JSON.parse(msg).fileList[index - 3]}</span>` // 只要有文件列表并且文件列表数量大于0添加文件信息
if (item.fileList && item.fileList.length > 0) {
// 根据文件列表的索引判断将哪个文件添加到相应的列
fileDom = `<span>${item.fileList[index - 3] || ''}</span>`;
} }
$(this).append(fileDom)
// 将fileDom添加到当前单元格
$(td).append(fileDom);
} }
}); });