dengzhiguo 6 years ago
parent
commit
2f1c561840

+ 1 - 2
js/component/manageCenter/customer/customerMarketing/diurnalStatistics.jsx

@@ -32,7 +32,6 @@ const DiurnalStatistics = React.createClass({
 					thedata = {};
 				} else {
 					thedata.map(function(item, index) {
-						console.log(item);
 						let nub=index+1;
 						theArr.push({
 							key: index,
@@ -71,7 +70,7 @@ const DiurnalStatistics = React.createClass({
 							dailyTelNo:total.dayTelNo,//日电话量
 							dailyVisitNo:total.dayVisitNo,//日外拜量
 							dailyFollowNo:total.dayFollowNo,//日营销总量
-							dailyAVG:parseFloat(total.dailyAVG).toFixed(2),//日人均营销量
+							dailyAVG:parseFloat(total.dayAVG).toFixed(2),//日人均营销量
 							weekTelNo:total.weeklyTelNo,//周电话量
 							weekFollowNo:total.weeklyFollowNo,//周总量
 							weekVisitNo:total.weeklyVisitNo,//周外拜量

+ 2 - 5
js/component/manageCenter/customer/customerMarketing/timeStatistics.jsx

@@ -36,7 +36,6 @@ const DiurnalStatistics = React.createClass({
 					thedata = {};
 				} else {
 					thedata.map(function(item, index) {
-						console.log(item);
 						let nub=index+1;
 						theArr.push({
 							key: index,
@@ -228,7 +227,7 @@ const DiurnalStatistics = React.createClass({
 				idTmr = window.setInterval("Cleanup();", 1);
 			}
 		} else {
-			console.log(table);
+			
 			this.tableToExcel(table,this.getExplorer());
 		}
 		function Cleanup() {
@@ -248,9 +247,7 @@ const DiurnalStatistics = React.createClass({
 						return c[p];
 					})
 			}
-			console.log(table.nodeType);
 			if(!table.nodeType) table = document.getElementById(table);
-			console.log(table);
 			var ctx = {
 				worksheet: name || 'Worksheet',
 				table: table.innerHTML
@@ -418,7 +415,7 @@ const DiurnalStatistics = React.createClass({
 		};
 	},
 	search() {
-		this.totalData()
+		this.totalData(0)
 	},
 	reset() {
 		this.state.superId = undefined;//部门机构清零

+ 2 - 5
js/component/manageCenter/customer/customerMarketing/timeStatisticsOne.jsx

@@ -4,6 +4,7 @@ import ajax from 'jquery/src/ajax/xhr.js';
 import $ from 'jquery/src/ajax';
 import './report.less';
 import { post } from '../../../dataDic.js';
+import moment from 'moment';
 
 const DiurnalStatisticsOne = React.createClass({
 	loadData(timeTypes,totalArr) {
@@ -225,7 +226,6 @@ const DiurnalStatisticsOne = React.createClass({
 				idTmr = window.setInterval("Cleanup();", 1);
 			}
 		} else {
-			console.log(table);
 			this.tableToExcel(table,this.getExplorer());
 		}
 		function Cleanup() {
@@ -245,9 +245,7 @@ const DiurnalStatisticsOne = React.createClass({
 						return c[p];
 					})
 			}
-			console.log(table.nodeType);
 			if(!table.nodeType) table = document.getElementById(table);
-			console.log(table);
 			var ctx = {
 				worksheet: name || 'Worksheet',
 				table: table.innerHTML
@@ -434,7 +432,7 @@ const DiurnalStatisticsOne = React.createClass({
 		};
 	},
 	search() {
-		this.totalData()
+		this.totalData(0)
 	},
 	reset() {
 		this.state.superId = undefined;//部门机构清零
@@ -492,7 +490,6 @@ const DiurnalStatisticsOne = React.createClass({
                             value={[this.state.releaseDate[0] ? moment(this.state.releaseDate[0]) : null,
                             this.state.releaseDate[1] ? moment(this.state.releaseDate[1]) : null]}
                             onChange={(data, dataString) => { this.setState({ releaseDate: dataString }); }} />
-                  	
                   	<Button type="primary" onClick={this.search} style={{marginLeft:'10px',marginRight:'10px'}}>搜索</Button>
 	                <Button onClick={this.reset}>重置</Button>
 				</div>