Commit 1225032f by yuwei

项目初始化

parent 215d16b3
...@@ -4,7 +4,7 @@ import org.springframework.boot.SpringApplication; ...@@ -4,7 +4,7 @@ import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication; import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.openfeign.EnableFeignClients; import org.springframework.cloud.openfeign.EnableFeignClients;
@EnableFeignClients(basePackages = {"cn.datax.service.system.api.feign"}) @EnableFeignClients(basePackages = {"cn.datax.service.system.api.feign", "cn.datax.service.data.metadata.api.feign"})
@SpringCloudApplication @SpringCloudApplication
public class DataxConsoleApplication { public class DataxConsoleApplication {
......
...@@ -106,6 +106,9 @@ export default { ...@@ -106,6 +106,9 @@ export default {
created () { created () {
this.getDataSourceList() this.getDataSourceList()
}, },
mounted () {
this.chart = echarts.init(document.getElementById('chart'))
},
methods: { methods: {
getDataSourceList () { getDataSourceList () {
listDataSource().then(response => { listDataSource().then(response => {
...@@ -206,15 +209,18 @@ export default { ...@@ -206,15 +209,18 @@ export default {
r: 0.5, r: 0.5,
colorStops: [{ colorStops: [{
offset: 0, offset: 0,
color: color.c1 // 0% 处的颜色 // 0% 处的颜色
color: color.c1
}, },
{ {
offset: 0.4, offset: 0.4,
color: color.c1 // 0% 处的颜色 // 0% 处的颜色
color: color.c1
}, },
{ {
offset: 1, offset: 1,
color: color.c2 // 100% 处的颜色 // 100% 处的颜色
color: color.c2
} }
], ],
global: false global: false
...@@ -323,8 +329,10 @@ export default { ...@@ -323,8 +329,10 @@ export default {
}) })
}, },
initChart () { initChart () {
this.chart = echarts.init(document.getElementById('chart'))
this.chart.showLoading() this.chart.showLoading()
this.chartList = []
this.chartLinks = []
this.chartLegend = []
// 获取表名 // 获取表名
let categories = this.treeData[0].children.map(item => { let categories = this.treeData[0].children.map(item => {
return { return {
...@@ -352,7 +360,6 @@ export default { ...@@ -352,7 +360,6 @@ export default {
color: '#fff', color: '#fff',
fontSize: 10 fontSize: 10
}, },
// inactiveColor: "#fff",
icon: 'circle', icon: 'circle',
type: 'scroll', type: 'scroll',
orient: 'vertical', orient: 'vertical',
...@@ -360,8 +367,6 @@ export default { ...@@ -360,8 +367,6 @@ export default {
right: 20, right: 20,
top: 20, top: 20,
bottom: 80, bottom: 80,
// itemWidth: 12,
// itemHeight: 12,
pageIconColor: '#00f6ff', pageIconColor: '#00f6ff',
pageIconInactiveColor: '#fff', pageIconInactiveColor: '#fff',
pageIconSize: 12, pageIconSize: 12,
...@@ -370,13 +375,6 @@ export default { ...@@ -370,13 +375,6 @@ export default {
fontSize: 12 fontSize: 12
} }
}, },
tooltip: {
trigger: 'item',
triggerOn: 'click',
formatter (params) {
return params.data.label
}
},
selectedMode: 'false', selectedMode: 'false',
bottom: 20, bottom: 20,
left: 0, left: 0,
...@@ -385,7 +383,7 @@ export default { ...@@ -385,7 +383,7 @@ export default {
animationDuration: 1500, animationDuration: 1500,
animationEasingUpdate: 'quinticInOut', animationEasingUpdate: 'quinticInOut',
series: [{ series: [{
name: '知识图谱', name: '数据地图',
type: 'graph', type: 'graph',
hoverAnimation: true, hoverAnimation: true,
layout: 'force', layout: 'force',
...@@ -403,8 +401,10 @@ export default { ...@@ -403,8 +401,10 @@ export default {
focusNodeAdjacency: true, focusNodeAdjacency: true,
scaleLimit: { scaleLimit: {
// 所属组件的z分层,z值小的图形会被z值大的图形覆盖 // 所属组件的z分层,z值小的图形会被z值大的图形覆盖
min: 0.5, // 最小的缩放值 // 最小的缩放值
max: 9 // 最大的缩放值 min: 0.5,
// 最大的缩放值
max: 9
}, },
edgeSymbol: ['circle', 'arrow'], edgeSymbol: ['circle', 'arrow'],
edgeSymbolSize: [4, 8], edgeSymbolSize: [4, 8],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment