qianlishi 3 years ago
commit 2e47080d78

@ -5,7 +5,10 @@
## 在线体验 ## 在线体验
####   电脑在线体验: [https://report.anji-plus.com/index.html](https://report.anji-plus.com/index.html "链接")  体验账号guest 密码guest ####   电脑在线体验: [https://report.anji-plus.com/index.html](https://report.anji-plus.com/index.html "链接")  体验账号guest 密码guest
#### &emsp; 在线文档: [https://report.anji-plus.com/report-doc/](https://report.anji-plus.com/report-doc/ "doc")<br> #### &emsp; 在线文档: [https://report.anji-plus.com/report-doc/](https://report.anji-plus.com/report-doc/ "doc")<br>
#### &emsp; 在线提问: [https://gitee.com/anji-plus/report/issues](https://gitee.com/anji-plus/report/issues "issue") #### &emsp; 在线提问: [https://gitee.com/anji-plus/report/issues](https://gitee.com/anji-plus/report/issues "issue")<br>
## 发行版本
#### &emsp; 下载链接:[https://gitee.com/anji-plus/report/releases](https://gitee.com/anji-plus/report/releases "下载链接")<br>
## 功能概述 ## 功能概述
#### &emsp; 组件介绍 #### &emsp; 组件介绍

@ -1,2 +1,19 @@
## 介绍 ## 介绍
待完善 ## 新增大屏
![img.png](../picture/dashboard/img.png)
## 大屏简介
![img_2.png](../picture/dashboard/img_2.png)
## 工具简介
### 1、文本框
![img_3.png](../picture/dashboard/img_3.png)
![img_4.png](../picture/dashboard/img_4.png)
![img_5.png](../picture/dashboard/img_5.png)
![img_6.png](../picture/dashboard/img_6.png)
### 2、滚动文本
### 3、超链接
### 4、当前时间
### 5、图片
![img_7.png](../picture/dashboard/img_7.png)

@ -1,2 +1,6 @@
## 介绍 ## 介绍
待完善 ## 1、mysql数据集
在数据源处添加了mysql的数据源后即可使用。
![img_1.png](../picture/dateset/img_1.png)
目前,查询参数和数据转化功能待补全中,建议等完善了再使用。

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

@ -22,59 +22,16 @@
<properties> <properties>
<gaea.version>2.0.1.RELEASE</gaea.version> <gaea.version>2.0.1.RELEASE</gaea.version>
<gaea.security.version>1.0.0-SNAPSHOT</gaea.security.version>
<gaea.export.version>1.0.0.RELEASE</gaea.export.version>
<gaea.generator.version>1.0.0-SNAPSHOT</gaea.generator.version>
<gaea.log.version>1.0.0.RELEASE</gaea.log.version>
<maven.test.skip>true</maven.test.skip> <maven.test.skip>true</maven.test.skip>
</properties> </properties>
<dependencyManagement> <dependencyManagement>
<dependencies> <dependencies>
<dependency>
<groupId>com.anjiplus.template.gaea</groupId>
<artifactId>template-gaea-auth</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.anjiplus.template.gaea</groupId>
<artifactId>template-gaea-business</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.anjiplus.template.gaea</groupId>
<artifactId>template-gaea-common</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.anjiplus.template.gaea</groupId>
<artifactId>template-gaea-generator</artifactId>
<version>${gaea.generator.version}</version>
</dependency>
<dependency> <dependency>
<groupId>com.anji-plus</groupId> <groupId>com.anji-plus</groupId>
<artifactId>spring-boot-gaea</artifactId> <artifactId>spring-boot-gaea</artifactId>
<version>${gaea.version}</version> <version>${gaea.version}</version>
</dependency> </dependency>
<dependency>
<groupId>com.anji-plus</groupId>
<artifactId>spring-boot-starter-gaea-security</artifactId>
<version>${gaea.security.version}</version>
</dependency>
<dependency>
<groupId>com.anji-plus</groupId>
<artifactId>spring-boot-starter-gaea-export</artifactId>
<version>${gaea.export.version}</version>
</dependency>
<dependency>
<groupId>com.anji-plus</groupId>
<artifactId>spring-boot-starter-gaea-log</artifactId>
<version>${gaea.log.version}</version>
</dependency>
</dependencies> </dependencies>
</dependencyManagement> </dependencyManagement>
@ -90,15 +47,4 @@
</activation> </activation>
</profile> </profile>
</profiles> </profiles>
<distributionManagement>
<repository>
<id>nexus-releases</id>
<url>http://nexus.anji-plus.com:8081/repository/maven-releases/</url>
</repository>
<snapshotRepository>
<id>nexus-snapshots</id>
<url>http://nexus.anji-plus.com:8081/repository/maven-snapshots/</url>
</snapshotRepository>
</distributionManagement>
</project> </project>

@ -65,14 +65,14 @@
<version>2.10.6</version> <version>2.10.6</version>
</dependency> </dependency>
<dependency> <!-- <dependency>-->
<groupId>com.anji-plus</groupId> <!-- <groupId>com.anji-plus</groupId>-->
<artifactId>spring-boot-starter-gaea-export</artifactId> <!-- <artifactId>spring-boot-starter-gaea-export</artifactId>-->
</dependency> <!-- </dependency>-->
<dependency> <!-- <dependency>-->
<groupId>com.anji-plus</groupId> <!-- <groupId>com.anji-plus</groupId>-->
<artifactId>spring-boot-starter-gaea-log</artifactId> <!-- <artifactId>spring-boot-starter-gaea-log</artifactId>-->
</dependency> <!-- </dependency>-->
<dependency> <dependency>
<groupId>org.flywaydb</groupId> <groupId>org.flywaydb</groupId>
@ -81,18 +81,6 @@
</dependency> </dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.5.2</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpcore</artifactId>
<version>4.4.5</version>
</dependency>
<dependency> <dependency>
<groupId>com.alibaba</groupId> <groupId>com.alibaba</groupId>
<artifactId>druid</artifactId> <artifactId>druid</artifactId>

@ -1,15 +1,15 @@
package com.anjiplus.template.gaea.business.modules.file.service.impl; package com.anjiplus.template.gaea.business.modules.file.service.impl;
import com.alibaba.excel.util.FileUtils;
import com.anji.plus.gaea.constant.BaseOperationEnum; import com.anji.plus.gaea.constant.BaseOperationEnum;
import com.anji.plus.gaea.curd.mapper.GaeaBaseMapper; import com.anji.plus.gaea.curd.mapper.GaeaBaseMapper;
import com.anji.plus.gaea.exception.BusinessException; import com.anji.plus.gaea.exception.BusinessException;
import com.anji.plus.gaea.exception.BusinessExceptionBuilder; import com.anji.plus.gaea.exception.BusinessExceptionBuilder;
import com.anjiplus.template.gaea.business.modules.file.util.StringPatternUtil;
import com.anjiplus.template.gaea.business.code.ResponseCode; import com.anjiplus.template.gaea.business.code.ResponseCode;
import com.anjiplus.template.gaea.business.modules.file.dao.GaeaFileMapper; import com.anjiplus.template.gaea.business.modules.file.dao.GaeaFileMapper;
import com.anjiplus.template.gaea.business.modules.file.entity.GaeaFile; import com.anjiplus.template.gaea.business.modules.file.entity.GaeaFile;
import com.anjiplus.template.gaea.business.modules.file.service.GaeaFileService; import com.anjiplus.template.gaea.business.modules.file.service.GaeaFileService;
import com.anjiplus.template.gaea.business.modules.file.util.FileUtils;
import com.anjiplus.template.gaea.business.modules.file.util.StringPatternUtil;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers; import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;

@ -0,0 +1,31 @@
package com.anjiplus.template.gaea.business.modules.file.util;
import lombok.extern.slf4j.Slf4j;
import java.io.*;
/**
* Created by raodeming on 2021/7/8.
*/
@Slf4j
public class FileUtils {
public static byte[] readFileToByteArray(File file) {
byte[] buffer = null;
try {
FileInputStream fis = new FileInputStream(file);
ByteArrayOutputStream bos = new ByteArrayOutputStream();
byte[] b = new byte[1024];
int n;
while ((n = fis.read(b)) != -1) {
bos.write(b, 0, n);
}
fis.close();
bos.close();
buffer = bos.toByteArray();
} catch (IOException e) {
log.error("{}", e);
}
return buffer;
}
}

@ -46,6 +46,8 @@ spring:
user: ${spring.datasource.username} user: ${spring.datasource.username}
password: ${spring.datasource.password} password: ${spring.datasource.password}
placeholder-replacement: false placeholder-replacement: false
init-sqls:
- CREATE DATABASE IF NOT EXISTS `aj_report` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
generator: generator:
enabled: true enabled: true
workspace: /workspace/gaea workspace: /workspace/gaea

@ -1,9 +1,9 @@
<template> <template>
<div class="index-container"> <div class="index-container">
<div class="left-top"></div> <!-- <div class="left-top"></div>
<div class="left-bottom"></div> <div class="left-bottom"></div>
<div class="right-top"></div> <div class="right-top"></div>
<div class="right-bottom"></div> <div class="right-bottom"></div> -->
<el-row align="middle" justify="center"> <el-row align="middle" justify="center">
<el-col :span="24" :offset="0" class="position"> <el-col :span="24" :offset="0" class="position">
<div class="center"></div> <div class="center"></div>
@ -13,86 +13,96 @@
</template> </template>
<script> <script>
export default { export default {
name: 'index1', name: 'index1',
data() { data() {
return { return {}
}
}, },
components:{}, components: {},
watch: {}, watch: {},
mounted() {}, mounted() {},
methods: { methods: {},
}
} }
</script> </script>
<style rel="stylesheet/scss" lang="scss"> <style rel="stylesheet/scss" lang="scss">
.index-container{ .index-container {
width: 100%; width: 100%;
height:calc(100vh - 50px); height: calc(100vh - 50px);
overflow: hidden; overflow: hidden;
background:#fff; background: #fff;
background: -webkit-linear-gradient(75deg, #3d37b5 , #5bc4ef); /* Safari 5.1 - 6.0 */ background: -webkit-linear-gradient(
background: -o-linear-gradient(75deg, #3d37b5, #5bc4ef); /* Opera 11.1 - 12.0 */ 75deg,
background: -moz-linear-gradient(75deg, #3d37b5, #5bc4ef); /* Firefox 3.6 - 15 */ #e9f0fb,
background: linear-gradient(75deg,#3d37b5, #5bc4ef); #5bc4ef
.position{ ); /* Safari 5.1 - 6.0 */
background: -o-linear-gradient(
75deg,
#e9f0fb,
#5bc4ef
); /* Opera 11.1 - 12.0 */
background: -moz-linear-gradient(
75deg,
#e9f0fb,
#5bc4ef
); /* Firefox 3.6 - 15 */
background: linear-gradient(75deg, #e9f0fb, #e9f0fb);
.position {
padding-left: 10px; padding-left: 10px;
padding-right: 10px; padding-right: 10px;
margin-bottom: 0; margin-bottom: 0;
position: absolute; position: absolute;
top: 67px; top: 67px;
} }
.left-top,.left-bottom,.right-top,.right-bottom{ .left-top,
position:absolute; .left-bottom,
.right-top,
.right-bottom {
position: absolute;
} }
.left-top{ .left-top {
left: 0; left: 0;
top: 0; top: 0;
z-index: 1; z-index: 1;
width: 223px; width: 223px;
height: 291px; height: 291px;
background: url("../../../static/index-top-left.png"); background: url('../../../static/index-top-left.png');
background-size: 100% 100%; background-size: 100% 100%;
} }
.left-bottom{ .left-bottom {
left: 0; left: 0;
bottom: 0; bottom: 0;
z-index: 2; z-index: 2;
width: 461px; width: 461px;
height: 236px; height: 236px;
background: url("../../../static/index-bottom-left.png"); background: url('../../../static/index-bottom-left.png');
background-size: 100% 100%; background-size: 100% 100%;
} }
.right-top{ .right-top {
right: 0; right: 0;
top: 0; top: 0;
z-index: 31; z-index: 31;
width: 346px; width: 346px;
height: 309px; height: 309px;
background: url("../../../static/index-top-right.png"); background: url('../../../static/index-top-right.png');
background-size: 100% 100%; background-size: 100% 100%;
} }
.right-bottom{ .right-bottom {
right: 0; right: 0;
bottom: 0; bottom: 0;
z-index: 4; z-index: 4;
width: 463px; width: 463px;
height: 320px; height: 320px;
background: url("../../../static/index-bottom-right.png"); background: url('../../../static/index-bottom-right.png');
background-size: 100% 100%; background-size: 100% 100%;
} }
.center{ .center {
width: 100%; width: 100%;
height: 93vh; height: 93vh;
bottom: 0; bottom: 0;
position:relative; position: relative;
max-width: 1893px; max-width: 1893px;
background: url("../../../static/index-center.png"); background: url('../../../static/index-center.png');
background-size: 100% 100%; background-size: 100% 100%;
} }
} }

@ -190,38 +190,6 @@ export default {
this.options = Object.assign({}, this.options); this.options = Object.assign({}, this.options);
}, },
// //
setOptionsData () {
const optionsSetup = this.optionsSetup;
console.log(optionsSetup);
const optionsData = this.optionsData; // or
console.log(optionsData);
optionsData.dataType == "staticData"
? this.staticDataFn(optionsData.staticData, optionsSetup)
: this.dynamicDataFn(optionsData.dynamicData, optionsSetup);
},
//
staticDataFn (val, optionsSetup) {
const staticData = JSON.parse(val);
// x
if (optionsSetup.verticalShow) {
this.options.xAxis.data = [];
this.options.yAxis.data = staticData.categories;
this.options.xAxis.type = "value";
this.options.yAxis.type = "category";
} else {
this.options.xAxis.data = staticData.categories;
this.options.yAxis.data = [];
this.options.xAxis.type = "category";
this.options.yAxis.type = "value";
}
// series
const series = this.options.series;
for (const i in series) {
if (series[i].type == "bar") {
series[i].data = staticData.series[0].data;
}
}
},
setOptionsData() { setOptionsData() {
const optionsData = this.optionsData; // or const optionsData = this.optionsData; // or
optionsData.dataType == "staticData" optionsData.dataType == "staticData"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 415 KiB

After

Width:  |  Height:  |  Size: 862 KiB

Loading…
Cancel
Save