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'