dingxin 5 years ago
parent
commit
5d4959dd41

+ 12
- 2
src/pages/building/list/add/components/modalImage.jsx View File

196
               </Form.Item>
196
               </Form.Item>
197
               <Form.Item label="面积" help="单位 ㎡">
197
               <Form.Item label="面积" help="单位 ㎡">
198
                 {getFieldDecorator('buildingArea', {
198
                 {getFieldDecorator('buildingArea', {
199
-                  rules: [{ required: true, message: '请填写面积' }],
199
+                  rules: [{ required: true, message: '请填写面积' },
200
+                          {
201
+                            pattern: new RegExp('^[0-9]*$'),
202
+                            message: '只允许输入数字',
203
+                          },
204
+                  ],
200
                 })(<Input type="number" />)}
205
                 })(<Input type="number" />)}
201
               </Form.Item>
206
               </Form.Item>
202
               <Form.Item label="套内面积" help="单位 ㎡">
207
               <Form.Item label="套内面积" help="单位 ㎡">
203
                 {getFieldDecorator('insideArea', {
208
                 {getFieldDecorator('insideArea', {
204
-                  rules: [{ required: true, message: '请填写套内面积' }],
209
+                  rules: [{ required: true, message: '请填写套内面积' },
210
+                          {
211
+                            pattern: new RegExp('^[0-9]*$'),
212
+                            message: '只允许输入数字',
213
+                          },
214
+                  ],
205
                 })(<Input type="number" />)}
215
                 })(<Input type="number" />)}
206
               </Form.Item>
216
               </Form.Item>
207
               <Form.Item style={{ width: '400px', margin: 'auto', display: 'flex', justifyContent: 'space-between' }}>
217
               <Form.Item style={{ width: '400px', margin: 'auto', display: 'flex', justifyContent: 'space-between' }}>

+ 1
- 1
src/pages/carouselFigure/advertisingList.jsx View File

46
       dataIndex: 'image',
46
       dataIndex: 'image',
47
       key: 'image',
47
       key: 'image',
48
       align: 'center',
48
       align: 'center',
49
-      render: (image) => <img src={image} className={styles.touxiang} />,
49
+      render: (image) => <img src={image} className={styles.imgSmall} />,
50
     },
50
     },
51
     {
51
     {
52
       title: '类型',
52
       title: '类型',

+ 1
- 1
src/pages/carouselFigure/carouselFigureList.jsx View File

46
       dataIndex: 'image',
46
       dataIndex: 'image',
47
       key: 'image',
47
       key: 'image',
48
       align: 'center',
48
       align: 'center',
49
-      render: (image) => <img src={image} className={styles.touxiang} />,
49
+      render: (image) => <img src={image} className={styles.imgPerfect} />,
50
     },
50
     },
51
     {
51
     {
52
       title: '类型',
52
       title: '类型',

+ 10
- 0
src/pages/style/GoodsList.less View File

9
   height: 93px;
9
   height: 93px;
10
 }
10
 }
11
 
11
 
12
+.imgPerfect {
13
+  width: 120px;
14
+  height: 67.5px;
15
+}
16
+
17
+.imgSmall {
18
+  width: 90px;
19
+  height: 135px;
20
+}
21
+
12
 .ant-table-column-title {
22
 .ant-table-column-title {
13
   font-weight: 600;
23
   font-weight: 600;
14
 }
24
 }