From 30fc9c5e732be0b013c2df32441cb2a367ef57df Mon Sep 17 00:00:00 2001 From: junjie Date: Fri, 28 May 2021 18:41:07 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E8=A7=86=E5=9B=BE):=E5=88=9B=E5=BB=BA?= =?UTF-8?q?=E8=A7=86=E5=9B=BE=E5=90=8D=E7=A7=B0=E8=A6=86=E7=9B=96bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/chart/group/Group.vue | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/frontend/src/views/chart/group/Group.vue b/frontend/src/views/chart/group/Group.vue index d385121fc8..d425abcd65 100644 --- a/frontend/src/views/chart/group/Group.vue +++ b/frontend/src/views/chart/group/Group.vue @@ -73,8 +73,8 @@ - - + + {{ data.name }} - - + + - + @@ -274,7 +274,8 @@ export default { }, selectTableFlag: false, table: {}, - tables: [] + tables: [], + chartName: '' } }, computed: { @@ -547,7 +548,7 @@ export default { }, createChart() { - if (!this.table.name || this.table.name === '') { + if (!this.chartName || this.chartName === '') { this.$message({ message: this.$t('chart.name_can_not_empty'), type: 'error', @@ -555,7 +556,7 @@ export default { }) return } - if (this.table.name.length > 50) { + if (this.chartName.length > 50) { this.$message({ showClose: true, message: this.$t('commons.char_can_not_more_50'), @@ -564,8 +565,8 @@ export default { return } const view = {} - view.name = this.table.name - view.title = this.table.name + view.name = this.chartName + view.title = this.chartName view.sceneId = this.currGroup.id view.tableId = this.table.id view.type = 'bar'