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 @@