|
|
@ -193,7 +193,7 @@ function startRender() { |
|
|
|
}) |
|
|
|
}) |
|
|
|
metaListTable.addTableRowEvent('addFile', function () { |
|
|
|
metaListTable.addTableRowEvent('addFile', function () { |
|
|
|
|
|
|
|
|
|
|
|
upload(basicData, `${ctx}/sys/file/layer/dir?directoryId=${basicData.id}`, function (res) { |
|
|
|
upload(basicData, `${ctx}/sys/file/layer/dir?directoryId=${basicData.id}&secretLevel=${basicData.secretLevel}`, function (res) { |
|
|
|
if (res.success) { |
|
|
|
if (res.success) { |
|
|
|
refreshDirectoryNode(tempNode, basicData); |
|
|
|
refreshDirectoryNode(tempNode, basicData); |
|
|
|
metaListTable.reloadTable(); |
|
|
|
metaListTable.reloadTable(); |
|
|
@ -205,7 +205,7 @@ function startRender() { |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
metaListTable.addTableRowEvent('addDirectory', function (obj) { |
|
|
|
metaListTable.addTableRowEvent('addDirectory', function (obj) { |
|
|
|
upload(basicData, `${ctx}/sys/file/layer/dir?directoryId=${basicData.id}&dirUpload=true`, function (res) { |
|
|
|
upload(basicData, `${ctx}/sys/file/layer/dir?directoryId=${basicData.id}&secretLevel=${basicData.secretLevel}&dirUpload=true`, function (res) { |
|
|
|
if (res.success) { |
|
|
|
if (res.success) { |
|
|
|
refreshPermis().then(() => { |
|
|
|
refreshPermis().then(() => { |
|
|
|
refreshDirectoryNode(tempNode, basicData); |
|
|
|
refreshDirectoryNode(tempNode, basicData); |
|
|
|