From 00bce0ee7ee18f6e0658014bdd157d25abef5067 Mon Sep 17 00:00:00 2001 From: junjie Date: Thu, 11 Mar 2021 15:06:13 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E8=A7=86=E5=9B=BE):=20echarts=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E5=B0=81=E8=A3=85=EF=BC=8C=E5=88=9D=E6=AD=A5=E5=AE=9E?= =?UTF-8?q?=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/chart/chart/chart.js | 21 +++++- .../views/chart/components/ChartComponent.vue | 65 +++++++++++++++++++ .../src/views/chart/components/QuotaItem.vue | 4 +- frontend/src/views/chart/view/ChartEdit.vue | 62 +++--------------- 4 files changed, 95 insertions(+), 57 deletions(-) create mode 100644 frontend/src/views/chart/components/ChartComponent.vue diff --git a/frontend/src/views/chart/chart/chart.js b/frontend/src/views/chart/chart/chart.js index 4f61c83d7f..7392c1b3d2 100644 --- a/frontend/src/views/chart/chart/chart.js +++ b/frontend/src/views/chart/chart/chart.js @@ -15,6 +15,23 @@ export const BASE_BAR = { series: [] } -export default { - BASE_BAR +export const BASE_LINE = { + title: { + text: '' + }, + tooltip: {}, + legend: { + data: [] + }, + xAxis: { + data: [] + }, + yAxis: { + type: 'value' + }, + series: [] +} + +export default { + BASE_BAR, BASE_LINE } diff --git a/frontend/src/views/chart/components/ChartComponent.vue b/frontend/src/views/chart/components/ChartComponent.vue new file mode 100644 index 0000000000..b4afd1e9a0 --- /dev/null +++ b/frontend/src/views/chart/components/ChartComponent.vue @@ -0,0 +1,65 @@ + + + + + diff --git a/frontend/src/views/chart/components/QuotaItem.vue b/frontend/src/views/chart/components/QuotaItem.vue index 3c4ece1fa5..3e0c405781 100644 --- a/frontend/src/views/chart/components/QuotaItem.vue +++ b/frontend/src/views/chart/components/QuotaItem.vue @@ -5,7 +5,7 @@ - {{ item.name }}({{ $t('chart.'+item.summary) }}) + {{ item.name }}{{ $t('chart.'+item.summary) }} @@ -50,7 +50,7 @@ export default { }, methods: { summary(param) { - console.log(param) + // console.log(param) this.item.summary = param.type this.$emit('onQuotaSummaryChange', this.item) }, diff --git a/frontend/src/views/chart/view/ChartEdit.vue b/frontend/src/views/chart/view/ChartEdit.vue index 4281df8105..7aa484402d 100644 --- a/frontend/src/views/chart/view/ChartEdit.vue +++ b/frontend/src/views/chart/view/ChartEdit.vue @@ -31,7 +31,7 @@ @start="start1" > - {{ item.name }} + {{ item.name }} @@ -47,7 +47,7 @@ @start="start1" > - {{ item.name }} + {{ item.name }} @@ -131,9 +131,7 @@ -
-
-
+ @@ -143,13 +141,13 @@