|
|
|
@ -143,6 +143,10 @@ function startRender() { |
|
|
|
|
*/ |
|
|
|
|
metaListTable.addTableRowEvent('moveLink', function () { |
|
|
|
|
var table = layui.table, checkStatus = table.checkStatus('dirMetadataTable'), data = checkStatus.data; |
|
|
|
|
if (basicData.id === 'ROOT' && !USER_ROLES.includes('ROLE_SA')){ |
|
|
|
|
layer.msg('没有权限'); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
if (data.length < 1) { |
|
|
|
|
layer.confirm("请选择要移动的文件!", function (index) { |
|
|
|
|
layer.close(index); |
|
|
|
@ -188,6 +192,7 @@ function startRender() { |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
metaListTable.addTableRowEvent('addFile', function () { |
|
|
|
|
|
|
|
|
|
upload(basicData, `${ctx}/sys/file/layer/dir?directoryId=${basicData.id}`, function (res) { |
|
|
|
|
if (res.success) { |
|
|
|
|
refreshDirectoryNode(tempNode, basicData); |
|
|
|
@ -277,6 +282,10 @@ function startRender() { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function upload(basicData, url, callback) { |
|
|
|
|
if (basicData.id === 'ROOT' && !USER_ROLES.includes('ROLE_SA')){ |
|
|
|
|
layer.msg('没有权限'); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
if (basicData.reviewStatus == ReviewStatus.PASS || basicData.reviewStatus == ReviewStatus.SUBMITTED) { |
|
|
|
|
addDataConfirm(open); |
|
|
|
|
} else { |
|
|
|
|