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);