| | |
| | | import { factorName } from '../../constant/factor-name'; |
| | | import { factorUnit } from '../../constant/factor-unit'; |
| | | import { windDir } from '../../constant/wind-dir'; |
| | | import $ from 'jquery'; |
| | | import { factorName } from '@/constant/factor-name'; |
| | | import { factorUnit } from '@/constant/factor-unit'; |
| | | import { windDir } from '@/constant/wind-dir'; |
| | | import { map } from './index_old'; |
| | | |
| | | export const DialogUtil = { |
| | | show: true, |
| | |
| | | // 定义顶部标题 |
| | | var top = document.createElement('div'); |
| | | // top.className = "info-top"; |
| | | top.className = 'ff-content ff-content-top-left ff-content-small-borderless-t info-top'; |
| | | top.className = |
| | | 'ff-content ff-content-top-left ff-content-small-borderless-t info-top'; |
| | | var top_b = document.createElement('div'); |
| | | top_b.className = 'ff-border-bottom'; |
| | | var top_t = document.createElement('div'); |
| | |
| | | var closeX = document.createElement('i'); |
| | | titleD.innerHTML = title; |
| | | closeX.className = 'fa fa-times'; |
| | | // eslint-disable-next-line no-undef |
| | | $(closeX).attr('aria-hidden', 'true'); |
| | | closeX.onclick = function () { |
| | | marker.close(); |
| | |
| | | refreshV.className = 'refresh-btn'; |
| | | var refresh = document.createElement('i'); |
| | | refresh.className = 'fa fa-refresh'; |
| | | // eslint-disable-next-line no-undef |
| | | $(refresh).attr('aria-hidden', 'true'); |
| | | // eslint-disable-next-line no-undef |
| | | $(refresh).css('color', '#ffffffc0'); |
| | | // eslint-disable-next-line no-undef |
| | | $(refresh).css('cursor', 'pointer'); |
| | | refresh.onclick = function () { |
| | | // $(this).addClass('fa-spin') |
| | |
| | | return info; |
| | | }, |
| | | |
| | | openNewWindow(factorDatas, i, map, position, onClose) { |
| | | openNewWindow(factorDatas, i, onClose) { |
| | | if (!this.show) return; |
| | | const window = this.createInfoWindow(factorDatas, i, onClose); |
| | | window.open(map, position); |
| | | window.open(map, factorDatas.lnglats_GD[i]); |
| | | }, |
| | | |
| | | openNewWindow2(factorData, map, position, onClose) { |
| | | openNewWindow2(factorData, position, onClose) { |
| | | if (!this.show) return; |
| | | const window = this.createInfoWindow2(factorData, onClose); |
| | | window.open(map, position); |