| | |
| | | let validate = true; |
| | | const queryItems = []; |
| | | for (let i = 0; i < this.items.length; i++) { |
| | | let areaName = ''; |
| | | let item = this.items[i]; |
| | | let queryItem: any = {}; |
| | | const areaName = ''; |
| | | const item = this.items[i]; |
| | | const queryItem: any = {}; |
| | | if ((!!item.time) && (item.monitorPointOptions.length > 0)) { |
| | | for (var key in item) { |
| | | for (const key in item) { |
| | | if (item[key]) { |
| | | queryItem[key] = item[key]; |
| | | } |
| | |
| | | if (validate && this.timeType && query.reportType) { |
| | | if (this._sensors) { |
| | | const sensors = []; |
| | | for (var key in this._sensors) { |
| | | for (const key in this._sensors) { |
| | | sensors.push(this._sensors[key]); |
| | | } |
| | | if (sensors.length > 0) { |
| | |
| | | } |
| | | query.items = JSON.stringify(queryItems); |
| | | query.type = this.timeType.value; |
| | | sessionStorage.setItem("queryParams", JSON.stringify(query)); |
| | | sessionStorage.setItem('queryParams', JSON.stringify(query)); |
| | | } else { |
| | | this.msgSrv.error('请完善搜索项或删除查询条目'); |
| | | return false; |