mirror of
https://gitee.com/anji-plus/report.git
synced 2026-04-01 10:08:36 +08:00
30
README.md
30
README.md
@@ -105,16 +105,23 @@ unzip report-core-xxxx.zip
|
||||
cd report-core-xxxx
|
||||
vim conf/bootstrap-dev.yml 数据库连接
|
||||
sh bin/start.sh Linux启动
|
||||
bin/start.bat Windows修改第4行的JAVA_HOME后,双击启动
|
||||
|
||||
bin/start.bat Windows修改第4行的JAVA_HOME后(去掉rem注释),双击启动
|
||||
|
||||
启动后访问
|
||||
http://serverip:9095
|
||||
```
|
||||
源码编译部署和发行版部署可参考在线文档 <br>
|
||||
https://report.anji-plus.com/report-doc/guide/quicklyDevelop.html
|
||||
|
||||
源码编译部署参考文档:https://report.anji-plus.com/report-doc/guide/quicklySource.html <br>
|
||||
发行版部署参考文档:https://report.anji-plus.com/report-doc/guide/quicklyDistribution.html <br>
|
||||
前后端分类部署参考文档:https://report.anji-plus.com/report-doc/guide/quicklySeparate.html <br>
|
||||
|
||||
## 操作手册
|
||||
|
||||
新建数据源(重置mysql数据源) --> 新建数据集(编写sql) --> 新建大屏(设计大屏) <br>
|
||||
请参考在线文档:https://report.anji-plus.com/report-doc/guide/datasource.html <br>
|
||||
|
||||
## SQL初始化
|
||||
|
||||
sql文件的目录在:report-core --> src --> main --> resources -- > db.migration <br>
|
||||
|
||||
系统初始化时flyway会自动的将该目录下的sql文件执行,不需要手动执行sql文件。 <br>
|
||||
@@ -129,7 +136,6 @@ sql文件的目录在:report-core --> src --> main --> resources -- > db.migra
|
||||
<a href='http://www.fgkb.net/'><img src="https://report.anji-plus.com/file/download/9ee5b709-5033-4cd5-a784-ebd2877fd373" width = "130" height = "50" /> </a>
|
||||
<a href='https://www.gykjweb.com/'><img src="https://report.anji-plus.com/file/download/d13b03f5-0c20-4878-9a79-f3c76b44bfd9" width = "130" height = "130" /> </a>
|
||||
|
||||
|
||||
## 近期计划
|
||||
|
||||
- 完善地图插件
|
||||
@@ -140,22 +146,29 @@ sql文件的目录在:report-core --> src --> main --> resources -- > db.migra
|
||||
- 现有图表功能修复/增加
|
||||
|
||||
## 版本问题
|
||||
|
||||
已知以下版本存在兼容性问题
|
||||
|
||||
- Node.js V16
|
||||
- Jdk 11
|
||||
- Mysql 8.0(8.0.23/26版本没有问题,8.0.21版本存在问题)
|
||||
- Windows 11
|
||||
|
||||
AJ-Report 使用Druid,版本为1.2.6,如果你觉得你配置都是正常但是数据源测试不过,请尝试修改pom文件降低Druid版本。 <br>
|
||||
例如:MSSQLSERVER 2014,请将Druid版本降低为1.2.1以下。 <br>
|
||||
例如:MSSQLSERVER 2014,请将Druid版本降低为1.2.1以下(需要修改源码)。 <br>
|
||||
|
||||
常见问题:https://report.anji-plus.com/report-doc/guide/question.html <br>
|
||||
|
||||
## 商业授权
|
||||
|
||||
AJ-Report使用[Apache2.0开源协议](http://www.apache.org/licenses/LICENSE-2.0.html) <br>
|
||||
个人和企业,在直接使用、二次开发后商业使用,需要遵守:
|
||||
|
||||
- 包含AJ-Report LICENSE文件(授权使用者免费使用AJ-Report专利和知识产权)
|
||||
- 如果修改了代码,需要在被修改的文件中说明
|
||||
- 在修改和有源代码衍生的代码中,需要带有原来代码中的协议,商标
|
||||
- 在二次开发后商业发布的产品中,使用了多个开源软件,则必须包含一个Notice文件,在Notice文件中需要带有AJ-Report LICENSE。你可以在Notice中增加自己的许可,但不可以表现为对AJ-Report LICENSE构成更改。
|
||||
- 在二次开发后商业发布的产品中,使用了多个开源软件,则必须包含一个Notice文件,在Notice文件中需要带有AJ-Report LICENSE。你可以在Notice中增加自己的许可,但不可以表现为对AJ-Report
|
||||
LICENSE构成更改。
|
||||
|
||||
如果您需要商业化增值服务,请加下面的微信沟通。
|
||||
|
||||
@@ -163,7 +176,8 @@ AJ-Report使用[Apache2.0开源协议](http://www.apache.org/licenses/LICENSE-2.
|
||||
|
||||
**如有问题,请提交 [Issue](https://gitee.com/anji-plus/report/issues) <br>**
|
||||
微信群:<br>
|
||||
<img src="https://images.gitee.com/uploads/images/2021/0729/130901_1672e6c5_7492051.jpeg" width = "200" height = "200" align=left/>|
|
||||
<img src="https://images.gitee.com/uploads/images/2021/0729/130901_1672e6c5_7492051.jpeg" width = "200" height = "200" align=left/>
|
||||
|
|
||||
|
||||
#### 开源不易,劳烦各位star ☺
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ doc -- > docs --> guide -- > community 目录 <br>
|
||||
 <br>
|
||||
|
||||
## 具体操作
|
||||
- 请在community目录下新建属于你自己的文件目录,命名方式可以使用自己在gitee的名字作为命名,注意中文命令可能会存在的一些问题。<br>
|
||||
- 请在community目录下新建属于你自己的文件目录,命名方式可以使用自己在gitee的名字作为命名,注意中文命名可能会存在的一些问题。<br>
|
||||
- 在你的个人目录下,你可以新建MD文件,需要用到图片可以直接放一个目录,如果md多,图片也多,建议再建下级目录存放。<br>
|
||||
|
||||
最后别忘了在config.js中添加配置,如图示。<br>
|
||||
|
||||
@@ -1,23 +1,37 @@
|
||||
- 没有找到新增数据源类型?<br>
|
||||
字典管理目前暂未有页面维护,可自行去数据库中增加你需要的数据源类型。<br>
|
||||
表aj_report.gaea_dict,字段dict_type:SOURCE_TYPE<br>
|
||||
表aj_report.gaea_dict_item, item_extend字段是下拉选择后动态表单渲染的json数据<br>
|
||||
|
||||
|
||||
- 快速部署本地运行,提示“在线体验版本” <br>
|
||||
请下载最新源码或者最新发行版
|
||||
|
||||
|
||||
- 使用Maven Install打包时报错 <br>
|
||||

|
||||
请使用Maven Package进行打包
|
||||
|
||||
 <br>
|
||||
请使用Maven Package进行打包 <br>
|
||||
|
||||
-- 版本问题:[开发环境参考](https://report.anji-plus.com/report-doc/guide/quicklyDevelop.html)
|
||||
|
||||
- 底层数据库为Mysql8.0+时,flyway执行SQL报错<br>
|
||||
修改pom.xml依赖,添加Mysql8.0驱动包,将DB目录里面SQL文件utf8_general_ci字符集改成mysql8.0支持的字符集
|
||||
|
||||
- Node.js是V16版本时 npm install失败 <br>
|
||||
- jdk使用1.7或者11及以上时,编译打包不过 <br>
|
||||
 <br>
|
||||
|
||||
- MssSqlServer 2014及其上下版本数据源测试不过。以2014版本为例。 <br>
|
||||
 <br>
|
||||
将1.2.6改成1.2.0 <br>
|
||||
|
||||
- 浏览器兼容性 当前未对部分浏览器做兼容性适配,推荐使用谷歌浏览器进行访问。<br>
|
||||
|
||||
- 部署完进入系统,点击预览大屏,大屏提示:**执行sql失败** <br>
|
||||
 <br>
|
||||
请先重置数据源的mysql连接,修改mysql的账号密码。<br>
|
||||
|
||||
- flyway执行报错1.0.10sql失败 <br>
|
||||
错误提示:Caused by: org.flywaydb.core.api.FlywayException: Validate failed: Detected failed <br>
|
||||
migration to version 1.0.10 (create report share) <br>
|
||||
**注:0.93发行版及之后使用Report的小伙伴不用担心会出现此问题** <br>
|
||||
请参考此Issue解决此问题:https://gitee.com/anji-plus/report/issues/I47JNE <br>
|
||||
|
||||
- 禁用flyway及切换底层数据库方案 <br>
|
||||
https://my.oschina.net/u/4517014/blog/5269319 <br>
|
||||
|
||||
- 数据源数据集用法总结 <br>
|
||||
https://my.oschina.net/u/4517014/blog/5270828 <br>
|
||||
**注**:http数据源未来会挪到数据集那边 <br>
|
||||
|
||||
- Jdk11无法启动
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -42,6 +42,8 @@ http://localhost:9095 <br>
|
||||
|
||||
## 重置mysql连接
|
||||
登陆进来后请重置mysql连接 <br>
|
||||

|
||||
数据源 --> mysql数据源 --> 编辑 --> 修改用户名密码 <br>
|
||||
 <br>
|
||||
 <br>
|
||||
|
||||
|
||||
|
||||
@@ -55,5 +55,7 @@ http://serverip:9095 <br>
|
||||
|
||||
## 重置mysql连接
|
||||
登陆进来后请重置mysql连接 <br>
|
||||
数据源 --> mysql数据源 --> 编辑 --> 修改用户名密码 <br>
|
||||
 <br>
|
||||

|
||||
|
||||
|
||||
BIN
doc/docs/picture/quickly/img_14.png
Normal file
BIN
doc/docs/picture/quickly/img_14.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 40 KiB |
BIN
doc/docs/picture/qusetion/img_1.png
Normal file
BIN
doc/docs/picture/qusetion/img_1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 17 KiB |
BIN
doc/docs/picture/qusetion/img_2.png
Normal file
BIN
doc/docs/picture/qusetion/img_2.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 27 KiB |
BIN
doc/docs/picture/qusetion/img_3.png
Normal file
BIN
doc/docs/picture/qusetion/img_3.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 55 KiB |
@@ -42,6 +42,14 @@ export const widgetTable = {
|
||||
placeholder: '',
|
||||
value: '16'
|
||||
},
|
||||
{
|
||||
type: 'el-input-number',
|
||||
label: '显示行数',
|
||||
name: 'vis',
|
||||
required: false,
|
||||
placeholder: '',
|
||||
value: '5'
|
||||
},
|
||||
{
|
||||
type: 'el-switch',
|
||||
label: '开启滚动',
|
||||
@@ -68,7 +76,7 @@ export const widgetTable = {
|
||||
},
|
||||
{
|
||||
type: 'el-switch',
|
||||
label: '线条',
|
||||
label: '边框线',
|
||||
name: 'isLine',
|
||||
required: false,
|
||||
placeholder: '',
|
||||
|
||||
@@ -118,6 +118,10 @@ export default {
|
||||
this.handlerRollFn();
|
||||
this.handlerHead();
|
||||
this.handlerData();
|
||||
this.visConfig();
|
||||
},
|
||||
visConfig(){
|
||||
this.options.vis = this.optionsSetUp.vis;
|
||||
},
|
||||
handlerRollFn() {
|
||||
const options = this.options;
|
||||
|
||||
@@ -94,7 +94,7 @@ export default {
|
||||
},
|
||||
formatWeek(date, fmt) {
|
||||
const year = date.getFullYear();
|
||||
const month = date.getMonth();
|
||||
const month = date.getMonth() + 1;
|
||||
const day = date.getDate();
|
||||
const hours = date.getHours();
|
||||
const minutes = date.getMinutes();
|
||||
|
||||
Reference in New Issue
Block a user