|
@@ -235,7 +235,7 @@ const AdminCustomerStatistics = Form.create()(React.createClass({
|
|
|
showQuickJumper: true,
|
|
|
pageSize: 10,
|
|
|
onChange: function(page) {
|
|
|
- this.xiangmu(page,this.state.dataSource[this.state.rowKey-1].aid);
|
|
|
+ this.xiangmu(page,this.state.dataSource[this.state.rowKey-1]);
|
|
|
}.bind(this),
|
|
|
showTotal: function(total) {
|
|
|
return '共' + total + '条数据';
|
|
@@ -294,17 +294,20 @@ const AdminCustomerStatistics = Form.create()(React.createClass({
|
|
|
},
|
|
|
|
|
|
tableRowClick(record, index) {
|
|
|
- this.xiangmu(1,record.aid);
|
|
|
+
|
|
|
+ this.xiangmu(1,record);
|
|
|
this.setState({
|
|
|
visible: true,
|
|
|
rowKey: record.key
|
|
|
});
|
|
|
},
|
|
|
- xiangmu(pageNo,aids) {
|
|
|
+ xiangmu(pageNo,record) {
|
|
|
this.state.data = [];
|
|
|
this.setState({
|
|
|
loading:true
|
|
|
})
|
|
|
+ console.log(typeof record.timeCount);
|
|
|
+ console.log(typeof parseInt(record.timeCount));
|
|
|
$.ajax({
|
|
|
method: "get",
|
|
|
dataType: "json",
|
|
@@ -313,7 +316,9 @@ const AdminCustomerStatistics = Form.create()(React.createClass({
|
|
|
data: {
|
|
|
pageNo:pageNo || 1,
|
|
|
pageSize:this.state.pagination.pageSizeX,
|
|
|
- aid:aids,
|
|
|
+ startTime: this.state.releaseDate[0],
|
|
|
+ endTime: this.state.releaseDate[1],
|
|
|
+ aid:record.aid,
|
|
|
},
|
|
|
success: function(data) {
|
|
|
let theArr = [];
|
|
@@ -322,6 +327,7 @@ const AdminCustomerStatistics = Form.create()(React.createClass({
|
|
|
message.warning(data.error[0].message);
|
|
|
};
|
|
|
} else {
|
|
|
+ console.log(data.data.list.length);
|
|
|
for (let i = 0; i < data.data.list.length; i++) {
|
|
|
let thisdata = data.data.list[i];
|
|
|
theArr.push({
|