ソースを参照

修改转交业务按钮位置

mentoswzq 4 年 前
コミット
f021ef0fc6

+ 0 - 2
js/component/manageCenter/customer/NEW/signCustomer/intentionDetail/intentionDetail.jsx

@@ -101,8 +101,6 @@ const IntentionDetail = React.createClass({
 //		}
 	},
 	componentWillReceiveProps(nextProps) {
-		console.log(nextProps);
-		
 		if(nextProps.modalVisible && nextProps.IntentionData.id) {
 			this.setState({
 				modalVisible:true,

+ 16 - 16
js/component/manageCenter/customer/NEW/signCustomer/signCustomer.jsx

@@ -197,6 +197,20 @@ const IntentionCustomer = Form.create()(React.createClass({
                 >
                   转交记录
                 </Button>
+				  <Button
+					  style={{ marginLeft: 10 }}
+					  type="primary"
+					  onClick={(e)=>{
+						  e.stopPropagation();
+						  this.setState({
+							  defaultActiveKey: '6'
+						  },()=>{
+							  this.tableRowClick(record);
+						  })
+					  }}
+				  >
+					  转交业务
+				  </Button>
               </div>
             );
           },
@@ -479,8 +493,8 @@ const IntentionCustomer = Form.create()(React.createClass({
 			onChange: (selectedRowKeys, selectedRows) => {
 				this.setState({
 					modalVisible:false,
-					selectedRows: selectedRows.slice(-1),
-					selectedRowKeys: selectedRowKeys.slice(-1)
+					selectedRows: selectedRows,
+					selectedRowKeys: selectedRowKeys
 				});
 			},
 			onSelect: (recordt, selected, selectedRows) => {
@@ -618,20 +632,6 @@ const IntentionCustomer = Form.create()(React.createClass({
 					>
 						转交客户
 					</Button>
-					<Button
-						disabled={this.state.selectedRows.length === 0}
-						type="primary"
-						onClick={()=>{
-							this.setState({
-								defaultActiveKey: '5'
-							},()=>{
-								this.tableRowClick(this.state.selectedRows[0]);
-							})
-						}}
-						style={{float: 'right' }}
-					>
-						转交业务
-					</Button>
 				</div>
 			</TabPane>
 		  <TabPane tab="更改表格显示数据" key="3">

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "afanti",
-  "version": "1.1.57",
+  "version": "1.1.58",
   "description": "",
   "main": "index.js",
   "scripts": {