From 771e0da9c6082c78a28f5286f89f4f36b05689d3 Mon Sep 17 00:00:00 2001 From: 马宇豪 <978517621@qq.com> Date: 星期二, 27 十二月 2022 14:31:45 +0800 Subject: [PATCH] 默认更改列表 --- src/views/doublePreventAction/riskLevelManage/fourColorMap/sixty/index.vue | 17 +++++++++++++++-- 1 files changed, 15 insertions(+), 2 deletions(-) diff --git a/src/views/doublePreventAction/riskLevelManage/fourColorMap/sixty/index.vue b/src/views/doublePreventAction/riskLevelManage/fourColorMap/sixty/index.vue index a7c583d..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> @@ -75,6 +75,7 @@ map.addModel({ link: 'http://222.92.213.22:8006/b3dm60/tileset.json', name: '60万吨模型图', + modifyZ: -1340, callback: tileset => { var boundingSphere = tileset.boundingSphere; var cartographic = Cesium.Cartographic.fromCartesian( @@ -172,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; @@ -196,7 +209,7 @@ html: "<div class='popup-wrapper'>" + attr.name + - '<br/><br/>XXXXXXXX</div>', + '</div>', position: cartesian3, anchor: [-170, -80], }); -- Gitblit v1.9.2