| | |
| | | * @memberof QueryComponent |
| | | */ |
| | | public timeUnitOptions = [ |
| | | {label: '某年', value: TimeUnits.MONTH}, |
| | | {label: '某月', value: TimeUnits.DAY}, |
| | | {label: '某日', value: TimeUnits.HOUR}, |
| | | {label: '某时', value: TimeUnits.MINUTE}, |
| | | {label: '年', value: TimeUnits.MONTH}, |
| | | {label: '月', value: TimeUnits.DAY}, |
| | | {label: '日', value: TimeUnits.HOUR}, |
| | | {label: '时', value: TimeUnits.MINUTE}, |
| | | ]; |
| | | public timeUnit: {label: string, value: TimeUnits} = this.timeUnitOptions[2]; |
| | | // 默认时间为昨天,今天无数据 |
| | |
| | | return sensor.name; |
| | | } |
| | | ); |
| | | this._sensorNames = sensorNameList.join(','); |
| | | this._sensorNames = sensorNameList.join(', '); |
| | | }, 1); |
| | | } |
| | | public setTimeUnit(val: {label: string, value: TimeUnits} ) { |