From 58060e64e1fa9cf3ffcf5e29f09c4c2edf8f2126 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Thu, 21 Jul 2022 17:25:34 +0800
Subject: [PATCH] 数据显示更换
---
src/components/map/index.vue | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
diff --git a/src/components/map/index.vue b/src/components/map/index.vue
index 0498e75..394dff1 100644
--- a/src/components/map/index.vue
+++ b/src/components/map/index.vue
@@ -443,8 +443,6 @@
// })
// })
- that.$refs.leftNav.initialize()
-
// const key = 'e9533f5acb2ac470b07f406a4d24b4f0'
// const vec = global.DC.ImageryLayerFactory.createTdtImageryLayer({
// key
@@ -586,6 +584,8 @@
}
global.DC.ready(initViewer)
+
+ that.$refs.leftNav.initialize()
},
methods: {
changeWheel (val, type) {
@@ -852,10 +852,8 @@
var res = []
for (var i = 0; i < data.length; i++) {
var dataItem = data[i]
- // console.log('dataItem',dataItem) //第二个数据
var fromCoord = [115.8716, 28.7436]
var toCoord = chinaGeoCoordMap[dataItem[0].name]
- // console.log('toCoord',toCoord);//第一个地址
if (fromCoord && toCoord) {
res.push([
{
@@ -922,7 +920,6 @@
// color: '#f00'
color: function (params) {
// 圆环显示文字
- // console.log('redName',redName)
return '#ffa022'
},
@@ -943,7 +940,6 @@
extraCssText: 'z-index:100',
formatter: function (params, ticket, callback) {
// 根据业务自己拓展要显示的内容
- // console.log('params--2',params)
let res = ''
const name = params.data.dataItem[0].name
const price = params.data.dataItem[0].price
@@ -960,7 +956,6 @@
}
},
data: item[1].map(function (dataItem) {
- // console.log('dataItem',dataItem[0]);
return {
dataItem: dataItem,
name: dataItem[0].name,
--
Gitblit v1.9.3