|
@@ -263,6 +263,10 @@ const DiurnalStatistics = React.createClass({
|
|
|
visible: false,
|
|
|
showDesc: false,
|
|
|
timeState:false,
|
|
|
+ weekColor:true,
|
|
|
+ monthColor:false,
|
|
|
+ quarterColor:false,
|
|
|
+ yearColor:false,
|
|
|
Dtime:undefined,
|
|
|
selTime:'',
|
|
|
columns: [
|
|
@@ -428,21 +432,45 @@ const DiurnalStatistics = React.createClass({
|
|
|
this.state.releaseDate[0] = undefined;//开始时间清零
|
|
|
this.state.releaseDate[1] = undefined;//结束时间清零
|
|
|
this.totalData(0);
|
|
|
+ this.setState({
|
|
|
+ weekColor:true,
|
|
|
+ monthColor:false,
|
|
|
+ quarterColor:false,
|
|
|
+ yearColor:false
|
|
|
+ })
|
|
|
},
|
|
|
month(){
|
|
|
this.state.releaseDate[0] = undefined;//开始时间清零
|
|
|
this.state.releaseDate[1] = undefined;//结束时间清零
|
|
|
this.totalData(1);
|
|
|
+ this.setState({
|
|
|
+ weekColor:false,
|
|
|
+ monthColor:true,
|
|
|
+ quarterColor:false,
|
|
|
+ yearColor:false
|
|
|
+ })
|
|
|
},
|
|
|
quarter(){
|
|
|
this.state.releaseDate[0] = undefined;//开始时间清零
|
|
|
this.state.releaseDate[1] = undefined;//结束时间清零
|
|
|
this.totalData(2);
|
|
|
+ this.setState({
|
|
|
+ weekColor:false,
|
|
|
+ monthColor:false,
|
|
|
+ quarterColor:true,
|
|
|
+ yearColor:false
|
|
|
+ })
|
|
|
},
|
|
|
year(){
|
|
|
this.state.releaseDate[0] = undefined;//开始时间清零
|
|
|
this.state.releaseDate[1] = undefined;//结束时间清零
|
|
|
this.totalData(3);
|
|
|
+ this.setState({
|
|
|
+ weekColor:false,
|
|
|
+ monthColor:false,
|
|
|
+ quarterColor:false,
|
|
|
+ yearColor:true
|
|
|
+ })
|
|
|
},
|
|
|
//重构排序
|
|
|
tabChange(pagination,filter,sorter){
|
|
@@ -473,10 +501,10 @@ const DiurnalStatistics = React.createClass({
|
|
|
onChange={(e) => { this.setState({ superId: e }) }} notFoundContent="未获取到上级组织列表">
|
|
|
{this.state.contactsOption}
|
|
|
</Select>
|
|
|
- <Button onClick={this.week} style={{marginRight:'5px'}}>本周</Button>
|
|
|
- <Button onClick={this.month} style={{marginRight:'5px'}}>本月</Button>
|
|
|
- <Button onClick={this.quarter} style={{marginRight:'5px'}}>本季</Button>
|
|
|
- <Button onClick={this.year} style={{marginRight:'5px'}}>本年</Button>
|
|
|
+ <Button onClick={this.week} style={{marginRight:'5px'}} type={this.state.weekColor?"primary":''}>本周</Button>
|
|
|
+ <Button onClick={this.month} style={{marginRight:'5px'}} type={this.state.monthColor?"primary":''}>本月</Button>
|
|
|
+ <Button onClick={this.quarter} style={{marginRight:'5px'}} type={this.state.quarterColor?"primary":''}>本季</Button>
|
|
|
+ <Button onClick={this.year} style={{marginRight:'5px'}} type={this.state.yearColor?"primary":''}>本年</Button>
|
|
|
<span className="titleTime" style={{marginRight:'5px'}}>起止时间:</span>
|
|
|
<RangePicker
|
|
|
value={[this.state.releaseDate[0] ? moment(this.state.releaseDate[0]) : null,
|
|
@@ -487,8 +515,7 @@ const DiurnalStatistics = React.createClass({
|
|
|
</div>
|
|
|
<div id='daochu'>
|
|
|
<div className="surfaceTitle">
|
|
|
- <span className="nowtime">{this.state.timeState?this.state.txtTime:this.state.Nowtime}</span>
|
|
|
- <span>客户营销统计表(部门)</span>
|
|
|
+ <span>客户营销统计表(部门)</span>
|
|
|
</div>
|
|
|
<div className="patent-table" id='daochu'>
|
|
|
<div className="scroll">
|