Commit ce7a394b by zhaochengxiang

资产权限

parent 2eda3693
...@@ -420,6 +420,8 @@ const AssetAction = (props) => { ...@@ -420,6 +420,8 @@ const AssetAction = (props) => {
</div> </div>
} }
{ {
(!loading && assets?.allowButtons && ((assets?.allowButtons||[]).findIndex(item => item==='preview') === -1)) ? <div className='m-1'>暂无权限</div> : <React.Fragment>
{
(action!=='add' && (id||'')!=='') && <div> (action!=='add' && (id||'')!=='') && <div>
<div className='pl-common py-compact-common'> <div className='pl-common py-compact-common'>
<Descriptions column={1}> <Descriptions column={1}>
...@@ -585,7 +587,8 @@ const AssetAction = (props) => { ...@@ -585,7 +587,8 @@ const AssetAction = (props) => {
} }
</Spin> </Spin>
</div> </div>
</React.Fragment>
}
<AppContext.Consumer> <AppContext.Consumer>
{ {
value => { value => {
......
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