张延森 3 years ago
parent
commit
5d35dbf061

+ 1
- 0
config/config.js View File

72
 export default {
72
 export default {
73
   plugins,
73
   plugins,
74
   hash: true,
74
   hash: true,
75
+  publicPath: './',
75
   targets: {
76
   targets: {
76
     ie: 11,
77
     ie: 11,
77
   },
78
   },

+ 3
- 10
src/pages/building/Edit/Basic/index.jsx View File

150
           })(<BuildingType />)}
150
           })(<BuildingType />)}
151
         </Form.Item>
151
         </Form.Item>
152
         <FormGroupItem>
152
         <FormGroupItem>
153
-          <Form.Item label="文旅商办" help="是否将本项目归纳在【首页-文旅商办】中">
153
+          <Form.Item label="文旅商办" help="是否将本项目归纳在【首页-文旅商办】中"  {...gourpItemLayout.ab.a}>
154
             {getFieldDecorator('isCommerce')(<Switch />)}
154
             {getFieldDecorator('isCommerce')(<Switch />)}
155
           </Form.Item>
155
           </Form.Item>
156
-          <Form.Item label="近期开盘" help="本项目是否近期开盘">
156
+          <Form.Item label="近期开盘" help="本项目是否近期开盘" {...gourpItemLayout.ab.b}>
157
             {getFieldDecorator('isRecentOpening')(<Switch />)}
157
             {getFieldDecorator('isRecentOpening')(<Switch />)}
158
           </Form.Item>
158
           </Form.Item>
159
         </FormGroupItem>
159
         </FormGroupItem>
167
             )}
167
             )}
168
           </Form.Item>
168
           </Form.Item>
169
           <Form.Item label="电话" {...gourpItemLayout.ab.b } >
169
           <Form.Item label="电话" {...gourpItemLayout.ab.b } >
170
-            {getFieldDecorator('tel', {
171
-              rules: [
172
-                {
173
-                  pattern: new RegExp('^[0-9]*$'),
174
-                  message: '请输入正确的电话号码',
175
-                },
176
-              ],
177
-            })(<Input placeholder="手机或者座机号码" />)}
170
+            {getFieldDecorator('tel')(<Input placeholder="手机或者座机号码" />)}
178
           </Form.Item>
171
           </Form.Item>
179
         </FormGroupItem>
172
         </FormGroupItem>
180
         <Form.Item label="项目说明" >
173
         <Form.Item label="项目说明" >

+ 9
- 1
src/pages/building/Edit/components/BuildingTypeSelect.jsx View File

8
   // textAlign: 'center',
8
   // textAlign: 'center',
9
 };
9
 };
10
 
10
 
11
+const gridBtn = {
12
+  lineHeight: 'inherit',
13
+  border: 'none',
14
+  height: 'auto',
15
+  margin: '0',
16
+  padding: '0',
17
+}
18
+
11
 export default React.forwardRef((props, ref) => {
19
 export default React.forwardRef((props, ref) => {
12
   const {value, onChange} = props;
20
   const {value, onChange} = props;
13
   const [showDrawer, setShowDrawer] = useState(false)
21
   const [showDrawer, setShowDrawer] = useState(false)
85
                 onChange={handleChange(it)}
93
                 onChange={handleChange(it)}
86
               />
94
               />
87
               <span style={{display: 'inline-block', margin: '0 .5em'}}>{it.buildingTypeName}</span>
95
               <span style={{display: 'inline-block', margin: '0 .5em'}}>{it.buildingTypeName}</span>
88
-              {checked && <a href="#" onClick={handleClick(it)}><Icon type="edit" /></a>}              
96
+              {checked && <Button style={gridBtn} type="link" onClick={handleClick(it)}><Icon type="edit" /></Button>}              
89
             </Card.Grid>
97
             </Card.Grid>
90
           )
98
           )
91
         })
99
         })