| | |
| | | const progress = i / (this._xAxis.length - this._size + 1); |
| | | |
| | | for (const iterator of this._series) { |
| | | if (iterator.name == factorName || (iterator.name == 'TVOC' || factorName == 'VOC')) { |
| | | // if (iterator.name == factorName || (iterator.name == 'TVOC' || factorName == 'VOC')) { |
| | | iterator.markLine = { |
| | | symbol: 'none', |
| | | data: [ |
| | |
| | | }, |
| | | ], |
| | | }; |
| | | } else { |
| | | iterator.markLine = undefined; |
| | | } |
| | | // } else { |
| | | // iterator.markLine = undefined; |
| | | // } |
| | | } |
| | | this.lineChartOnPage2({ |
| | | chart, |
| | |
| | | label.css('margin-left', '4px') |
| | | // label.css('background-color', 'black') |
| | | // checkbox.css('background-color', 'white') |
| | | checkbox.attr('checked', checked) |
| | | checkbox.prop('checked', checked) |
| | | checkbox.on('click', onclickListener) |
| | | |
| | | var item = $('<div></div>') |
| | |
| | | item.append(label) |
| | | |
| | | check.append(item) |
| | | } |
| | | }, |
| | | |
| | | /** |
| | | * 刷新复选框组的选择状态 |
| | | * @param {*} elementId |
| | | * @param {*} checkedList |
| | | */ |
| | | refreshCheckBox(elementId, checkedList){ |
| | | var checkboxList = $(`#${elementId}`).find('input') |
| | | for (let i = 0; i < checkboxList.length; i++) { |
| | | const box = checkboxList[i]; |
| | | $(box).prop('checked', checkedList.indexOf(i) != -1) |
| | | } |
| | | }, |
| | | |
| | |
| | | label.css('margin-left', '4px') |
| | | // label.css('background-color', 'black') |
| | | // radiobox.css('background-color', 'white') |
| | | radiobox.attr('checked', checked) |
| | | radiobox.prop('checked', checked) |
| | | radiobox.on('click', onclickListener) |
| | | radioboxlist.push(radiobox) |
| | | |
| | |
| | | var range = _range == undefined ? DataUtil._hMap.get(type) : _range |
| | | var min = range[0] |
| | | var max = range[1] |
| | | var scale = (DataUtil._hRange[1] - DataUtil._hRange[0]) / (max - min) |
| | | var scale = (max - min == 0) ? 0 : (DataUtil._hRange[1] - DataUtil._hRange[0]) / (max - min) |
| | | var offset = min |
| | | // console.log("height:" + (data - offset) * scale * 10); |
| | | if (data < range[0]) { |
| | |
| | | this.drawMesh(false, this, this.factorDatas); |
| | | } |
| | | // 折线图选中对应因子 |
| | | this.choseOneFactorLineChart(factorType) |
| | | this.choseOneFactorLineChart(factorType); |
| | | // 表格选中对应因子 |
| | | }, |
| | | setFactorMode: function (factorMode) { |
| | |
| | | this.historyDatas.datas[index].show = true; |
| | | this.historyDatas.physicalQuantity[index].show = true; |
| | | this.lineChartFactorType = [index]; |
| | | CheckBox.refreshCheckBox( |
| | | 'history_chart_factorbox', |
| | | this.lineChartFactorType |
| | | ); |
| | | this.refreshLineChartData(); |
| | | }, |
| | | // 创建初始折线图 |
| | |
| | | var appConfig = { |
| | | baseUrl: "http://114.215.109.124:8805/", |
| | | // baseUrl: "http://114.215.109.124:8805/", |
| | | // baseUrl: "http://47.100.191.150:9029/", |
| | | // baseUrl: "http://localhost:8080/", |
| | | // baseUrl: 'http://192.168.0.138:8084/', |
| | | baseUrl: 'http://192.168.0.138:8084/', |
| | | }; |
| | | |
| | | var service = { |
| | |
| | | |
| | | function onCheckMap(obj) { |
| | | var o = obj.value.split(','); |
| | | var factorType = parseInt(o[0]) - 1; |
| | | var factorType = parseInt(o[0]); |
| | | mapController.setFactorType(factorType, this.factorMode, o[1]); |
| | | } |
| | | |