|
@@ -27,7 +27,7 @@ const PersonalReport = React.createClass({
|
|
|
url: globalConfig.context + "/api/admin/report/sales/personal",
|
|
|
data: {
|
|
|
pNo: pageNo || 1,
|
|
|
- pSize: 9,
|
|
|
+ pSize: 10,
|
|
|
date:this.state.selTime?(this.state.selTime+' '+'00:00:00'):'',
|
|
|
depName:this.state.departmentSearch,
|
|
|
name:this.state.uesrNameSearch,
|
|
@@ -39,8 +39,6 @@ const PersonalReport = React.createClass({
|
|
|
if(data.error && data.error.length) {
|
|
|
message.warning(data.error[0].message);
|
|
|
};
|
|
|
- this.state.pagination.current=0
|
|
|
- this.state.pagination.total=0
|
|
|
thedata = {};
|
|
|
} else {
|
|
|
thedata.map(function(item, index) {
|
|
@@ -68,7 +66,8 @@ const PersonalReport = React.createClass({
|
|
|
})
|
|
|
})
|
|
|
this.state.pagination.current =pageNo;
|
|
|
- this.state.pagination.total=30
|
|
|
+ this.state.pagination.total=total.totalRecordCount;
|
|
|
+
|
|
|
};
|
|
|
if(!data.data.length){
|
|
|
this.state.pagination.total=0;
|
|
@@ -184,9 +183,9 @@ const PersonalReport = React.createClass({
|
|
|
timeState:false,
|
|
|
pagination: {
|
|
|
defaultCurrent: 1,
|
|
|
- defaultPageSize: 10,
|
|
|
+ defaultPageSize: 11,
|
|
|
showQuickJumper: true,
|
|
|
- pageSize: 10,
|
|
|
+ pageSize: 11,
|
|
|
onChange: function (page) {
|
|
|
this.totalData(page);
|
|
|
}.bind(this),
|