Commit 7c745e31 authored by 成旭东's avatar 成旭东

fix

parent ed37293e
Pipeline #27923 passed with stage
in 2 minutes 1 second
......@@ -194,15 +194,15 @@ const BusinessOpenInfoComponent = (props: any) => {
</div>
<div className={styles.panelItem}>
<span>预售许可证号:</span>
<span>{obj.code}</span>
<span>{obj.code || '--'}</span>
</div>
<div className={styles.panelItem}>
<span>取证时间:</span>
<span>{obj.license_date}</span>
<span>{obj.license_date || '--'}</span>
</div>
<div className={styles.panelItem}>
<span>开盘状态:</span>
<span>{obj.status}</span>
<span>{obj.status || '--'}</span>
</div>
</div>
</div>
......
......@@ -58,15 +58,15 @@ const HouseOpenInfoComponent = (props: any) => {
</div>
<div className={styles.panelItem}>
<span>预售许可证号:</span>
<span>{obj.code}</span>
<span>{obj.code || '--'}</span>
</div>
<div className={styles.panelItem}>
<span>取证时间:</span>
<span>{obj.license_date}</span>
<span>{obj.license_date || '--'}</span>
</div>
<div className={styles.panelItem}>
<span>开盘状态:</span>
<span>{obj.status}</span>
<span>{obj.status || '--'}</span>
</div>
</div>
</div>
......@@ -386,9 +386,14 @@ const HouseOpenInfoComponent = (props: any) => {
<div key={mapIndex}>
<span style={{ marginRight: 10 }}>{ mapItem.name }:</span>
{mapItem.component === 'select' ? (
<span style={{ fontWeight: 'bold' }}>{ mapItem.options.filter((filterItem: any) => filterItem.key === item[mapItem.key])[0].value }</span>
<span style={{ fontWeight: 'bold' }}>
{
mapItem.options.filter((filterItem: any) => filterItem.key === item[mapItem.key])[0] &&
mapItem.options.filter((filterItem: any) => filterItem.key === item[mapItem.key])[0].value || '--'
}
</span>
) : (
<span style={{ fontWeight: 'bold' }}>{ item[mapItem.key] }</span>
<span style={{ fontWeight: 'bold' }}>{ item[mapItem.key] || '--' }</span>
)}
</div>
))}
......@@ -399,7 +404,7 @@ const HouseOpenInfoComponent = (props: any) => {
{contentItem.map((mapItem: any, mapIndex: any) => (
<div key={mapIndex} style={{ marginRight: 20 }}>
<span style={{ marginRight: 10 }}>{ mapItem.name }:</span>
<span style={{ fontWeight: 'bold' }}>{ item[mapItem.key] }</span>
<span style={{ fontWeight: 'bold' }}>{ item[mapItem.key] || '--' }</span>
</div>
))}
</div>
......
......@@ -194,15 +194,15 @@ const OfficeOpenInfoComponent = (props: any) => {
</div>
<div className={styles.panelItem}>
<span>预售许可证号:</span>
<span>{obj.code}</span>
<span>{obj.code || '--'}</span>
</div>
<div className={styles.panelItem}>
<span>取证时间:</span>
<span>{obj.license_date}</span>
<span>{obj.license_date || '--'}</span>
</div>
<div className={styles.panelItem}>
<span>开盘状态:</span>
<span>{obj.status}</span>
<span>{obj.status || '--'}</span>
</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