Commit af66eb2f by zhaochengxiang

草稿和管理保持一致

parent 0c74811a
...@@ -397,7 +397,7 @@ const AssetAction = (props) => { ...@@ -397,7 +397,7 @@ const AssetAction = (props) => {
} }
if (!readonly && if (!readonly &&
(reference===AssetManageReference||(reference!==AssetDraftReference&&canEdit)) (reference===AssetManageReference||canEdit)
) { ) {
newCols.push(actionCol) newCols.push(actionCol)
} }
...@@ -1510,8 +1510,7 @@ const AssetAction = (props) => { ...@@ -1510,8 +1510,7 @@ const AssetAction = (props) => {
编辑 编辑
</Button> </Button>
} }
{ <Button
((reference!==AssetDraftReference)||(reference===AssetDraftReference&&assets?.templateType!=='mdg')) && <Button
onClick={() => { onClick={() => {
if (metadata?.metadataTableId) { if (metadata?.metadataTableId) {
setAttributeMaintainParam({ setAttributeMaintainParam({
...@@ -1525,7 +1524,6 @@ const AssetAction = (props) => { ...@@ -1525,7 +1524,6 @@ const AssetAction = (props) => {
> >
字段级维护 字段级维护
</Button> </Button>
}
</React.Fragment> </React.Fragment>
} }
<Input size="middle" <Input size="middle"
......
...@@ -96,9 +96,9 @@ const FC = (props) => { ...@@ -96,9 +96,9 @@ const FC = (props) => {
}, [visible, pagination, catalogId]) }, [visible, pagination, catalogId])
const catalogs = useMemo(() => { const catalogs = useMemo(() => {
if (reference === AssetDraftReference) { // if (reference === AssetDraftReference) {
return [{ title: '字段级资产目录', key: '1' }] // return [{ title: '字段级资产目录', key: '1' }]
} // }
if (asset?.templateType==='mdg') { if (asset?.templateType==='mdg') {
return [ 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