From 8f6a9c6bc054708ecb73efc0d182d7b1e72284a9 Mon Sep 17 00:00:00 2001 From: zhouzy062 Date: Tue, 2 Apr 2024 13:17:24 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E5=BA=86=E9=A1=B9=E7=9B=AE=E5=A4=A7?= =?UTF-8?q?=E5=B1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sgzb-screen/config/index.js | 4 ++-- sgzb-screen/src/components/home/center3DMap.vue | 11 ++++------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/sgzb-screen/config/index.js b/sgzb-screen/config/index.js index f3ffcd75..99bc255b 100644 --- a/sgzb-screen/config/index.js +++ b/sgzb-screen/config/index.js @@ -20,8 +20,8 @@ module.exports = { cssSourceMap: true, proxyTable: { '/screen': { - target: 'http://112.29.103.165:21626',//重庆 - // target: 'http://10.40.92.74:8080', + // target: 'http://112.29.103.165:21626',//重庆 + target: 'http://10.40.92.74:8080', changeOrigin: true, // secure: true, //如果是https接口,需要配置这个参数 pathRewrite: { diff --git a/sgzb-screen/src/components/home/center3DMap.vue b/sgzb-screen/src/components/home/center3DMap.vue index 3aa23d24..ba4d3820 100644 --- a/sgzb-screen/src/components/home/center3DMap.vue +++ b/sgzb-screen/src/components/home/center3DMap.vue @@ -77,7 +77,6 @@ // this.setMapOption2() }, setMapOption(name) { - let valArr = [ ]; var option = { backgroundColor: 'rgba(0,0,0,0)', series: [ @@ -85,18 +84,16 @@ name: 'MAP', type: 'map3D', map: name, - layoutCenter: ['50%', '50%'], - layoutSize: '150%', zlevel: -10, boxWidth: 150, - boxHeight:30, + boxHeight:60, boxDepth: 110,//地图倾斜度 - regionHeight: 4,//地图厚度 + regionHeight: 5,//地图厚度 label: { show: true,//是否显示市 textStyle: { color: "#fff",//文字颜色 - fontSize: 12,//文字大小 + fontSize: 10,//文字大小 fontFamily: '微软雅黑', backgroundColor: "rgba(0,0,0,0)",//透明度0清空文字背景 }, @@ -115,7 +112,7 @@ show: true,//是否显示标签 textStyle: { color: '#fff',//高亮文字颜色 - fontSize: 14, + fontSize: 16, fontFamily: '微软雅黑' }, },