mirror of
https://github.com/jeecgboot/JimuReport.git
synced 2025-10-15 07:20:22 +00:00
积木报表发布首版仪表盘工作台功能,类似大屏面板设计
This commit is contained in:
@@ -45,7 +45,7 @@
|
|||||||
</repositories>
|
</repositories>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<jimureport.version>1.7.8</jimureport.version>
|
<jimureport.version>1.7.9</jimureport.version>
|
||||||
<java.version>1.8</java.version>
|
<java.version>1.8</java.version>
|
||||||
<minio.version>8.0.3</minio.version>
|
<minio.version>8.0.3</minio.version>
|
||||||
<!-- DB驱动 -->
|
<!-- DB驱动 -->
|
||||||
@@ -62,13 +62,19 @@
|
|||||||
<artifactId>lombok</artifactId>
|
<artifactId>lombok</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- JimuReport -->
|
<!-- 积木报表 -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.jeecgframework.jimureport</groupId>
|
<groupId>org.jeecgframework.jimureport</groupId>
|
||||||
<artifactId>jimureport-spring-boot-starter</artifactId>
|
<artifactId>jimureport-spring-boot-starter</artifactId>
|
||||||
<version>${jimureport.version}</version>
|
<version>${jimureport.version}</version>
|
||||||
</dependency>
|
</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>
|
<dependency>
|
||||||
<groupId>org.jeecgframework.jimureport</groupId>
|
<groupId>org.jeecgframework.jimureport</groupId>
|
||||||
<artifactId>jimureport-nosql-starter</artifactId>
|
<artifactId>jimureport-nosql-starter</artifactId>
|
||||||
|
@@ -10,7 +10,7 @@ import org.springframework.core.env.Environment;
|
|||||||
/**
|
/**
|
||||||
* 积木报表独立服务启动类
|
* 积木报表独立服务启动类
|
||||||
*/
|
*/
|
||||||
@SpringBootApplication
|
@SpringBootApplication(scanBasePackages = {"org.jeecg", "com.jeecg"})
|
||||||
@EnableAutoConfiguration(exclude = {MongoAutoConfiguration.class})
|
@EnableAutoConfiguration(exclude = {MongoAutoConfiguration.class})
|
||||||
public class JimuReportApplication {
|
public class JimuReportApplication {
|
||||||
|
|
||||||
@@ -20,8 +20,9 @@ public class JimuReportApplication {
|
|||||||
String port = env.getProperty("server.port");
|
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" +
|
System.out.print("\n----------------------------------------------------------\n\t" +
|
||||||
"Application JimuReport Demo is running! Access URL:\n\t" +
|
"JimuReport 积木报表平台 is running! Access URL:\n\t" +
|
||||||
"Local: \t\thttp://localhost:" + port + path + "/jmreport/list\n\t" +
|
"报表工作台: \t\thttp://localhost:" + port + path + "/jmreport/list\n\t" +
|
||||||
|
"仪表盘工作台: \t\thttp://localhost:" + port + path + "/drag/list\n\t" +
|
||||||
"----------------------------------------------------------");
|
"----------------------------------------------------------");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -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) {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
@@ -11,7 +11,7 @@ import javax.servlet.http.HttpServletRequest;
|
|||||||
* 2.自定义获取登录用户
|
* 2.自定义获取登录用户
|
||||||
*/
|
*/
|
||||||
@Component
|
@Component
|
||||||
public class JimuReportTokenService implements JmReportTokenServiceI {
|
public class JimuReportTokenServiceImpl implements JmReportTokenServiceI {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 通过请求获取Token
|
* 通过请求获取Token
|
||||||
@@ -74,7 +74,7 @@ public class JimuReportTokenService implements JmReportTokenServiceI {
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public Boolean verifyToken(String token) {
|
public Boolean verifyToken(String token) {
|
||||||
System.out.println("---------verify-----Token---------------");
|
//System.out.println("---------verify-----Token---------------");
|
||||||
//return TokenUtils.verifyToken(token, sysBaseAPI, redisUtil);
|
//return TokenUtils.verifyToken(token, sysBaseAPI, redisUtil);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
@@ -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;
|
||||||
|
}
|
||||||
|
}
|
@@ -7,9 +7,24 @@ spring:
|
|||||||
username: root
|
username: root
|
||||||
password: root
|
password: root
|
||||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
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:
|
minidao:
|
||||||
base-package: org.jeecg.modules.jmreport.*
|
base-package: org.jeecg.modules.jmreport.*,org.jeecg.modules.drag.*
|
||||||
jeecg:
|
jeecg:
|
||||||
# local|minio|alioss
|
# local|minio|alioss
|
||||||
uploadType: local
|
uploadType: local
|
||||||
|
@@ -7,9 +7,24 @@ spring:
|
|||||||
username: root
|
username: root
|
||||||
password: root
|
password: root
|
||||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
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:
|
minidao:
|
||||||
base-package: org.jeecg.modules.jmreport.*
|
base-package: org.jeecg.modules.jmreport.*,org.jeecg.modules.drag.*
|
||||||
jeecg:
|
jeecg:
|
||||||
# local|minio|alioss
|
# local|minio|alioss
|
||||||
uploadType: local
|
uploadType: local
|
||||||
|
Reference in New Issue
Block a user