当前位置:网站首页>Ruoyi integrated building block report (NICE)
Ruoyi integrated building block report (NICE)
2022-06-28 10:34:00 【Endless code week after week】
Introduce
There are often reports in the project , Visualization screen , Print the requirements for this piece , These manual processes can be cumbersome , This time try to use This component of building block report solves
Integrated into ruoyi
Introduce dependencies , We started with Lord Pom Make version declaration in , Later, we put this dependency into common in
<dependency>
<groupId>org.jeecgframework.jimureport</groupId>
<artifactId>jimureport-spring-boot-starter</artifactId>
<version>1.5.0</version>
</dependency>
<repository>
<id>jeecg</id>
<name>jeecg Repository</name>
<url>https://maven.jeecg.org/nexus/content/repositories/jeecg</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
Need to put admin Module spring-boot-devtools Comment out , There may be aop Report errors
security Exclude from
.antMatchers("/jmreport/**").anonymous()
RuoYiApplication Add building block scan Directory
@SpringBootApplication(scanBasePackages = {
"org.jeecg.modules.jmreport","com.ruoyi"})
Front controller
# Project related configuration
ruoyi:
# Building block report access address
reporturl: http://x.x.x.x:8090
To configure
@RestController
@RequestMapping("/report/jimu")
public class JimuController {
@Autowired
Environment environment;
@GetMapping("/index")
@PreAuthorize("@ss.hasPermi('report:jimu:index')")
public String index(){
// String hostIp = IpUtils.getHostIp();
return environment.getProperty("ruoyi.reporturl")+"/jmreport/list";
}
@GetMapping("/view")
@PreAuthorize("@ss.hasPermi('report:jimu:view')")
public String view(){
return environment.getProperty("ruoyi.reporturl")+"/jmreport/view";
}
}
The front-end configuration
import request from "@/utils/request";
// api To configure
// home page
export function indexUrl(query) {
return request({
url: "/report/jimu/index",
method: "get"
});
}
// preview
export function view(query) {
return request({
url: "/report/jimu/view",
method: "get"
});
}
// Report design page jimu.vue
<template>
</template>
<script>
// import { getToken } from '@/utils/auth'
import { indexUrl } from '@/api/tool/jimu'
export default {
name: "Jimu",
created() {
indexUrl().then(res => {
var open = window.open();
// open.location = res + "?token=" + getToken();
open.location = res
})
}
}
</script>
<style scoped>
</style>
We don't need token check , Then add
Add menu

Click to jump to a new page , This is our building block report home page

边栏推荐
- [unity][ecs] learning notes (III)
- The R language uses the avplots function in the car package to create added variable plots. In image interaction, manually identify (add) strong influence points that have a great impact on each predi
- 2022 Wu Enda machine learning specialization week 2 practice lab: linear expression
- DlhSoft Kanban Library for WPF
- linux中源码安装mysql数据库(centos)
- appliedzkp zkevm(10)中的Transactions Proof
- 无线模块透明传输技术的物联网应用案例
- Django database operation and problem solving
- BLE蓝牙模块NRF518/NRF281/NRF528/NRF284芯片方案对比
- 【功能建议】多个工作空间启动时选择某个空间
猜你喜欢

How to distinguish and define DQL, DML, DDL and DCL in SQL
![[unity][ecs] learning notes (II)](/img/72/d3e46a820796a48b458cd2d0a18f8f.png)
[unity][ecs] learning notes (II)

第六天 脚本与动画系统

Metersphere实现UI自动化元素不可点击(部分遮挡)

为什么 Istio 要使用 SPIRE 做身份认证?

手把手教你处理 JS 逆向之 SVG 映射
Ribbon核心源码解析
![[NLP] this year's college entrance examination English AI score is 134. The research of Fudan Wuda alumni is interesting](/img/a8/51b95432a9c8f25d8440cfd80926ce.png)
[NLP] this year's college entrance examination English AI score is 134. The research of Fudan Wuda alumni is interesting

一文读懂 12种卷积方法(含1x1卷积、转置卷积和深度可分离卷积等)

Interface automation framework scaffold - use reflection mechanism to realize the unified initiator of the interface
随机推荐
Dotnet uses crossgen2 to readytorun DLL to improve startup performance
MySQL查看数据库性能常用命令
To enhance the function of jupyter notebook, here are four tips
错过金三银四,找工作4个月,面试15家,终于拿到3个offer,定级P7+
Ffmpeg audio and video recording
What is the difference between MySQL development environment and test environment??
I'm almost addicted to it. I can't sleep! Let a bug fuck me twice!
Fastposter v2.8.4 release e-commerce poster generator
[unity][ecs] learning notes (II)
Google open source dependency injection framework Guice Guide
ECS MySQL query is slow
接口自动化框架脚手架-参数化工具的实现
Training and recognition of handwritten digits through the lenet-5 network built by pytorch
我大抵是卷上瘾了,横竖睡不着!竟让一个Bug,搞我两次!
广州海关支持保障食品、农产品和中药材等民生物资稳定供港
Katalon框架测试一个web页面操作实例代码
Cisco * VRF(虚拟路由转发表)
How to distinguish and define DQL, DML, DDL and DCL in SQL
Pop up and push in sequence of stack < difficulty coefficient >
Ble Bluetooth module nrf518/nrf281/nrf528/nrf284 chip scheme comparison