src/app/routes/reports/demo/demo.component.ts
@@ -121,7 +121,8 @@ {value: 'hour', label: '时', mode: 'day', xAxisName: '分', format: 'yyyy-MM-dd HH', typeFormat: '%Y-%m-%d %H:%i', timeLength: 60} ]; timeType = this.typeOptions[0]; typeChange(searchText) { this.typeOptions.forEach(types => { if (types.value === searchText) { @@ -158,4 +159,7 @@ } _disabledDate(current: Date): boolean { return current && current.getTime() > Date.now() ; } }