|
|
|
@ -201,6 +201,41 @@ function startRender() { |
|
|
|
|
}).catch(() => showErrorMsg()); |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 目录整编增加批量删除功能 |
|
|
|
|
* @param ids |
|
|
|
|
* add 2024/04/11 xiongcl |
|
|
|
|
*/ |
|
|
|
|
metaListTable.addTableRowEvent('batchMoveLink', function (obj) { |
|
|
|
|
var table = layui.table, checkStatus = table.checkStatus('dirMetadataTable'), |
|
|
|
|
datas = checkStatus.data || []; |
|
|
|
|
if(datas.length<=0){ |
|
|
|
|
showErrorMsg("请至少选择一条数据!"); |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
if (basicData.reviewStatus === ReviewStatus.PASS) { |
|
|
|
|
addDataConfirm(removeData) |
|
|
|
|
} else { |
|
|
|
|
layer.confirm('是否确定移除该数据?', {}, function (index) { |
|
|
|
|
layer.close(index); |
|
|
|
|
removeData(); |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
function removeData() { |
|
|
|
|
const ids = datas.map(data => data.directoryId); |
|
|
|
|
Util.send(`/business/directory/batch/delete/${ids.join(',')}`, {}, 'delete').then(res => { |
|
|
|
|
if (res.flag) { |
|
|
|
|
showOkMsg('删除成功'); |
|
|
|
|
refreshPermis().then(() => { |
|
|
|
|
metaListTable.reloadTable(); |
|
|
|
|
}) |
|
|
|
|
} else { |
|
|
|
|
showErrorMsg(res.msg); |
|
|
|
|
} |
|
|
|
|
}).catch(() => showErrorMsg()); |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
metaListTable.addTableRowEvent('addFile', function () { |
|
|
|
|
|
|
|
|
|
upload(basicData, `${ctx}/sys/file/layer/dir?directoryId=${basicData.id}&secretLevel=${basicData.secretLevel}`, function (res) { |
|
|
|
|