From 1d6997db3964f7344ba3616d70ae722cb0cc7270 Mon Sep 17 00:00:00 2001 From: fan Date: Fri, 15 Jul 2022 09:57:03 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=BB=E9=9D=A2=E8=B0=83=E6=95=B4=E6=9A=82?= =?UTF-8?q?=E6=8F=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/jmapNew/map.js | 5 ++++- .../newMap/mapDraftPicture/createPicture.vue | 18 ++++++++++++++++++ src/views/newMap/mapDraftPicture/index.vue | 1 + 3 files changed, 23 insertions(+), 1 deletion(-) diff --git a/src/jmapNew/map.js b/src/jmapNew/map.js index d7e2b81c3..e6d92daaa 100644 --- a/src/jmapNew/map.js +++ b/src/jmapNew/map.js @@ -83,7 +83,10 @@ class Jlmap { loadStyle(lineCode) { return selectLineCode(lineCode); } - + reloadStyle(lineCode) { + this.style = selectLineCode(lineCode); + this.$zr.dom.style.backgroundColor = this.style.backgroundColor || '#000'; + } loadDefaultState() { // 加载默认状态 const defaultStateDict = {}; diff --git a/src/views/newMap/mapDraftPicture/createPicture.vue b/src/views/newMap/mapDraftPicture/createPicture.vue index 3c67c4e4c..ad15e5160 100644 --- a/src/views/newMap/mapDraftPicture/createPicture.vue +++ b/src/views/newMap/mapDraftPicture/createPicture.vue @@ -24,6 +24,11 @@ /> + + + + + 创建 @@ -34,11 +39,13 @@