Commit de9391bf by zhaochengxiang

草稿中加状态

parent f30ab4ae
...@@ -1286,10 +1286,11 @@ const AssetAction = (props) => { ...@@ -1286,10 +1286,11 @@ const AssetAction = (props) => {
{ {
(action!=='add' && (id||'')!=='') && <div> (action!=='add' && (id||'')!=='') && <div>
<div className='mb-3'> <div className='mb-3'>
<Descriptions column={1}> <Descriptions column={(reference===AssetDraftReference)?4:1}>
<Descriptions.Item <Descriptions.Item
label={<div className='title-text' style={{ textAlign: 'right', width: 90 }}>资产目录路径</div>} label='资产目录路径'
style={{ paddingBottom: 0 }} style={{ paddingBottom: 0 }}
span={2}
> >
<span> <span>
{ {
...@@ -1305,6 +1306,25 @@ const AssetAction = (props) => { ...@@ -1305,6 +1306,25 @@ const AssetAction = (props) => {
} }
</span> </span>
</Descriptions.Item> </Descriptions.Item>
{
(reference===AssetDraftReference) && <>
<Descriptions.Item
label='修改类型'
style={{ paddingBottom: 0 }}
>
{ assets?.operation==='release' && '新增'}
{ assets?.operation==='change' && '修改'}
{ assets?.operation==='offline' && '停用'}
</Descriptions.Item>
<Descriptions.Item
label='状态'
style={{ paddingBottom: 0 }}
>
{ assets?.state==='draft' && '待提交'}
{ assets?.operation==='auditing' && '审批中'}
</Descriptions.Item>
</>
}
</Descriptions> </Descriptions>
</div> </div>
</div> </div>
......
...@@ -70,7 +70,7 @@ const AssetDetailPage = (props)=>{ ...@@ -70,7 +70,7 @@ const AssetDetailPage = (props)=>{
return( return(
<div className='asset-detail position-relative'> <div className='asset-detail position-relative'>
<div className='detail-header'> <div className='detail-header'>
<span style={{ fontSize: 16, fontWeight: 'bold', color: '#000' }}>{(isDraft==='true')?'资产目录草稿详情':'资产目录详情'}</span> <span style={{ fontSize: 16, fontWeight: 'bold', color: '#000' }}>资产目录详情</span>
</div> </div>
<Spin spinning={loading}> <Spin spinning={loading}>
<div className='detail-container'> <div className='detail-container'>
......
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