Browse Source

修复bug

魏熙美 5 years ago
parent
commit
f49f6e08e6

+ 1
- 1
src/components/SelectButton/BuildSelect.jsx View File

37
   },[])
37
   },[])
38
 
38
 
39
   const getCityList = (e) => {
39
   const getCityList = (e) => {
40
-    request({ ...apis.building.buildingSelect, params: {pageNum: 1,pageSize: 999}, }).then((data) => {
40
+    request({ ...apis.building.getList, params: {pageNum: 1,pageSize: 999}, }).then((data) => {
41
         setData(data.records)
41
         setData(data.records)
42
         // 默认选中第一个
42
         // 默认选中第一个
43
         if (props.checkFirst) {
43
         if (props.checkFirst) {

+ 1
- 1
src/pages/staff/list/StaffList.jsx View File

65
 
65
 
66
     <Card className={Styles.card}>
66
     <Card className={Styles.card}>
67
       <div>
67
       <div>
68
-        <Avatar src={data.avatar} style={{ width: '0.48rem', height: '0.48rem' }} />
68
+        <Avatar src={data.photo} style={{ width: '0.48rem', height: '0.48rem' }} />
69
         <Button type="link" style={{color: '#FF925C', fontSize: '0.106rem',position: 'absolute', top: '40px', left: '0.56rem' }} onClick={toEditStaff(data.userId)}>
69
         <Button type="link" style={{color: '#FF925C', fontSize: '0.106rem',position: 'absolute', top: '40px', left: '0.56rem' }} onClick={toEditStaff(data.userId)}>
70
           编辑
70
           编辑
71
                 <Icon type="form" style={{ color: '#C0C4CC', marginLeft: '0.04rem' }} />
71
                 <Icon type="form" style={{ color: '#C0C4CC', marginLeft: '0.04rem' }} />