|
@@ -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>
|