当前位置:网站首页>If jimureport building block report is integrated according to the framework
If jimureport building block report is integrated according to the framework
2022-07-25 22:20:00 【Steal the moon by riding the wind】
Abstract
JimuReport Building block Report : Project introduction · JimuReport Building block Report · Look at the clouds
If you integrate building block reports according to the framework :ruoyi vue Version integrated building block Report · JimuReport Building block Report · Look at the clouds
Hello everyone , I steal the moon by riding the wind . Thank you for reading my article , I hope it is helpful to you who are reading ! below , Let's study together !
In the last article , According to the use and configuration of data permissions in the open source framework _ Take advantage of the wind to steal the moon's blog -CSDN Blog _ If configured according to the framework database I got a lot of reading from my friends , Presumably, I pay more attention to the ruoyi framework , Many friends are using ruoyi framework for development , that , In this article , I will mainly talk about the process and use of integrating building block reports according to the framework . Because I need to use online design print styles in actual projects , therefore , Search on Baidu , eureka JimuReport Introduction of building block report , And the project is completely free and can be applied to enterprise projects , This is very commendable .
This article mainly introduces how to integrate building block reports according to the framework and adjust the display of building block reports , Make the building block report look integrated with your own project , Both beautiful and meet user needs .
In the process of referring to the official configuration of building block report according to the framework , There is no big problem in the process . Here are the main overview points :
1、 In the project pom.xml Join in jar Packet dependency , What I use here is 1.5.0 edition , Friends in need can modify the version number appropriately
<dependency>
<groupId>org.jeecgframework.jimureport</groupId>
<artifactId>jimureport-spring-boot-starter</artifactId>
<version>1.5.0-beta</version>
</dependency>The jar Packages can be configured on their own Maven Local warehouse found , As shown in the figure

The following will mainly focus on this jar Package modification , Make it integrated with your own project , More beautiful .
2、 Public tables needed to create building block reports , The script uses mysql 5.7 edition
3、 stay RuoYiApplication The main program adds the building block scanning directory ,
Be careful : My name here is changed to WanCangApplication, The package name has also been changed , It's called com.wancang. Friends can adjust according to the package name of the project , The default is com.ruoyi
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class },scanBasePackages = {"org.jeecg.modules.jmreport", "com.wancang"})Pictured

When referencing packages , At the same time, the building block scanning directory is also added , It's still floating red , Report errors , You can click the item to restart , solve the problem . Here's the picture :

4、 Because in the project , I didn't join Token Mechanism , therefore , Need to be in ruoyi-framework Add running anonymous access to the module , Temporarily do not do permission control .
.antMatchers("/jmreport/**").anonymous()As shown in the figure :

Here we are , The building block report can be said to be completed in accordance with the framework integration , After starting the project , Type in the browser http://localhost:8881/jmreport/list( there 8881 Port is the service port ) Be able to access , Indicates successful integration .


These are the basic steps of integration , After visiting the link , The effect displayed on the page of the building block report , however , Need to integrate into your own project , The ideal state is to be able to display in the framework of ruoyi , That would be perfect . therefore , The following is the highlight
In the background configuration menu of ruoyi management , Pictured
System management -> Menu management , Add a menu item , As shown in the figure

Go back to the menu , Click the online report design menu , As shown in the figure below

Here we are , Building block report sheet page can be integrated into ruoyi framework for display , A keen reader , You may see that the building block report here does not show title, And the menu name on the left can be modified , The display style has changed a little , exactly , This mainly involves modifying the above mentioned jimureport Off line jar Package problem

Use WinRAR The decompression tool opens the file , Entry directory templates\jmreport\desreport Next , hold index.ftl、list.ftl Copy the file out ,
Use Notepad++ The text tool opens list.ftl file , Modification does not display title Welcome to the contents of the report workbench , add display:none; in addition , Change the menu name on the left to what you want , At the same time, it can increase and also reduce , It can be formulated according to business needs .

The above modified document , Copy it again , Just overwrite the original file .
If you modify the page display logo, Can open static\jmreport\desreport_\corelib, Put your own logo Replace the original logo, The name must be the same .

Here we are , If you integrate the building block report according to the framework, it will be successfully completed , Like friends, please click three likes . If you don't think it's very clear , Have a question , You can leave a message and contact me , thank you !!
边栏推荐
- Fill the whole square with the float property
- JMeter websocket接口测试
- 手机端微信发朋友圈功能测试点总结
- 3day
- Tfrecord write and read
- 2day
- JS interview questions
- [go basics 02] the first procedure
- Can I buy financial products with a revenue of more than 6% after opening an account
- Summary of function test points of wechat sending circle of friends on mobile terminal
猜你喜欢

3dslicer importing medical image data

Xiaobai programmer's first day

如何实现一个App应用程序,限制用户时间使用?

Title: give a group of arrays, arranged from large to small and from small to large.

Use of hyperlinks

面了个腾讯三年经验的测试员,让我见识到了真正的测试天花板

Virtual memory and disk

win10搭建flutter环境踩坑日记

About vscode usage+ Solutions to the problem of tab failure

Don't vote, software testing posts are saturated
随机推荐
ThreadLocal summary (to be continued)
PySpark数据分析基础:pyspark.sql.SparkSession类方法详解及操作+代码展示
Minor GC 和 Full GC 有什么不同呢?
ArcGIS10.2配置PostgreSQL9.2标准教程
Compile and decompile
字节跳动技术面都过了,结果还是被刷了,问HR原因竟是。。。
QML module not found
The technical aspects of ByteDance are all over, but the result is still brushed. Ask HR why...
Arcgis10.2 configuring postgresql9.2 standard tutorial
面了个腾讯三年经验的测试员,让我见识到了真正的测试天花板
数据库进阶·如何针对所有用户数据中没有的数据去加入随机的数据-蜻蜓Q系统用户没有头像如何加入头像数据-优雅草科技kir
The third day of Xiaobai programmer
QML module not found
完啦,上班三个月,变秃了
3. Editors (vim)
关于接口测试你想知道的都在这儿了
jenkins+SVN配置
编译和反编译
It's over. I went to work for three months and became bald
Wet- a good choice for people with English difficulties - console translation