Commit 64d23a20 by zhaochengxiang

资产管理调整

parent 814265af
...@@ -203,7 +203,6 @@ const AssetAction = (props) => { ...@@ -203,7 +203,6 @@ const AssetAction = (props) => {
</div> </div>
<div <div
className='p-3'
style={{ style={{
flex: 1, flex: 1,
overflow: 'auto' overflow: 'auto'
...@@ -228,12 +227,22 @@ const AssetAction = (props) => { ...@@ -228,12 +227,22 @@ const AssetAction = (props) => {
return ( return (
<div key={index}> <div key={index}>
<div className='flex'> <div
<div style={{ color: 'rgba(0,0,0,0.75)' }}>{attribute||''}</div> className='flex'
style={{
justifyContent: 'space-between',
alignItems: 'center',
padding: '0 15px',
backgroundColor: '#106baa',
color: '#fff',
}}
>
<div>{attribute||''}</div>
{ {
attributesFoldMap[attribute] ? <Button type='text' style={{ padding: 0, color: '#0069AC' }} onClick={() => { onFoldButtonClick(attribute, false) }}>展开<DownOutlined /></Button> : <Button type='text' style={{ padding: 0, color: '#0069AC' }} onClick={() => { onFoldButtonClick(attribute, true) }}>收起<UpOutlined /></Button> attributesFoldMap[attribute] ? <Button type='text' style={{ padding: 0, color: '#fff' }} onClick={() => { onFoldButtonClick(attribute, false) }}>展开<DownOutlined /></Button> : <Button type='text' style={{ padding: 0, color: '#fff' }} onClick={() => { onFoldButtonClick(attribute, true) }}>收起<UpOutlined /></Button>
} }
</div> </div>
<div style={{ padding: 10 }}>
{ {
(currentAction==='add'||currentAction==='edit') ? <Form {...formItemLayout} form={form}> (currentAction==='add'||currentAction==='edit') ? <Form {...formItemLayout} form={form}>
{ {
...@@ -243,6 +252,7 @@ const AssetAction = (props) => { ...@@ -243,6 +252,7 @@ const AssetAction = (props) => {
label={element.name} label={element.name}
name={element.name} name={element.name}
key={_index} key={_index}
style={{ marginBottom: (_index===sameAttributeElements.length-1)? 0 : 10 }}
> >
{ (element.name==='资产项') ? <MetadataInfo /> : <Input disabled={element.manualMaintain==='否'} /> } { (element.name==='资产项') ? <MetadataInfo /> : <Input disabled={element.manualMaintain==='否'} /> }
</Form.Item> </Form.Item>
...@@ -253,7 +263,7 @@ const AssetAction = (props) => { ...@@ -253,7 +263,7 @@ const AssetAction = (props) => {
{ {
(sameAttributeElements||[]).map((item, index) => { (sameAttributeElements||[]).map((item, index) => {
return ( return (
<Descriptions.Item label={item.name||''} key={index}> <Descriptions.Item label={item.name||''} key={index} style={{ paddingBottom: (index===sameAttributeElements.length-1)? 0 : 10 }}>
{ {
item.name==='资产项' ? <MetadataInfo config={false} value={item.value||''} /> : <span>{highlightSearchContentByTerms(item.value||'', terms)}</span> item.name==='资产项' ? <MetadataInfo config={false} value={item.value||''} /> : <span>{highlightSearchContentByTerms(item.value||'', terms)}</span>
} }
...@@ -263,6 +273,7 @@ const AssetAction = (props) => { ...@@ -263,6 +273,7 @@ const AssetAction = (props) => {
} }
</Descriptions> </Descriptions>
} }
</div>
</div> </div>
); );
}) })
......
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