当前位置:网站首页>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 !!
边栏推荐
- Advanced database · how to add random data for data that are not in all user data - Dragonfly Q system users without avatars how to add avatar data - elegant grass technology KIR
- Some summary about function
- H5幸运刮刮乐抽奖 免公众号+直运营
- Solutions to the failure of win key in ikbc keyboard
- 三菱FX PLC自由口RS指令实现MODBUS通讯
- Smart S7-200 PLC channel free mapping function block (do_map)
- Wet- a good choice for people with English difficulties - console translation
- Based on if nesting and function call
- Imitation Tiktok homepage interface
- Using simple scripts to process data in 3dslicer
猜你喜欢

Fill the whole square with the float property

Get together for ten years, tell your story, millions of gifts are waiting for you

After three years of software testing at Tencent, I was ruthlessly dismissed in July, trying to wake up my brother who was paddling

Usage of in in SQL DQL query

Don't know mock test yet? An article to familiarize you with mock

Wechat applet application development competition works comprehensive development record - Jinlu cultural tourism (cloud development - Overview)

2day

3dslicer importing medical image data

The automation testing post spent 20K recruiting, but in the end, there was no suitable one. Both fresh students are better than them

Visitor mode
随机推荐
Redis基础2(笔记)
Leetcode 106. construct binary tree from middle order and post order traversal sequence
还不懂mock测试?一篇文章带你熟悉mock
What is redis? Briefly describe its advantages and disadvantages
C language: random generated number + selective sorting
QML module not found
arcgis开发常用源码
H5幸运刮刮乐抽奖 免公众号+直运营
淦,为什么 '𠮷𠮷𠮷' .length !== 3 ??
Fill the whole square with the float property
数据质量:数据治理的核心
JSP nine built-in objects
kubernetes之VictoriaMetrics单节点
Method of converting MAPGIS format to ArcGIS
Tfrecord write and read
Formal parameters, arguments and return values in functions
Math programming classification
Wechat applet (anti shake, throttling), which solves the problem that users keep pulling down refresh requests or clicking buttons to submit information; Get the list information and refresh the data
synchronized与volatile
JS timer and swiper plug-in