From 96af171b9a968959368b2cab4e16546e53bdbf34 Mon Sep 17 00:00:00 2001 From: cuibaocheng Date: Mon, 2 Nov 2020 18:08:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B4=94=E5=AE=9D=E9=93=96=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/bigdatamodule/impl/BigdataModuleServiceImpl.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cloud-common-bigdata/src/main/java/com/cm/common/service/bigdatamodule/impl/BigdataModuleServiceImpl.java b/cloud-common-bigdata/src/main/java/com/cm/common/service/bigdatamodule/impl/BigdataModuleServiceImpl.java index d5af116..8bea66e 100644 --- a/cloud-common-bigdata/src/main/java/com/cm/common/service/bigdatamodule/impl/BigdataModuleServiceImpl.java +++ b/cloud-common-bigdata/src/main/java/com/cm/common/service/bigdatamodule/impl/BigdataModuleServiceImpl.java @@ -97,8 +97,11 @@ public class BigdataModuleServiceImpl extends AbstractService implements IBigdat "\t*/\n" + "\tfunction "+ bigdataModuleVO.getBigdataModuleCode() +"(moduleData, serverData) {\n" + "\t\tconsole.log(moduleData.id + '初始化...');\n" + + "\t\t// 清除旧的循环任务\n" + "\t\techarts.dispose(document.getElementById(moduleData.id));\n" + - "\t\tvar elem = document.getElementById(moduleData.id);\n\n" + + "\t\tvar elem = echarts.init(document.getElementById(moduleData.id));\n" + + "\t\tvar option = {};\n" + + "\t\telem.setOption(option);\n\n" + "\t}\n"); Map params = HashMapUtil.beanToMap(bigdataModuleVO); params.put("bigdataModuleId", bigdataModuleId);