|
@@ -72,27 +72,29 @@ const PersonalReport = React.createClass({
|
|
|
if(!data.data.length){
|
|
|
this.state.pagination.total=0;
|
|
|
};
|
|
|
- theArr.push(
|
|
|
- {
|
|
|
- key:9999999,
|
|
|
- theNumber:true,
|
|
|
- nub:data.data.length+1,
|
|
|
- name:'',
|
|
|
- position:'', //职务
|
|
|
- enrollTime:'',// 入职时间
|
|
|
- departmentName:'合计',
|
|
|
- dailyOrderCount:total.dailyTotalCount,//日签单业绩
|
|
|
- dailyOrderAmount:total.dailyTotalAmount,//日签单业绩
|
|
|
- weeklyOrderCount:total.weeklyTotalCount,//周签单业绩
|
|
|
- weeklyOrderAmount:total.weeklyTotalAmount,//周签单业绩
|
|
|
- monthlyOrderCount:total.monthlyTotalCount,//月签单业绩
|
|
|
- monthlyOrderAmount:total.monthlyTotalAmount,//月签单业绩
|
|
|
- quarterlyOrderCount:total.quarterlyTotalCount,//季签单业绩
|
|
|
- quarterlyOrderAmount:total.quarterlyTotalAmount,//季签单业绩
|
|
|
- annuallyOrderCount:total.annuallyTotalCount,//年签单业绩
|
|
|
- annuallyOrderAmount:total.annuallyTotalAmount,//年签单业绩
|
|
|
- }
|
|
|
- )
|
|
|
+ if(theArr.length){
|
|
|
+ theArr.push(
|
|
|
+ {
|
|
|
+ key:9999999,
|
|
|
+ theNumber:true,
|
|
|
+ nub:data.data.length+1,
|
|
|
+ name:'',
|
|
|
+ position:'', //职务
|
|
|
+ enrollTime:'',// 入职时间
|
|
|
+ departmentName:'合计',
|
|
|
+ dailyOrderCount:total.dailyTotalCount,//日签单业绩
|
|
|
+ dailyOrderAmount:total.dailyTotalAmount,//日签单业绩
|
|
|
+ weeklyOrderCount:total.weeklyTotalCount,//周签单业绩
|
|
|
+ weeklyOrderAmount:total.weeklyTotalAmount,//周签单业绩
|
|
|
+ monthlyOrderCount:total.monthlyTotalCount,//月签单业绩
|
|
|
+ monthlyOrderAmount:total.monthlyTotalAmount,//月签单业绩
|
|
|
+ quarterlyOrderCount:total.quarterlyTotalCount,//季签单业绩
|
|
|
+ quarterlyOrderAmount:total.quarterlyTotalAmount,//季签单业绩
|
|
|
+ annuallyOrderCount:total.annuallyTotalCount,//年签单业绩
|
|
|
+ annuallyOrderAmount:total.annuallyTotalAmount,//年签单业绩
|
|
|
+ }
|
|
|
+ )
|
|
|
+ }
|
|
|
this.setState({
|
|
|
dataSource: theArr,
|
|
|
pagination: this.state.pagination,
|
|
@@ -243,7 +245,7 @@ const PersonalReport = React.createClass({
|
|
|
key: 'departmentName',
|
|
|
render:(text,record)=>{
|
|
|
if(!record.theNumber){
|
|
|
- return text
|
|
|
+ return text&&text.length>6?<span title={text}>{text.substr(0,6)+'…'}</span>:text
|
|
|
}else{
|
|
|
return {
|
|
|
children: text,
|