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,8 +1510,7 @@ const AssetAction = (props) => {
编辑
</Button>
}
{
((reference!==AssetDraftReference)||(reference===AssetDraftReference&&assets?.templateType!=='mdg')) && <Button
<Button
onClick={() => {
if (metadata?.metadataTableId) {
setAttributeMaintainParam({
......@@ -1525,7 +1524,6 @@ const AssetAction = (props) => {
>
字段级维护
</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