瀏覽代碼

Merge branch 'master' of http://git.ycjcjy.com/zhiyuxing/estateagents-admin-manager

傅行帆 5 年之前
父節點
當前提交
cef1d7dd56
共有 2 個檔案被更改,包括 2 行新增1 行删除
  1. 1
    0
      src/components/SelectButton/BuildSelect.jsx
  2. 1
    1
      src/pages/system/intention.jsx

+ 1
- 0
src/components/SelectButton/BuildSelect.jsx 查看文件

38
         // 默认选中第一个
38
         // 默认选中第一个
39
         if ((!preProps || !preProps.one) && props.one === 'true') {
39
         if ((!preProps || !preProps.one) && props.one === 'true') {
40
           setValue(data.records[0].buildingId)
40
           setValue(data.records[0].buildingId)
41
+          props.onChange(data.records[0].buildingId)
41
         }
42
         }
42
     })
43
     })
43
   }
44
   }

+ 1
- 1
src/pages/system/intention.jsx 查看文件

57
     <>
57
     <>
58
       <Row>
58
       <Row>
59
         <Col span={6}>
59
         <Col span={6}>
60
-          <BuildSelect onChange={changBuilding} />
60
+          <BuildSelect onChange={changBuilding} one="true" />
61
         </Col>
61
         </Col>
62
         <Col span={5} style={{ lineHeight: '30px' }}>
62
         <Col span={5} style={{ lineHeight: '30px' }}>
63
           用户操作
63
           用户操作