liting2017 6 anni fa
parent
commit
2dad2d9cec
1 ha cambiato i file con 24 aggiunte e 24 eliminazioni
  1. 24 24
      js/component/account/setAccount/contacts.jsx

+ 24 - 24
js/component/account/setAccount/contacts.jsx

@@ -48,7 +48,7 @@ class Contancts extends React.Component {
 							mobile:item.mobile,
 							qq: item.qq,
 							email: item.email,
-							remarks: item.remarks	
+						//	remarks: item.remarks	
 						})
 					})
 					this.setState({
@@ -76,7 +76,7 @@ class Contancts extends React.Component {
 			mobile: '',
 			qq: '',
 			email: '',
-			remarks: ''
+			//remarks: ''
 		});
 		this.setState({ contactData });
 	}
@@ -103,7 +103,7 @@ class Contancts extends React.Component {
 				mobile: item.mobile,
 				qq: item.qq,
 				email: item.email,
-				remarks: item.remarks
+				//remarks: item.remarks
 			}
 		}).done(
 			function(data) {
@@ -299,27 +299,7 @@ class Contancts extends React.Component {
 												)}
 											</FormItem>
 										</Col>
-									</Row>
-									<Row>
-										<Col span={18}>
-											<FormItem labelCol={{ span: 2 }} wrapperCol={{ span: 20 }} label="备注">
-												{item.edit ? (
-													<Input
-														type="textarea"
-														placeholder="输入备注"
-														rows={4}
-														value={item.remarks}
-														onChange={(e, pre) => {
-															(item.remarks = e.target.value),
-																this.setState({ contactData: this.state.contactData });
-														}}
-													/>
-												) : (
-													<span>{item.remarks}</span>
-												)}
-											</FormItem>
-										</Col>
-										<Col span={6}>
+										<Col span={11} style={{textAlign:'right'}}>
 											{!item.edit ? (
 												<Button
 													type="primary"
@@ -353,6 +333,26 @@ class Contancts extends React.Component {
 											</Button>
 										</Col>
 									</Row>
+									{/*<Row>
+										 <Col span={18}>
+											<FormItem labelCol={{ span: 2 }} wrapperCol={{ span: 20 }} label="备注">
+												{item.edit ? (
+													<Input
+														type="textarea"
+														placeholder="输入备注"
+														rows={4}
+														value={item.remarks}
+														onChange={(e, pre) => {
+															(item.remarks = e.target.value),
+																this.setState({ contactData: this.state.contactData });
+														}}
+													/>
+												) : (
+													<span>{item.remarks}</span>
+												)}
+											</FormItem>
+										</Col> 
+									</Row>*/}
 								</Card>
 							</Row>
 						);