| | |
| | | mode: 'month' |
| | | }; |
| | | |
| | | private sensorOptions = []; |
| | | private monitorPointOptions = []; |
| | | private deviceOptions = []; |
| | | public sensorOptions = []; |
| | | public monitorPointOptions = []; |
| | | public deviceOptions = []; |
| | | |
| | | constructor( |
| | | public http: HttpClient, |
| | |
| | | } |
| | | |
| | | |
| | | private typeOptions = [ |
| | | public typeOptions = [ |
| | | {value: 'year', label: '年', mode: 'month', xAxisName: '月', format: 'yyyy', typeFormat: '%Y-%m'}, |
| | | {value: 'month', label: '月', mode: 'month', xAxisName: '日', format: 'yyyy-MM', typeFormat: '%Y-%m-%d'}, |
| | | {value: 'day', label: '日', mode: 'day', xAxisName: '时', format: 'yyyy-MM-dd', typeFormat: '%Y-%m-%d %H'}, |
| | |
| | | |
| | | reportQuery() { |
| | | const query = this.query; |
| | | if (query.type && query.monitorPoint && query.time) { |
| | | if (query.type && query.monitorPointId && query.time) { |
| | | if (query.time) { |
| | | query.time = this.dateSrv.date_format(query.time, this.time.format); |
| | | } |
| | |
| | | url += encodeURI(a) + '=' + encodeURI(query[a]) + '&'; |
| | | } |
| | | } |
| | | |
| | | |
| | | window.location.href = url + '_token=' + this.tokenService.get().token; |
| | | } else { |
| | | this.msgSrv.error('请完善搜索项'); |