Commit da25e043 by zhaochengxiang

bug fix

parent 23a6edff
......@@ -594,17 +594,6 @@ const AssetAction = React.forwardRef(function (props, ref) {
}
}
const onAuthorizationButtonClick = () => {
if (assets?.metadataId) {
app?.setGlobalState && app?.setGlobalState({
message: 'data-govern-assets-admit',
data: assets
})
} else {
showMessage("warn","该资产目录没有关联元数据信息");
}
}
const jumpToPath = (item) => {
const timestamp = new Date().getTime();
......@@ -841,9 +830,6 @@ const AssetAction = React.forwardRef(function (props, ref) {
<Button onClick={onActionButtonClick}>{(reference===AssetDraftReference||!needSaveAsDraft)?'保存':'保存草稿'}</Button>
</React.Fragment>
}
{/* {
(reference!==AssetDraftReference&&!isPostAsset(assets?.templateType)) && <Button onClick={onAuthorizationButtonClick}>授权</Button>
} */}
</React.Fragment>
}
......
......@@ -915,14 +915,18 @@ const AssetTable = (props) => {
}
});
} else if (id === 'authorization') {
if (record.metadata?.metadataTableId) {
app?.setGlobalState && app?.setGlobalState({
message: 'data-govern-assets-admit',
data: record
})
} else {
showMessage("warn","该资产目录没有关联元数据信息");
}
app?.setGlobalState && app?.setGlobalState({
message: 'data-govern-assets-admit',
data: record
})
// if (record.metadata?.metadataTableId) {
// app?.setGlobalState && app?.setGlobalState({
// message: 'data-govern-assets-admit',
// data: record
// })
// } else {
// showMessage("warn","该资产目录没有关联元数据信息");
// }
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment