Disable the delete button

This commit is contained in:
kl
2023-03-08 11:27:24 +08:00
parent 7a25e0cb34
commit 134ff34c5e

View File

@@ -208,8 +208,7 @@
}).on('pre-body.bs.table', function (e, data) { }).on('pre-body.bs.table', function (e, data) {
// 每个data添加一列用来操作 // 每个data添加一列用来操作
$(data).each(function (index, item) { $(data).each(function (index, item) {
item.action = "<a class='btn btn-success' target='_blank' href='${baseUrl}onlinePreview?url=" + encodeURIComponent(Base64.encode('${baseUrl}' + item.fileName)) + "'>预览</a>" + item.action = "<a class='btn btn-success' target='_blank' href='${baseUrl}onlinePreview?url=" + encodeURIComponent(Base64.encode('${baseUrl}' + item.fileName)) + "'>预览</a>";
"<a class='btn btn-danger' style='margin-left:10px;' href='javascript:void(0);' onclick='deleteFile(\"" + encodeURIComponent(Base64.encode('${baseUrl}' + item.fileName)) + "\")'>删除</a>";
}); });
return data; return data;
}).on('post-body.bs.table', function (e, data) { }).on('post-body.bs.table', function (e, data) {