|
@@ -57,10 +57,11 @@ const AdminCustomerStatistics = Form.create()(React.createClass({
|
|
|
let thisdata = data.data.list[i];
|
|
|
theArr.push({
|
|
|
key: pageNo?(i+1+(pageNo-1)*10):i+1,
|
|
|
- aid:thisdata.aid,
|
|
|
- aName:thisdata.aName,
|
|
|
+ aid:thisdata.aid,
|
|
|
+ aName:thisdata.aName,
|
|
|
depName:thisdata.depName,
|
|
|
userCount:thisdata.userCount,
|
|
|
+ signCount:thisdata.signCount,
|
|
|
inputCount:thisdata.inputCount,
|
|
|
receiveCount:thisdata.receiveCount,
|
|
|
});
|
|
@@ -126,7 +127,7 @@ const AdminCustomerStatistics = Form.create()(React.createClass({
|
|
|
});
|
|
|
}.bind(this));
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
//操作分配
|
|
|
confirmDelet(index) {
|
|
|
this.setState({
|
|
@@ -222,7 +223,7 @@ const AdminCustomerStatistics = Form.create()(React.createClass({
|
|
|
this.departmentList();
|
|
|
this.loadData();
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
getInitialState() {
|
|
|
return {
|
|
|
rowKey : 0,
|
|
@@ -276,7 +277,7 @@ const AdminCustomerStatistics = Form.create()(React.createClass({
|
|
|
key: 'depName',
|
|
|
align:'center',
|
|
|
}, {
|
|
|
- title: '客户数',
|
|
|
+ title: '私有客户数',
|
|
|
dataIndex: 'userCount',
|
|
|
key: 'userCount',
|
|
|
align:'center',
|
|
@@ -285,7 +286,16 @@ const AdminCustomerStatistics = Form.create()(React.createClass({
|
|
|
this.userCount(record,index)
|
|
|
}} className="single">{text}</span>
|
|
|
}
|
|
|
- }, {
|
|
|
+ },{
|
|
|
+ title: '签单客户数量',
|
|
|
+ dataIndex: 'signCount',
|
|
|
+ key: 'signCount',
|
|
|
+ render:(text,record,index)=>{
|
|
|
+ return <span onClick={()=>{
|
|
|
+ this.signedQuantity(record,index)
|
|
|
+ }} className="single">{text}</span>
|
|
|
+ }
|
|
|
+ },{
|
|
|
title: '时间内新增客户数',
|
|
|
dataIndex: 'inputCount',
|
|
|
key: 'inputCount',
|
|
@@ -331,24 +341,28 @@ const AdminCustomerStatistics = Form.create()(React.createClass({
|
|
|
dataIndex: 'followTime',
|
|
|
key: 'followTime',
|
|
|
}]
|
|
|
-
|
|
|
+
|
|
|
};
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
userCount(record,index){
|
|
|
this.tableRowClick(record,index,0)
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
+ signedQuantity(record,index){
|
|
|
+ this.tableRowClick(record,index,5)
|
|
|
+ },
|
|
|
+
|
|
|
inputCount(record,index){
|
|
|
this.tableRowClick(record,index,1)
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
receiveCount(record,index){
|
|
|
this.tableRowClick(record,index,2)
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
tableRowClick(record, index ,type) {
|
|
|
-
|
|
|
+
|
|
|
this.xiangmu(1,record,type);
|
|
|
this.setState({
|
|
|
visible: true,
|
|
@@ -558,7 +572,7 @@ const AdminCustomerStatistics = Form.create()(React.createClass({
|
|
|
<div className="patent-table">
|
|
|
<Spin spinning={this.state.loading}>
|
|
|
<Table columns={this.state.columnsX}
|
|
|
- dataSource={this.state.dataSourceX}
|
|
|
+ dataSource={this.state.dataSourceX}
|
|
|
pagination={this.state.paginationX}
|
|
|
/>
|
|
|
</Spin>
|