How to install the mobile H5 plugin in FineReport

1. HTML5 report plug-in installation and use editing

 

  • Plugin installation

The plugin URL, designer plugin installation method and server installation plugin method can be searched on the official website, and will not be introduced in detail here.

 

  • How to use HTML5 report on mobile terminal

After installing the plug-in, when calling it in the browser, you need to add the parameter op=h5 after the report path. But the PC side does not fully support the H5 effect.

Before and after adding parameters on the mobile terminal:

There is no need to bring parameters when hanging the report on fs, and it will automatically identify whether it is accessed on the mobile phone. In addition, the H5 plug-in on the mobile side, the chart only supports the display of new charts.

2. Html5 report production and mobile phone effect editing

 

  • Mobile page size

The process of making reports on mobile phones is the same as making reports on PCs. In order to allow users to make reports that fit the size of mobile phones, you can select the size of mobile phone paper in Template > Page Settings > Paper Size, as shown in the following figure:

 

  • Display effect of report parameter interface

When the html5 report is displayed on the mobile phone, the parameter interface is different from that on the PC, but a new page. The controls on the page will be automatically laid out and displayed in order from top to bottom, according to the order in the parameter interface > mobile display list. :

 

The effect is as follows:

 

 

  • H5 report adaptive

When the h5 template is self-adapting, click Template > Mobile Properties, set [Portrait] - [Landscape], the effect will be better, if there is an excess part, it will be displayed in pages, and you can use the page turning button in the lower toolbar to turn Page.


3. Html5 report supports function point list editing

Note: The use of the new version requires the server jar package time to be June 8 or later, and the
current Html5 report with the new feature chart plug-in version V7.2 or later supports the following functions:

1、Html5报表暂时支持普通分页预览,填报预览、数据分析还不支持
2、报表参数界面与正文分离,提供良好的用户体验
3、报表正文在不同的设备上会进行自适应
4、报表工具栏上提供左右箭头可以进行翻页、点击页码可以进行快速翻页
5、支持所有类型图表的基本展现,可以在图表上进行穿透钻取,有数据点提示
6、报表正文单元格支持钻取
7、支持基础控件:文本、下拉框、单选按钮组、复选框组、日期、按钮
8、支持表单模板的展现,并且可以有保留布局与自动重布局两种选择,可以快速制作精美的报表页面
9、支持pc、phone、pad上显示的目录结构不同,用户在pc上看到的报表目录结构和手机上看到的目录结构可以设置成不同
10、支持表单实现数据采集并提交入库
11、参数界面优化,增加参数过滤快捷按钮并支持直接返回目录,及查询前不显示报表内容属性
12、js缓存优化,提升展示性能
13、图表性能优化

14、cpt报表缩放调整并支持是否启用cpt报表的缩放

 

4、移动端手机报表制作时的属性使用指南编辑

随着表单保留布局及自适应布局功能的发布,在设计手机报表的时候,会用到的属性也增加了好几个,虽然属性的控制可以让设计的时候更灵活,但是确无疑会增加设计的难度。我们也在想方设法的让设计的时候更简单,与此同时,也将相关的属性以及用法在此做一个说明,让大家的用的时候能够更加清晰。

(1)表单body属性中新增“手机重布局”属性

  手机重布局这个属性只针对手机,pc和pad上面始终是原始布局。这个就是是否要在手机显示的时候保留布局的开关,默认情况下是重布局的唷,即组件是依次往下显示,一行只会有一个组件唷,如果想手机上显示的时候就按照设计的布局来的话,记得勾选。

(2)表单中报表块属性中新增“手机显示限制高度”属性及高度的设置

  这个通常使用默认的就可以了,有了这个属性,你的报表块设计的时候可以不需要去考虑最终的高度,在手机上面,报表块的高度会根据报表最终扩展出来的内容高度自动变化。
当然这个属性有一定的局限性,就是如果你设置保留设计时候的布局,报表块旁边又有其他控件比如右边有个图表,那报表块高度就不会自动改变,设计时的比例是什么样的就是什么样的。
最后报表块如果设置了限制高度的话,高度的设置为屏幕高度的比例值,我们这边考虑到报表的滑动,所以报表块限制高度时最大占屏幕高度的0.8,如果大家在实际使用时,觉得比例不合适也可以及时反馈给我们。

(3)表单body属性中的“组件缩放”

  表单body中自适应布局方式还有一个属性“组件缩放”,大家也要关注一下,这个默认是“双向自适应”,如果你的报表只在pc上看,设置为“双向自适应”是非常合适的,但是如果是手机上看,就不太合适,所以如果是要兼顾手机端显示的话,“组件缩放”属性最好设置为“横向自适应”会比较好。

设置为自适应布局并且“双向自适应”的话,你的报表在手机上也会压缩到一个手机屏幕,每个组件都会按照设计的比例挤压显示,这个时候报表块的显示高度限制也就没啥用了。

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326349933&siteId=291194637