张延森 3 vuotta sitten
vanhempi
commit
5d35dbf061

+ 1
- 0
config/config.js Näytä tiedosto

@@ -72,6 +72,7 @@ if (isAntDesignProPreview) {
72 72
 export default {
73 73
   plugins,
74 74
   hash: true,
75
+  publicPath: './',
75 76
   targets: {
76 77
     ie: 11,
77 78
   },

+ 3
- 10
src/pages/building/Edit/Basic/index.jsx Näytä tiedosto

@@ -150,10 +150,10 @@ const BuildingBasic = React.forwardRef((props, ref) => {
150 150
           })(<BuildingType />)}
151 151
         </Form.Item>
152 152
         <FormGroupItem>
153
-          <Form.Item label="文旅商办" help="是否将本项目归纳在【首页-文旅商办】中">
153
+          <Form.Item label="文旅商办" help="是否将本项目归纳在【首页-文旅商办】中"  {...gourpItemLayout.ab.a}>
154 154
             {getFieldDecorator('isCommerce')(<Switch />)}
155 155
           </Form.Item>
156
-          <Form.Item label="近期开盘" help="本项目是否近期开盘">
156
+          <Form.Item label="近期开盘" help="本项目是否近期开盘" {...gourpItemLayout.ab.b}>
157 157
             {getFieldDecorator('isRecentOpening')(<Switch />)}
158 158
           </Form.Item>
159 159
         </FormGroupItem>
@@ -167,14 +167,7 @@ const BuildingBasic = React.forwardRef((props, ref) => {
167 167
             )}
168 168
           </Form.Item>
169 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 171
           </Form.Item>
179 172
         </FormGroupItem>
180 173
         <Form.Item label="项目说明" >

+ 9
- 1
src/pages/building/Edit/components/BuildingTypeSelect.jsx Näytä tiedosto

@@ -8,6 +8,14 @@ const gridStyle = {
8 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 19
 export default React.forwardRef((props, ref) => {
12 20
   const {value, onChange} = props;
13 21
   const [showDrawer, setShowDrawer] = useState(false)
@@ -85,7 +93,7 @@ export default React.forwardRef((props, ref) => {
85 93
                 onChange={handleChange(it)}
86 94
               />
87 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 97
             </Card.Grid>
90 98
           )
91 99
         })