|
@@ -3,7 +3,7 @@ import { Form, Icon, Input, Button, DatePicker, Select, Card, Row, Col, Paginati
|
3
|
3
|
import moment from 'moment';
|
4
|
4
|
import apis from '@/services/apis';
|
5
|
5
|
import request from '@/utils/request';
|
6
|
|
-
|
|
6
|
+import BuildSelect from '@/components/SelectButton/BuildSelect'
|
7
|
7
|
|
8
|
8
|
/**
|
9
|
9
|
* 分配置业顾问
|
|
@@ -58,7 +58,11 @@ class ModalAttribution extends React.Component {
|
58
|
58
|
'',
|
59
|
59
|
});
|
60
|
60
|
};
|
61
|
|
-
|
|
61
|
+ changBuilding(buildingId){
|
|
62
|
+ this.getUserList({ pageNumber: 1, pageSize: 5, buildingId: buildingId })
|
|
63
|
+ this.setState({ visibleData: { visible: this.props.visible, buildingId: buildingId } });
|
|
64
|
+ // this.setState({ visibleData: { visible: this.props.visibleData.visible, customerId: this.props.visibleData.customerId, buildingName: buildingId } });
|
|
65
|
+ }
|
62
|
66
|
// 分页
|
63
|
67
|
onChange(pageNum) {
|
64
|
68
|
|
|
@@ -102,19 +106,21 @@ class ModalAttribution extends React.Component {
|
102
|
106
|
key: 'personId',
|
103
|
107
|
width: 80,
|
104
|
108
|
// eslint-disable-next-line no-nested-ternary
|
105
|
|
- render: (_, record) => <>{record.userId !== this.props.userId ? <Button type="danger" onClick={() => this.submitGm(record)}>确定</Button> : ''}</>,
|
|
109
|
+ render: (_, record) => <>{record.realUserId !== this.props.userId ? <Button type='primary' onClick={() => this.submitGm(record)}>确定</Button> : ''}</>,
|
106
|
110
|
},
|
107
|
111
|
]
|
108
|
112
|
return (
|
109
|
113
|
<>
|
110
|
114
|
<Modal
|
111
|
115
|
title="分配置业顾问"
|
112
|
|
- width={600}
|
113
|
116
|
destroyOnClose="true"
|
114
|
117
|
footer={null}
|
|
118
|
+ width={900}
|
115
|
119
|
visible={this.state.visibleData.visible}
|
116
|
120
|
onCancel={(e) => this.handleCancel(e)}
|
117
|
121
|
>
|
|
122
|
+ {/* onChange={this.changBuilding.bind(this)} */}
|
|
123
|
+ {/* <BuildSelect onChange={(e)=>this.changBuilding(e)} value={this.state.visibleData.buildingId} /> */}
|
118
|
124
|
<Table rowKey="userId" dataSource={this.state.dataSource.records} columns={columns} pagination={{ pageSize: 5, total: this.state.dataSource.total, onChange: e => this.onChange(e) }} />
|
119
|
125
|
</Modal>
|
120
|
126
|
</>
|