崔宝铖提交

This commit is contained in:
cuibaocheng 2020-11-02 18:08:24 +08:00
parent 99f576aa56
commit 96af171b9a

View File

@ -97,8 +97,11 @@ public class BigdataModuleServiceImpl extends AbstractService implements IBigdat
"\t*/\n" + "\t*/\n" +
"\tfunction "+ bigdataModuleVO.getBigdataModuleCode() +"(moduleData, serverData) {\n" + "\tfunction "+ bigdataModuleVO.getBigdataModuleCode() +"(moduleData, serverData) {\n" +
"\t\tconsole.log(moduleData.id + '初始化...');\n" + "\t\tconsole.log(moduleData.id + '初始化...');\n" +
"\t\t// 清除旧的循环任务\n" +
"\t\techarts.dispose(document.getElementById(moduleData.id));\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</script>"); "\t}\n</script>");
Map<String, Object> params = HashMapUtil.beanToMap(bigdataModuleVO); Map<String, Object> params = HashMapUtil.beanToMap(bigdataModuleVO);
params.put("bigdataModuleId", bigdataModuleId); params.put("bigdataModuleId", bigdataModuleId);