Merge branch 'master' of github.com:gcpaas/DataRoom

main
liu.tao3 2 years ago
commit 443cd017c4

@ -6,7 +6,7 @@
<parent> <parent>
<groupId>com.gccloud</groupId> <groupId>com.gccloud</groupId>
<artifactId>dataroom</artifactId> <artifactId>dataroom</artifactId>
<version>1.0.1.2023081101.Alpha</version> <version>1.0.1.2023083001.Alpha</version>
</parent> </parent>
<artifactId>dataroom-core</artifactId> <artifactId>dataroom-core</artifactId>

@ -6,7 +6,7 @@
<parent> <parent>
<groupId>com.gccloud</groupId> <groupId>com.gccloud</groupId>
<artifactId>dataroom</artifactId> <artifactId>dataroom</artifactId>
<version>1.0.1.2023081101.Alpha</version> <version>1.0.1.2023083001.Alpha</version>
</parent> </parent>
<artifactId>dataroom-server</artifactId> <artifactId>dataroom-server</artifactId>
@ -29,7 +29,7 @@
<dependency> <dependency>
<groupId>com.gccloud</groupId> <groupId>com.gccloud</groupId>
<artifactId>dataroom-core</artifactId> <artifactId>dataroom-core</artifactId>
<version>1.0.1.2023081101.Alpha</version> <version>1.0.1.2023083001.Alpha</version>
</dependency> </dependency>
<dependency> <dependency>

@ -12,7 +12,7 @@
<groupId>com.gccloud</groupId> <groupId>com.gccloud</groupId>
<artifactId>dataroom</artifactId> <artifactId>dataroom</artifactId>
<version>1.0.1.2023081101.Alpha</version> <version>1.0.1.2023083001.Alpha</version>
<packaging>pom</packaging> <packaging>pom</packaging>
<description>基于G2Plot、Echarts的大屏设计服务端具备设计、预览能力支持MySQL、Oracle、PostgreSQL、Groovy等数据集接入 <description>基于G2Plot、Echarts的大屏设计服务端具备设计、预览能力支持MySQL、Oracle、PostgreSQL、Groovy等数据集接入
@ -60,7 +60,7 @@
<clickhouse.version>0.3.2</clickhouse.version> <clickhouse.version>0.3.2</clickhouse.version>
<commons-io.version>2.2</commons-io.version> <commons-io.version>2.2</commons-io.version>
<okhttp3.version>4.9.1</okhttp3.version> <okhttp3.version>4.9.1</okhttp3.version>
<dataset.core.version>1.0.1.2023082801.Alpha</dataset.core.version> <dataset.core.version>1.0.1.2023083001.Alpha</dataset.core.version>
</properties> </properties>
<dependencies> <dependencies>

@ -12,7 +12,7 @@
<img alt="Company" src="https://img.shields.io/badge/Author-科大国创云网科技有限公司-blue.svg"> <img alt="Company" src="https://img.shields.io/badge/Author-科大国创云网科技有限公司-blue.svg">
</p> </p>
🔥DataRoom是一款基于SpringBoot、MyBatisPlus、ElementUI、G2Plot、Echarts等技术栈的大屏设计器具备大屏设计、预览能力支持MySQL、Oracle、PostgreSQL、JSON、JS、HTTP、Groovy等数据集接入使用简单完全免费代码开源。 🔥DataRoom是一款基于SpringBoot、MyBatisPlus、ElementUI、G2Plot、Echarts等技术栈的大屏设计器具备大屏设计、预览能力支持MySQL、Oracle、PostgreSQL、MSSQL、JSON、JS、HTTP、Groovy等数据集接入使用简单完全免费代码开源。
## 效果图 ## 效果图

@ -1,6 +1,6 @@
{ {
"name": "@gcpaas/data-room-ui", "name": "@gcpaas/data-room-ui",
"version": "1.0.1-2023082902-Alpha", "version": "1.0.1-2023083002-Alpha",
"description": "自定义大屏", "description": "自定义大屏",
"author": "gcpaas", "author": "gcpaas",
"license": "MIT", "license": "MIT",

@ -224,7 +224,6 @@ export default {
speechBroadcast (text) { speechBroadcast (text) {
if (this.speech.hasBrowserSupport()) { if (this.speech.hasBrowserSupport()) {
this.speech.setLanguage('zh-CN') this.speech.setLanguage('zh-CN')
this.speech.pitch = 1
this.speech.init() this.speech.init()
this.speech.speak({ text: text }) this.speech.speak({ text: text })
} else { } else {

@ -565,7 +565,7 @@
:source-field-list="sourceFieldList" :source-field-list="sourceFieldList"
/> />
<ComponentRelation <ComponentRelation
v-if="!['carousel','gauge','liquid'].includes(config.type)" v-if="!['carousel','gauge','liquid','marquee'].includes(config.type)"
:config="config" :config="config"
:source-field-list="sourceFieldList" :source-field-list="sourceFieldList"
/> />

@ -319,7 +319,9 @@ export default {
group: randomStr, group: randomStr,
code: randomStr + chart.code code: randomStr + chart.code
} }
this.$refs.Render.addChart(newChart, { x: chart.x, y: chart.y }, true) // theme
const isComponent = true
this.$refs.Render.addChart(newChart, { x: chart.x, y: chart.y }, isComponent)
this.updateRightVisiable(false) this.updateRightVisiable(false)
}) })
}) })

@ -306,7 +306,7 @@ export default {
this.hLine = hLine this.hLine = hLine
}, },
// //
addChart (chart, position) { addChart (chart, position, isComponent) {
const { left, top } = this.$el.getBoundingClientRect() const { left, top } = this.$el.getBoundingClientRect()
const _chart = !chart.code ? JSON.parse(chart) : chart const _chart = !chart.code ? JSON.parse(chart) : chart
let option = _chart.option let option = _chart.option
@ -330,12 +330,12 @@ export default {
option option
} }
config.key = config.code config.key = config.code
// TODO: // isComponent = false theme
// g2 // isComponent = true
// if (['customComponent'].includes(_chart.type)) { if (!isComponent) {
config.theme = settingToTheme(config, 'dark') config.theme = settingToTheme(config, 'dark')
config.theme = settingToTheme(config, 'light') config.theme = settingToTheme(config, 'light')
// } }
this.addItem(config) this.addItem(config)
}, },
addSourceChart (chart, position) { addSourceChart (chart, position) {

Loading…
Cancel
Save