Commit c10b9ec3 authored by 张子雨's avatar 张子雨

feat: 优化

parent a4ec34cf
...@@ -227,9 +227,8 @@ class BusinessInfo extends Component { ...@@ -227,9 +227,8 @@ class BusinessInfo extends Component {
obj.addr.forEach((item, i) => { obj.addr.forEach((item, i) => {
obj[areaArr[i]] = item; obj[areaArr[i]] = item;
}); });
if (this.state.settlementType === 1) { obj.accountOpenPermitImage =
obj.accountOpenPermitImage = imgs.accountOpenPermitImage[0].url; (imgs?.accountOpenPermitImage?.length && imgs.accountOpenPermitImage[0].url) || '';
}
if (obj.supplierRateDTOList && obj.supplierRateDTOList.length) { if (obj.supplierRateDTOList && obj.supplierRateDTOList.length) {
obj.supplierRateDTOList.forEach(item => { obj.supplierRateDTOList.forEach(item => {
if (item.ratedate && item.ratedate.length) { if (item.ratedate && item.ratedate.length) {
......
...@@ -93,7 +93,7 @@ const ContractView = () => { ...@@ -93,7 +93,7 @@ const ContractView = () => {
)} )}
{visible && ( {visible && (
<div className={style.contract}> <div className={style.contract}>
<iframe src={url} height="500" width="95%" title="合同"></iframe> <iframe src={url} height="600" width="100%" title="合同"></iframe>
<Button type="primary" onClick={() => setVisible(false)}> <Button type="primary" onClick={() => setVisible(false)}>
取消 取消
</Button> </Button>
......
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