|
|
@ -2,7 +2,7 @@ import { loadAMap } from "@screen/pages/Home/components/AMapContainer/loadAMap.j |
|
|
|
// import { Message } from "element-ui";
|
|
|
|
import Vue from "vue"; |
|
|
|
import { lngLatMap } from "./buttonEvent"; |
|
|
|
import { upperFirst } from "lodash"; |
|
|
|
import { upperFirst, filter } from "lodash"; |
|
|
|
/** |
|
|
|
* @typedef {Object} Point |
|
|
|
* @property {number} weight - The weight of the item. |
|
|
@ -27,6 +27,7 @@ const normalBg = require(`@screen/images/mapBg/active.svg`); |
|
|
|
const faultTitleBg = require(`@screen/images/mapBg/fault_title.svg`); |
|
|
|
const normalTitleBg = require(`@screen/images/mapBg/active_title.svg`); |
|
|
|
|
|
|
|
const eventRegex = "./事件专题"; |
|
|
|
/** |
|
|
|
* 聚合点 |
|
|
|
*/ |
|
|
@ -483,9 +484,9 @@ export function marksAddInGraph(data) { |
|
|
|
export function addInGraphHandle(data) { |
|
|
|
const graphInstance = window.graphInstance; |
|
|
|
const extData = data[0].extData; |
|
|
|
console.log(extData, "extData"); |
|
|
|
// console.log(extData, "extData11111");
|
|
|
|
const { item: eventItem } = data[0].config; |
|
|
|
if (eventItem.id.match("./事件专题")) { |
|
|
|
if (eventItem.id.match(eventRegex)) { |
|
|
|
let { stakeMark, lang, direction } = extData; |
|
|
|
stakeMark = upperFirst(stakeMark); //统一格式 大写K
|
|
|
|
const distance = |
|
|
@ -515,11 +516,12 @@ export function addInGraphHandle(data) { |
|
|
|
}); |
|
|
|
// }, 0);
|
|
|
|
} |
|
|
|
console.log(lang, "lang"); |
|
|
|
// console.log(lang, "lang");
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
function getDataConf(data, extData) { |
|
|
|
data = data.filter((item) => item.config.item.id.match(eventRegex)); |
|
|
|
let dataConf; |
|
|
|
const nowBg = getState(data) ? normalBg : faultBg; |
|
|
|
if (data.length === 1) { |
|
|
|