From 17bc12d7414dedab9d8eb60794603e61e8cce01e Mon Sep 17 00:00:00 2001
From: Admin <978517621@qq.com>
Date: Tue, 25 Oct 2022 17:20:35 +0800
Subject: [PATCH] '更新'
---
src/views/doublePreventAction/riskLevelManage/fourColorMap/sixty/index.vue | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
diff --git a/src/views/doublePreventAction/riskLevelManage/fourColorMap/sixty/index.vue b/src/views/doublePreventAction/riskLevelManage/fourColorMap/sixty/index.vue
index c0e4e5e..7f2ad45 100644
--- a/src/views/doublePreventAction/riskLevelManage/fourColorMap/sixty/index.vue
+++ b/src/views/doublePreventAction/riskLevelManage/fourColorMap/sixty/index.vue
@@ -2,7 +2,7 @@
<div class="map-layout">
<Map @init="init" :option="option" v-if="option" />
- <Tab v-if="loaded" :type='type' :colorMapList='colorMapList'/>
+ <Tab v-if="loaded" :type='type' :colorMapList='colorMapList' @getList="testLoaded"/>
</div>
@@ -173,6 +173,18 @@
// });
})
},
+ testLoaded() {
+ const map = global.map;
+ if (!map) return;
+ let params = {}
+ params['eType'] = 2
+ getMap(params).then(res => {
+ this.colorMapList = JSON.parse(JSON.stringify(res.data.result))
+ })
+ // $.get('./public/data/plots_namisuo.geojson', res => {
+ // map.loadGeoJSON(res);
+ // });
+ },
initEvent(map) {
let popup = null;
const _this = this;
--
Gitblit v1.9.2