|
|
@ -27,6 +27,11 @@ layui.use(['form', 'layer', 'editPage', 'laytpl', 'laydate', 'element', 'table', |
|
|
|
formInitUrl: requestParam.id ? `${ctx}/business/metadata/get/${requestParam.id}` : '', |
|
|
|
formInitUrl: requestParam.id ? `${ctx}/business/metadata/get/${requestParam.id}` : '', |
|
|
|
formSubmitInvoke: async function () { // 自定义表单提交时的方法
|
|
|
|
formSubmitInvoke: async function () { // 自定义表单提交时的方法
|
|
|
|
let metadataBasic = form.val('metadataForm'); |
|
|
|
let metadataBasic = form.val('metadataForm'); |
|
|
|
|
|
|
|
console.info(user); |
|
|
|
|
|
|
|
if(metadataBasic.secretLevel > user.secretLevel){ |
|
|
|
|
|
|
|
layer.alert('禁止上传超过自身涉密等级的数据,您的涉密等级为【'+ DICT.getText('secret_level', user.secretLevel) +'】', {icon:2}) |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
metadataBasic.metadataDetailsList = []; |
|
|
|
metadataBasic.metadataDetailsList = []; |
|
|
|
for (let metadata of metadataTableMap.values()) { |
|
|
|
for (let metadata of metadataTableMap.values()) { |
|
|
|
metadataBasic.metadataDetailsList.push(metadata); |
|
|
|
metadataBasic.metadataDetailsList.push(metadata); |
|
|
|