| | |
| | | |
| | | 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]); |
| | | } |
| | | |
| | |
| | | $(blockList[i]).toggle('fast'); |
| | | }); |
| | | } |
| | | $('#btn_history_table').on('click', function () { |
| | | $('#history_table_summary_wrap').toggle('fast'); |
| | | }); |
| | | } |
| | | |
| | | function initSetRangeEvent() { |
| | |
| | | var v = |
| | | moment(d.startTime).format('YYYY-MM-DD HH:mm:ss') + |
| | | ';' + |
| | | moment(d.endTime).format('YYYY-MM-DD HH:mm:ss') + |
| | | ';' + |
| | | moment(d.endTime).format('YYYY-MM-DD HH:mm:ss') + |
| | | ';' + |
| | | d.deviceCode; |
| | | op.attr('value', v); |
| | | tS.append(op); |
| | |
| | | var times = tS.val().split(';'); |
| | | $('#starttime_text').text(times[0]); |
| | | $('#endtime_text').text(times[1]); |
| | | $('#select_device_code').val(times[2]) |
| | | $('#select_device_code').val(times[2]); |
| | | timePicker.setStartDate(times[0]); |
| | | timePicker.setEndDate(times[1]); |
| | | }); |
| | |
| | | MapController.prototype = { |
| | | init: function () { |
| | | this.hMode.init(); |
| | | // this.rMode.init(); |
| | | this.rMode.init(); |
| | | // this.gridMonitor.init(); |
| | | // this.companyLayer.init(); |
| | | // this.complaintLayer.init(); |
| | |
| | | b.toggleClass('btn-outline-info'); |
| | | $(b.children('span').get(0)).text(text); |
| | | }); |
| | | $('#btn_data_dialog').on('click', function () { |
| | | var text = DialogUtil.toggleDataDialog(); |
| | | var b = $(this); |
| | | b.toggleClass('btn-outline-secondary'); |
| | | b.toggleClass('btn-outline-info'); |
| | | $(b.children('span').get(0)).text(text); |
| | | }); |
| | | |
| | | /************************历史轨迹动画***********************************/ |
| | | $('#btn_stop').on('click', function () { |
| | |
| | | var times = $(this).val().split(';'); |
| | | $('#starttime_text').text(times[0]); |
| | | $('#endtime_text').text(times[1]); |
| | | $('#select_device_code').val(times[2]) |
| | | $('#select_device_code').val(times[2]); |
| | | timePicker.setStartDate(times[0]); |
| | | timePicker.setEndDate(times[1]); |
| | | }); |