傅行帆 hace 5 años
padre
commit
92ba84c82e
Se han modificado 1 ficheros con 9 adiciones y 3 borrados
  1. 9
    3
      src/pages/activity/editActivity.jsx

+ 9
- 3
src/pages/activity/editActivity.jsx Ver fichero

@@ -85,6 +85,12 @@ const BasicForm = props => {
85 85
         } else {
86 86
           request({ ...apis.activity.add, data: { ...values } }).then((data) => {
87 87
             message.info('保存成功')
88
+            router.push({
89
+              pathname: '/activity/editActivity',
90
+              query: {
91
+                dynamicId: data.dynamicId,
92
+              },
93
+            });
88 94
             // router.go(-1)
89 95
           }).catch((err) => {
90 96
             message.info(err.msg || err.message)
@@ -108,12 +114,12 @@ const BasicForm = props => {
108 114
           ],
109 115
         })(<BuildSelect disabled={disable}/>)}
110 116
         </Form.Item>
111
-        <Form.Item label="活动封面图" help="建议图片尺寸:750px*420px,比例16:9,格式:jpg,用于活动列表">
117
+        <Form.Item label="活动封面图1" help="建议图片尺寸:750px*420px,比例16:9,格式:jpg,用于活动列表">
112 118
           {getFieldDecorator('listImgUrl', {
113 119
           rules: [
114 120
             {
115 121
               required: true,
116
-              message: '请选择活动封面图',
122
+              message: '请选择活动封面图1',
117 123
             },
118 124
           ],
119 125
         })(<ImageUploader />)}
@@ -199,7 +205,7 @@ const BasicForm = props => {
199 205
               message: '请输入权重',
200 206
             },
201 207
           ],
202
-        })(<Input type="number" style={{ width: 80}}/>)}<span style={{ marginLeft: 30, color:'grey'}}>数字越大越靠前</span>
208
+        })(<Input type="number" disabled={activityStatus===0 ? true : false} style={{ width: 80}}/>)}<span style={{ marginLeft: 30, color:'grey'}}>数字越大越靠前</span>
203 209
         </Form.Item>
204 210
         <Form.Item wrapperCol={{ span: 12, offset: 8 }}>
205 211
           <Button type="primary" htmlType="submit">