|
@@ -2,8 +2,8 @@ import React from 'react';
|
|
|
import { Button,Cascader,Input, Select, Spin, Table, message, Form } from 'antd';
|
|
|
import ajax from 'jquery/src/ajax/xhr.js';
|
|
|
import $ from 'jquery/src/ajax';
|
|
|
-import './myClient.less';
|
|
|
import { citySelect, provinceList } from '@/NewDicProvinceList';
|
|
|
+import './publicCustomer.less';
|
|
|
|
|
|
const QueryCustomer = React.createClass({
|
|
|
loadData(pageNo, apiUrl) {
|
|
@@ -36,15 +36,16 @@ const QueryCustomer = React.createClass({
|
|
|
theArr.push({
|
|
|
key: i,
|
|
|
id: thisdata.uid,
|
|
|
- type: thisdata.type,
|
|
|
name: thisdata.name,
|
|
|
- status: thisdata.status,
|
|
|
contacts: thisdata.contacts,
|
|
|
contactMobile: thisdata.contactMobile,
|
|
|
industry: thisdata.industry,
|
|
|
- createTime: thisdata.createTime,
|
|
|
- businessAudit: thisdata.businessAudit,
|
|
|
- auditStatus: thisdata.auditStatus,
|
|
|
+ societyTag: thisdata.societyTag,
|
|
|
+ lastFollowTime:thisdata.lastFollowTime&&thisdata.lastFollowTime.split(' ')[0],
|
|
|
+ transferTime:thisdata.transferTime&&thisdata.transferTime.split(' ')[0],
|
|
|
+ surplusFollowTime:thisdata.surplusFollowTime&&thisdata.surplusFollowTime.split(' ')[0],
|
|
|
+ surplusSignTime:thisdata.surplusSignTime&&thisdata.surplusSignTime.split(' ')[0],
|
|
|
+ locationProvince: thisdata.province ? thisdata.province + '-' + thisdata.city + '-' + thisdata.area : '--'
|
|
|
});
|
|
|
};
|
|
|
this.state.pagination.current = data.data.pageNo;
|
|
@@ -72,8 +73,7 @@ const QueryCustomer = React.createClass({
|
|
|
dataSource:[],
|
|
|
loading:false,
|
|
|
selectedRowKeys: [],
|
|
|
- selectedRowKey: [],
|
|
|
- selectedRows: [],
|
|
|
+ selectedRows:[],
|
|
|
selectedData:[],
|
|
|
pagination: {
|
|
|
defaultCurrent: 1,
|
|
@@ -101,7 +101,7 @@ const QueryCustomer = React.createClass({
|
|
|
key: 'contacts',
|
|
|
},{
|
|
|
title: '联系电话',
|
|
|
- dataIndex: 'contactss',
|
|
|
+ dataIndex: 'contactMobile',
|
|
|
key: 'contactss',
|
|
|
},
|
|
|
{
|
|
@@ -111,15 +111,10 @@ const QueryCustomer = React.createClass({
|
|
|
},
|
|
|
{
|
|
|
title: '转换时间',
|
|
|
- dataIndex: 'createTimes',
|
|
|
- key: 'createTimes',
|
|
|
+ dataIndex: 'transferTime',
|
|
|
+ key: 'transferTime',
|
|
|
},
|
|
|
{
|
|
|
- title: '客户状态',
|
|
|
- dataIndex: 'contactst',
|
|
|
- key: 'contactst',
|
|
|
- },
|
|
|
- {
|
|
|
title: '操作',
|
|
|
dataIndex: 'abc',
|
|
|
key: 'abc',
|
|
@@ -138,7 +133,7 @@ const QueryCustomer = React.createClass({
|
|
|
laodingt:true
|
|
|
});
|
|
|
let selectIds=[];
|
|
|
- this.state.selectedData.map((item)=>{
|
|
|
+ this.state.selectedRows.map((item)=>{
|
|
|
selectIds.push(`${item.id}`)
|
|
|
});
|
|
|
$.ajax({
|
|
@@ -224,7 +219,7 @@ const QueryCustomer = React.createClass({
|
|
|
selectedRowKeys: this.state.selectedRowKeys,
|
|
|
onChange: (selectedRowKeys, selectedRows) => {
|
|
|
this.setState({
|
|
|
- selectedRows: selectedRows,
|
|
|
+ selectedRows:selectedRows,
|
|
|
selectedRowKeys: selectedRowKeys
|
|
|
});
|
|
|
},
|
|
@@ -234,6 +229,7 @@ const QueryCustomer = React.createClass({
|
|
|
recordt: recordt.id
|
|
|
})
|
|
|
},
|
|
|
+
|
|
|
};
|
|
|
const hasSelected = this.state.selectedRowKeys.length > 0;
|
|
|
return(
|