当前位置:网站首页>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

边栏推荐
- 【实操】Appium Settings app is not running after 5000ms
- Guangzhou Customs supports the stable supply of food, agricultural products, traditional Chinese medicine and other civilian and biological resources to Hong Kong
- [unity][ecs] learning notes (II)
- DlhSoft Kanban Library for WPF
- Google open source dependency injection framework Guice Guide
- Please consult me. I run the MYSQL to MySQL full synchronization of flykcdc in my local ide. This is in my local ide
- Several methods of using ABAP to operate Excel
- Unity AssetBundle asset packaging and asset loading
- Chapter 5 trees and binary trees
- 2022 Wu Enda machine learning specialization week 2 practice lab: linear expression
猜你喜欢
![[unity][ecs] learning notes (II)](/img/72/d3e46a820796a48b458cd2d0a18f8f.png)
[unity][ecs] learning notes (II)

Idea failed to connect to SQL Sever
![[unity][ecs] learning notes (I)](/img/eb/1f0ad817bbc441fd8c14d046b82dd0.png)
[unity][ecs] learning notes (I)
![[Li Kou - dynamic planning] sort out topic 1: basic topics: 509, 70, 746, 62, 63, 343, 96 (with links, topic descriptions, problem solving methods and codes)](/img/02/4dbd97c8b8df1c96b7c8e1460aeda2.png)
[Li Kou - dynamic planning] sort out topic 1: basic topics: 509, 70, 746, 62, 63, 343, 96 (with links, topic descriptions, problem solving methods and codes)

一款自动生成单元测试的 IDEA 插件,开发效率提升 70% 以上!

我大抵是卷上瘾了,横竖睡不着!竟让一个Bug,搞我两次!

mysql数据库概述以及安装过程

物联网5种无线传输协议特点大汇总

Katalon当中的debug调试
![[Unity]EBUSY: resource busy or locked](/img/72/d3e46a820796a48b458cd2d0a18f8f.png)
[Unity]EBUSY: resource busy or locked
随机推荐
在OpenCloudOS使用snap安装.NET 6
Realize an air conditioner with compose to bring you cool in summer
2022吴恩达机器学习specialization Week 2 practice lab: Linear regression
MySQL common commands for viewing database performance
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
BLE蓝牙模块NRF518/NRF281/NRF528/NRF284芯片方案对比
Django database operation and problem solving
Understanding of FTP protocol
Chapter 3 stack and queue
Dear leaders, ask me if MySQL does not support early_ Offset mode? Unsupported star
An idea plug-in that automatically generates unit tests, which improves the development efficiency by more than 70%!
一种跳板机的实现思路
Sqlcmd database connection error
Chapter 5 trees and binary trees
Training and recognition of handwritten digits through the lenet-5 network built by pytorch
[unity][ecs] learning notes (I)
Ribbon核心源码解析
Metersphere实现UI自动化元素不可点击(部分遮挡)
Dotnet uses crossgen2 to readytorun DLL to improve startup performance
Fabric.js 笔刷到底怎么用?