Commit 9286ace2 authored by 张子雨's avatar 张子雨

feat: 优化

parent b3ebf63f
...@@ -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,10 +93,12 @@ const ContractView = () => { ...@@ -93,10 +93,12 @@ 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="600px" width="100%" title="合同"></iframe>
<Button type="primary" onClick={() => setVisible(false)}> <div>
取消 <Button type="primary" onClick={() => setVisible(false)}>
</Button> 取消
</Button>
</div>
</div> </div>
)} )}
</PageHeaderWrapper> </PageHeaderWrapper>
......
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