liting2017 il y a 7 ans
Parent
commit
5de8233192
1 fichiers modifiés avec 9 ajouts et 9 suppressions
  1. 9 9
      js/component/manageCenter/customer/myClient.jsx

+ 9 - 9
js/component/manageCenter/customer/myClient.jsx

@@ -1379,10 +1379,10 @@ const AchievementList = Form.create()(React.createClass({
 				                        	<FormItem className="half-item"
 					                            {...formItemLayout}
 					                            label="姓名" >
-					                            {getFieldDecorator('contactName', {					                              
+					                            {getFieldDecorator('name', {					                              
 					                                initialValue: this.state.name
 					                            })(
-					                                <Input />
+					                                <Input onChange={(e) => { this.setState({ name: e.target.value }) }}/>
 					                                )}
 					                        </FormItem>
 					                        <FormItem className="half-item"
@@ -1417,7 +1417,7 @@ const AchievementList = Form.create()(React.createClass({
 					                            {getFieldDecorator('telNum', {	
 					                                initialValue: this.state.telNum 
 					                            })(
-					                                <Input />
+					                                <Input onChange={(e) => { this.setState({ telNum: e.target.value }) }}/>
 					                                )}
 					                        </FormItem>
 					                        <FormItem className="half-item"
@@ -1426,7 +1426,7 @@ const AchievementList = Form.create()(React.createClass({
 					                            {getFieldDecorator('mobile', {	                              
 					                                initialValue: this.state.mobile
 					                            })(
-					                                <Input />
+					                                <Input onChange={(e) => { this.setState({ mobile: e.target.value }) }}/>
 					                                )}
 					                        </FormItem>
 					                        <FormItem className="half-item"
@@ -1435,7 +1435,7 @@ const AchievementList = Form.create()(React.createClass({
 					                            {getFieldDecorator('qq', {	                              
 					                                initialValue: this.state.qq
 					                            })(
-					                                <Input />
+					                                <Input onChange={(e) => { this.setState({ qq: e.target.value }) }}/>
 					                                )}
 					                        </FormItem>
 					                        <FormItem className="half-item"
@@ -1444,7 +1444,7 @@ const AchievementList = Form.create()(React.createClass({
 					                            {getFieldDecorator('email', {	                              
 					                                initialValue: this.state.email
 					                            })(
-					                                <Input />
+					                                <Input onChange={(e) => { this.setState({ email: e.target.value }) }}/>
 					                                )}
 					                        </FormItem>
 					                        <FormItem className="half-item"
@@ -1453,7 +1453,7 @@ const AchievementList = Form.create()(React.createClass({
 					                            {getFieldDecorator('wechat', {	                              
 					                                initialValue: this.state.wechat
 					                            })(
-					                                <Input />
+					                                <Input onChange={(e) => { this.setState({ wechat: e.target.value }) }}/>
 					                                )}
 					                        </FormItem>
 					                        <FormItem className="half-item"
@@ -1462,7 +1462,7 @@ const AchievementList = Form.create()(React.createClass({
 					                            {getFieldDecorator('depatrment', {	                              
 					                                initialValue: this.state.depatrment
 					                            })(
-					                                <Input />
+					                                <Input onChange={(e) => { this.setState({ depatrment: e.target.value }) }}/>
 					                                )}
 					                        </FormItem>
 					                        <FormItem className="half-item"
@@ -1471,7 +1471,7 @@ const AchievementList = Form.create()(React.createClass({
 					                            {getFieldDecorator('customerPosition', {	                              
 					                                initialValue: this.state.customerPosition
 					                            })(
-					                                <Input />
+					                                <Input onChange={(e) => { this.setState({ customerPosition: e.target.value }); }}/>
 					                                )}
 					                        </FormItem>												                                  
 										        	</div>