This commit is contained in:
BianLzhaoMin 2025-02-26 16:14:46 +08:00
parent 920c0fc6ec
commit 06987849ea
1 changed files with 4 additions and 4 deletions

View File

@ -193,7 +193,7 @@
loading: true,
done: function (res) {
var tableView = this.elem.next();
layui.each(res.data, function (i, item) {
layui.each(res.data, function (i, item1) {
if (item.isApprove == '1') { // Condition to make the row non-editable
}
@ -212,15 +212,15 @@
let fileDom = '';
// 只要有文件列表并且文件列表数量大于0添加文件信息
if (item.fileList && item.fileList.length > 0) {
if (item1.fileList && item1.fileList.length > 0) {
// 根据文件列表的索引判断将哪个文件添加到相应的列
fileDom = `<span>${item.fileList[index - 3]}</span>`;
fileDom = `<span>${item1.fileList[index - 3]}</span>`;
}
console.log('fileDomfileDomfileDomfileDom', fileDom)
// 将fileDom添加到当前单元格
$(this).prepend(fileDom);
$(this).append(fileDom);
}
});