Procházet zdrojové kódy

权重大于等于1

傅行帆 před 5 roky
rodič
revize
7ab8c7eddc

+ 1
- 1
src/pages/activity/editActivity.jsx Zobrazit soubor

@@ -221,7 +221,7 @@ const BasicForm = props => {
221 221
               message: '请输入权重',
222 222
             },
223 223
           ],
224
-        })(<Input type="number" style={{ width: 80}}/>)}<span style={{ marginLeft: 30, color:'grey'}}>数字越大越靠前</span>
224
+        })(<Input type="number" min={1} style={{ width: 80}}/>)}<span style={{ marginLeft: 30, color:'grey'}}>数字越大越靠前</span>
225 225
         </Form.Item>
226 226
         <Form.Item wrapperCol={{ span: 12, offset: 8 }}>
227 227
           <Button type="primary" htmlType="submit">

+ 1
- 1
src/pages/activity/groupActivity/editGroupActivity.jsx Zobrazit soubor

@@ -163,7 +163,7 @@ const Edit = props => {
163 163
         label: '权重',
164 164
         name: 'heavy',
165 165
         type: FieldTypes.Number,
166
-        render: <Input type="number" style={{ width: 80}} />,
166
+        render: <Input type="number" min={1} style={{ width: 80}} />,
167 167
         value: dynamicData.heavy,
168 168
         rules: [
169 169
           { required: true, message: '请输入权重' },

+ 1
- 1
src/pages/activity/helpActivity/edithelpActivity.jsx Zobrazit soubor

@@ -266,7 +266,7 @@ const header = props => {
266 266
               message: '请输入权重',
267 267
             },
268 268
           ],
269
-        })(<Input type="number" style={{ width: 80}}/>)}<span style={{ marginLeft: 30, color:'grey'}}>数字越大越靠前</span>
269
+        })(<Input type="number" min={1} style={{ width: 80}}/>)}<span style={{ marginLeft: 30, color:'grey'}}>数字越大越靠前</span>
270 270
         </Form.Item>
271 271
         <Form.Item wrapperCol={{ span: 12, offset: 8 }}>
272 272
           <Button type="primary" htmlType="submit">