This commit is contained in:
parent
95e95bf1bd
commit
51afd88648
|
|
@ -200,7 +200,7 @@
|
|||
var cols = tableView.find('tr[data-index=' + i + ']').find('td');
|
||||
cols.each(function (index, item) {
|
||||
//对field为subName,proName 的列不进行设置
|
||||
if (index > 2) {
|
||||
if (index > 2 && index != cols.length - 1) {
|
||||
$(this).data('edit', 'false');
|
||||
$(this).removeAttr('data-edit');
|
||||
$(this).addClass('layui-disabled');
|
||||
|
|
@ -214,11 +214,13 @@
|
|||
// 只要有文件列表,并且文件列表数量大于0,添加文件信息
|
||||
if (item.fileList && item.fileList.length > 0) {
|
||||
// 根据文件列表的索引判断将哪个文件添加到相应的列
|
||||
fileDom = `<span>${item.fileList[index - 3] || ''}</span>`;
|
||||
fileDom = `<span>${item.fileList[index - 3]}</span>`;
|
||||
}
|
||||
|
||||
console.log('fileDomfileDomfileDomfileDom', fileDom)
|
||||
|
||||
// 将fileDom添加到当前单元格
|
||||
$(this).append(fileDom);
|
||||
$(this).prepend(fileDom);
|
||||
}
|
||||
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue