Commit af66eb2f by zhaochengxiang

草稿和管理保持一致

parent 0c74811a
......@@ -397,7 +397,7 @@ const AssetAction = (props) => {
}
if (!readonly &&
(reference===AssetManageReference||(reference!==AssetDraftReference&&canEdit))
(reference===AssetManageReference||canEdit)
) {
newCols.push(actionCol)
}
......@@ -1510,22 +1510,20 @@ const AssetAction = (props) => {
编辑
</Button>
}
{
((reference!==AssetDraftReference)||(reference===AssetDraftReference&&assets?.templateType!=='mdg')) && <Button
<Button
onClick={() => {
if (metadata?.metadataTableId) {
setAttributeMaintainParam({
visible: true,
metadataId: metadata?.metadataTableId
});
} else {
showMessage("warn","该资产目录没有关联元数据信息");
}
}}
>
字段级维护
</Button>
}
if (metadata?.metadataTableId) {
setAttributeMaintainParam({
visible: true,
metadataId: metadata?.metadataTableId
});
} else {
showMessage("warn","该资产目录没有关联元数据信息");
}
}}
>
字段级维护
</Button>
</React.Fragment>
}
<Input size="middle"
......
......@@ -96,9 +96,9 @@ const FC = (props) => {
}, [visible, pagination, catalogId])
const catalogs = useMemo(() => {
if (reference === AssetDraftReference) {
return [{ title: '字段级资产目录', key: '1' }]
}
// if (reference === AssetDraftReference) {
// return [{ title: '字段级资产目录', key: '1' }]
// }
if (asset?.templateType==='mdg') {
return [
......
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