diff --git a/src/assets/echarts-macarons.js b/src/assets/echarts-macarons.js new file mode 100644 index 00000000..0678ef83 --- /dev/null +++ b/src/assets/echarts-macarons.js @@ -0,0 +1,199 @@ +/* eslint-disable */ +(function (root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['exports', 'echarts'], factory); + } else if (typeof exports === 'object' && typeof exports.nodeName !== 'string') { + // CommonJS + factory(exports, require('echarts')); + } else { + // Browser globals + factory({}, root.echarts); + } +}(this, function (exports, echarts) { + var log = function (msg) { + if (typeof console !== 'undefined') { + console && console.error && console.error(msg); + } + }; + if (!echarts) { + log('ECharts is not Loaded'); + return; + } + + var colorPalette = [ + '#2ec7c9','#b6a2de','#5ab1ef','#ffb980','#d87a80', + '#8d98b3','#e5cf0d','#97b552','#95706d','#dc69aa', + '#07a2a4','#9a7fd1','#588dd5','#f5994e','#c05050', + '#59678c','#c9ab00','#7eb00a','#6f5553','#c14089' + ]; + + + var theme = { + color: colorPalette, + + title: { + textStyle: { + fontWeight: 'normal', + color: '#008acd' + } + }, + + visualMap: { + itemWidth: 15, + color: ['#5ab1ef','#e0ffff'] + }, + + toolbox: { + iconStyle: { + normal: { + borderColor: colorPalette[0] + } + } + }, + + tooltip: { + backgroundColor: 'rgba(50,50,50,0.5)', + axisPointer : { + type : 'line', + lineStyle : { + color: '#008acd' + }, + crossStyle: { + color: '#008acd' + }, + shadowStyle : { + color: 'rgba(200,200,200,0.2)' + } + } + }, + + dataZoom: { + dataBackgroundColor: '#efefff', + fillerColor: 'rgba(182,162,222,0.2)', + handleColor: '#008acd' + }, + + grid: { + borderColor: '#eee' + }, + + categoryAxis: { + axisLine: { + lineStyle: { + color: '#008acd' + } + }, + splitLine: { + lineStyle: { + color: ['#eee'] + } + } + }, + + valueAxis: { + axisLine: { + lineStyle: { + color: '#008acd' + } + }, + splitArea : { + show : true, + areaStyle : { + color: ['rgba(250,250,250,0.1)','rgba(200,200,200,0.1)'] + } + }, + splitLine: { + lineStyle: { + color: ['#eee'] + } + } + }, + + timeline : { + lineStyle : { + color : '#008acd' + }, + controlStyle : { + normal : { color : '#008acd'}, + emphasis : { color : '#008acd'} + }, + symbol : 'emptyCircle', + symbolSize : 3 + }, + + line: { + smooth : true, + symbol: 'emptyCircle', + symbolSize: 3 + }, + + candlestick: { + itemStyle: { + normal: { + color: '#d87a80', + color0: '#2ec7c9', + lineStyle: { + color: '#d87a80', + color0: '#2ec7c9' + } + } + } + }, + + scatter: { + symbol: 'circle', + symbolSize: 4 + }, + + map: { + label: { + normal: { + textStyle: { + color: '#d87a80' + } + } + }, + itemStyle: { + normal: { + borderColor: '#eee', + areaColor: '#ddd' + }, + emphasis: { + areaColor: '#fe994e' + } + } + }, + + graph: { + color: colorPalette + }, + + gauge : { + axisLine: { + lineStyle: { + color: [[0.2, '#2ec7c9'],[0.8, '#5ab1ef'],[1, '#d87a80']], + width: 10 + } + }, + axisTick: { + splitNumber: 10, + length :15, + lineStyle: { + color: 'auto' + } + }, + splitLine: { + length :22, + lineStyle: { + color: 'auto' + } + }, + pointer : { + width : 5 + } + } + }; + + echarts.registerTheme('macarons', theme); +})); diff --git a/src/components/Charts/barPercent.vue b/src/components/Charts/barPercent.vue deleted file mode 100644 index e82422fe..00000000 --- a/src/components/Charts/barPercent.vue +++ /dev/null @@ -1,104 +0,0 @@ - - diff --git a/src/components/Charts/line.vue b/src/components/Charts/line.vue deleted file mode 100644 index ab416c76..00000000 --- a/src/components/Charts/line.vue +++ /dev/null @@ -1,146 +0,0 @@ - - diff --git a/src/styles/index.scss b/src/styles/index.scss index 5bf93a89..79fda7e9 100644 --- a/src/styles/index.scss +++ b/src/styles/index.scss @@ -96,6 +96,7 @@ code { opacity: 0; } + //main-container全局样式 .app-container { padding: 20px; @@ -112,6 +113,9 @@ code { height: 100%!important; } +.text-center{ + text-align: center +} .wscn-icon { width: 1em; height: 1em; diff --git a/src/views/dashboard/editor/articlesChart.vue b/src/views/dashboard/editor/articlesChart.vue deleted file mode 100644 index a62e1962..00000000 --- a/src/views/dashboard/editor/articlesChart.vue +++ /dev/null @@ -1,34 +0,0 @@ - - - diff --git a/src/views/dashboard/editor/barChart.vue b/src/views/dashboard/editor/barChart.vue new file mode 100644 index 00000000..dcbb357a --- /dev/null +++ b/src/views/dashboard/editor/barChart.vue @@ -0,0 +1,88 @@ + + diff --git a/src/views/dashboard/editor/index.vue b/src/views/dashboard/editor/index.vue index 452070ff..9c05c97e 100644 --- a/src/views/dashboard/editor/index.vue +++ b/src/views/dashboard/editor/index.vue @@ -1,55 +1,91 @@ diff --git a/src/views/dashboard/editor/lineChart.vue b/src/views/dashboard/editor/lineChart.vue new file mode 100644 index 00000000..7ebd72b0 --- /dev/null +++ b/src/views/dashboard/editor/lineChart.vue @@ -0,0 +1,93 @@ + + diff --git a/src/views/dashboard/editor/monthKpi.vue b/src/views/dashboard/editor/monthKpi.vue deleted file mode 100644 index 7fdd7501..00000000 --- a/src/views/dashboard/editor/monthKpi.vue +++ /dev/null @@ -1,61 +0,0 @@ - - - - diff --git a/src/views/dashboard/editor/pieChart.vue b/src/views/dashboard/editor/pieChart.vue new file mode 100644 index 00000000..2b02a5d7 --- /dev/null +++ b/src/views/dashboard/editor/pieChart.vue @@ -0,0 +1,76 @@ + +