积木报表发布首版仪表盘工作台功能,类似大屏面板设计

pull/3102/head
JEECG 2024-07-08 22:07:47 +08:00
parent d6f2a46fd0
commit 57530a8c56
7 changed files with 138 additions and 12 deletions

View File

@ -45,7 +45,7 @@
</repositories>
<properties>
<jimureport.version>1.7.8</jimureport.version>
<jimureport.version>1.7.9</jimureport.version>
<java.version>1.8</java.version>
<minio.version>8.0.3</minio.version>
<!-- DB驱动 -->
@ -62,13 +62,19 @@
<artifactId>lombok</artifactId>
</dependency>
<!-- JimuReport -->
<!-- 积木报表 -->
<dependency>
<groupId>org.jeecgframework.jimureport</groupId>
<artifactId>jimureport-spring-boot-starter</artifactId>
<version>${jimureport.version}</version>
</dependency>
<!-- JimuReport mogodb/redis支持包按需添加 -->
<!-- 积木仪表盘 -->
<dependency>
<groupId>org.jeecgframework.jimureport</groupId>
<artifactId>jimureport-dashboard-spring-boot-starter</artifactId>
<version>1.8.0-beta</version>
</dependency>
<!-- mogodb和redis支持 -->
<dependency>
<groupId>org.jeecgframework.jimureport</groupId>
<artifactId>jimureport-nosql-starter</artifactId>

View File

@ -10,18 +10,19 @@ import org.springframework.core.env.Environment;
/**
*
*/
@SpringBootApplication
@EnableAutoConfiguration(exclude={MongoAutoConfiguration.class})
@SpringBootApplication(scanBasePackages = {"org.jeecg", "com.jeecg"})
@EnableAutoConfiguration(exclude = {MongoAutoConfiguration.class})
public class JimuReportApplication {
public static void main(String[] args) {
ConfigurableApplicationContext application = SpringApplication.run(JimuReportApplication.class, args);
Environment env = application.getEnvironment();
String port = env.getProperty("server.port");
String path = env.containsProperty("server.servlet.context-path")?env.getProperty("server.servlet.context-path"):"";
String path = env.containsProperty("server.servlet.context-path") ? env.getProperty("server.servlet.context-path") : "";
System.out.print("\n----------------------------------------------------------\n\t" +
"Application JimuReport Demo is running! Access URL:\n\t" +
"Local: \t\thttp://localhost:" + port + path + "/jmreport/list\n\t" +
"JimuReport 积木报表平台 is running! Access URL:\n\t" +
"报表工作台: \t\thttp://localhost:" + port + path + "/jmreport/list\n\t" +
"仪表盘工作台: \t\thttp://localhost:" + port + path + "/drag/list\n\t" +
"----------------------------------------------------------");
}

View File

@ -0,0 +1,67 @@
package com.jeecg.modules.jmreport.config;
import lombok.extern.slf4j.Slf4j;
import org.jeecg.modules.drag.service.IOnlDragExternalService;
import org.jeecg.modules.drag.vo.DragDictModel;
import org.jeecg.modules.drag.vo.DragLogDTO;
import org.springframework.stereotype.Service;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* @Description:
* @Author: lsq
* @Date:2023-01-09
* @Version:V1.0
*/
@Slf4j
@Service("onlDragExternalServiceImpl")
public class JimuDragExternalServiceImpl implements IOnlDragExternalService {
/**
* code
* @param codeList
* @return key = dictCode value=
*/
@Override
public Map<String, List<DragDictModel>> getManyDictItems(List<String> codeList) {
Map<String, List<DragDictModel>> manyDragDictItems = new HashMap<>();
return manyDragDictItems;
}
/**
*
* @param dictCode
* @return
*/
@Override
public List<DragDictModel> getDictItems(String dictCode) {
List<DragDictModel> dictItems = new ArrayList<>();
return dictItems;
}
/**
*
* @param dragLogDTO
*/
@Override
public void addLog(DragLogDTO dragLogDTO) {
}
/**
*
* @param logMsg
* @param logType
* @param operateType
*/
@Override
public void addLog(String logMsg, int logType, int operateType) {
}
}

View File

@ -11,7 +11,7 @@ import javax.servlet.http.HttpServletRequest;
* 2.
*/
@Component
public class JimuReportTokenService implements JmReportTokenServiceI {
public class JimuReportTokenServiceImpl implements JmReportTokenServiceI {
/**
* Token
@ -74,7 +74,7 @@ public class JimuReportTokenService implements JmReportTokenServiceI {
*/
@Override
public Boolean verifyToken(String token) {
System.out.println("---------verify-----Token---------------");
//System.out.println("---------verify-----Token---------------");
//return TokenUtils.verifyToken(token, sysBaseAPI, redisUtil);
return true;
}

View File

@ -0,0 +1,22 @@
package com.jeecg.modules.jmreport.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.connection.jedis.JedisConnectionFactory;
import org.springframework.data.redis.core.RedisTemplate;
@Configuration
public class RedisConfig {
@Bean
JedisConnectionFactory jedisConnectionFactory() {
return new JedisConnectionFactory();
}
@Bean
public RedisTemplate<String, Object> redisTemplate() {
RedisTemplate<String, Object> template = new RedisTemplate<>();
template.setConnectionFactory(jedisConnectionFactory());
return template;
}
}

View File

@ -7,9 +7,24 @@ spring:
username: root
password: root
driver-class-name: com.mysql.cj.jdbc.Driver
#配置freemarker
freemarker:
# 设置模板后缀名
suffix: .ftl
# 设置文档类型
content-type: text/html
# 设置页面编码格式
charset: UTF-8
# 设置页面缓存
cache: false
prefer-file-system-access: false
# 设置ftl文件路径
template-loader-path:
- classpath:/templates
template_update_delay: 0
#持久层框架
minidao:
base-package: org.jeecg.modules.jmreport.*
base-package: org.jeecg.modules.jmreport.*,org.jeecg.modules.drag.*
jeecg:
# local|minio|alioss
uploadType: local

View File

@ -7,9 +7,24 @@ spring:
username: root
password: root
driver-class-name: com.mysql.cj.jdbc.Driver
#配置freemarker
freemarker:
# 设置模板后缀名
suffix: .ftl
# 设置文档类型
content-type: text/html
# 设置页面编码格式
charset: UTF-8
# 设置页面缓存
cache: false
prefer-file-system-access: false
# 设置ftl文件路径
template-loader-path:
- classpath:/templates
template_update_delay: 0
#持久层框架
minidao:
base-package: org.jeecg.modules.jmreport.*
base-package: org.jeecg.modules.jmreport.*,org.jeecg.modules.drag.*
jeecg:
# local|minio|alioss
uploadType: local