|
@@ -21,8 +21,8 @@ const sexDicts = [
|
21
|
21
|
|
22
|
22
|
export default withLayout((props) => {
|
23
|
23
|
const { router, person } = props
|
24
|
|
- const { type } = router.params
|
25
|
24
|
const { personId, personType } = person
|
|
25
|
+ const { buildingId : originBuiding } = router.params
|
26
|
26
|
|
27
|
27
|
const [loading, setLoading] = useState(false)
|
28
|
28
|
const [buildingId, setBuildingId] = useState(null)
|
|
@@ -40,10 +40,11 @@ export default withLayout((props) => {
|
40
|
40
|
const postSubmit = getSubmitor(person)
|
41
|
41
|
|
42
|
42
|
useEffect(() => {
|
43
|
|
- if(buildingId) {
|
44
|
|
-
|
|
43
|
+ console.log('------originBuiding------>', originBuiding)
|
|
44
|
+ if(originBuiding) {
|
|
45
|
+ setBuildingId(originBuiding)
|
45
|
46
|
}
|
46
|
|
- }, [buildingId])
|
|
47
|
+ }, [originBuiding])
|
47
|
48
|
|
48
|
49
|
const preSubmit = (payload) => {
|
49
|
50
|
if (payload.name === '') {
|
|
@@ -142,12 +143,12 @@ export default withLayout((props) => {
|
142
|
143
|
</view>
|
143
|
144
|
|
144
|
145
|
{
|
145
|
|
- type !== 'consultant' &&
|
|
146
|
+ personType !== ROLE_CODE.CONSULTANT &&
|
146
|
147
|
<Block>
|
147
|
148
|
<text>意向楼盘</text>
|
148
|
149
|
<view className='FormLine flex-h'>
|
149
|
150
|
<view className='flex-item'>
|
150
|
|
- <BuildingPicker change={BuildingChange} value={buildingId} type={type} />
|
|
151
|
+ <BuildingPicker change={BuildingChange} value={buildingId} type={personType} />
|
151
|
152
|
</view>
|
152
|
153
|
</view>
|
153
|
154
|
|