|
@@ -44,6 +44,7 @@ class ModalTable extends React.Component {
|
44
|
44
|
// 弹框取消按钮
|
45
|
45
|
handleCancel() {
|
46
|
46
|
this.setState({ visibleData: { visible: false, customerId: '', realtyConsultant: '' } })
|
|
47
|
+ this.props.onCancel()
|
47
|
48
|
}
|
48
|
49
|
|
49
|
50
|
getList(params) {
|
|
@@ -200,6 +201,7 @@ class InviteTable extends React.Component {
|
200
|
201
|
|
201
|
202
|
// 弹框取消按钮
|
202
|
203
|
handleCancel() {
|
|
204
|
+ console.log('345')
|
203
|
205
|
this.setState({ dataSource: { records: [] } })
|
204
|
206
|
this.props.onCancel()
|
205
|
207
|
}
|
|
@@ -504,7 +506,7 @@ function body(props) {
|
504
|
506
|
</AuthButton>
|
505
|
507
|
<Table rowKey="independentIndex" dataSource={dataSource.records} columns={columns} pagination={{ total: dataSource.total, onChange }} />
|
506
|
508
|
{/* 推荐客户 */}
|
507
|
|
- <ModalTable visibleData={gVisibleData} />
|
|
509
|
+ <ModalTable visibleData={gVisibleData} onCancel={() => setGVisibleData({ visible: false, customerId: '', realtyConsultant: '' })}/>
|
508
|
510
|
|
509
|
511
|
{/* 邀请经纪人 */}
|
510
|
512
|
<InviteTable visibleData={gInviteData} onCancel={() => setGInviteData({ visible: false, customerId: '', realtyConsultant: '' })} />
|