From 2e8e9cc8e957f7561c1d13065b5f01da8124ff99 Mon Sep 17 00:00:00 2001 From: junjie Date: Mon, 29 Mar 2021 16:50:32 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E8=A7=86=E5=9B=BE):=20=E5=9B=9E=E9=80=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/chart/view/ChartEdit.vue | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/frontend/src/views/chart/view/ChartEdit.vue b/frontend/src/views/chart/view/ChartEdit.vue index 7d472483dd..be5d0f5872 100644 --- a/frontend/src/views/chart/view/ChartEdit.vue +++ b/frontend/src/views/chart/view/ChartEdit.vue @@ -301,16 +301,16 @@ export default { activated() { }, methods: { - initTableData: async function(id) { + initTableData(id) { if (id != null) { - await post('/dataset/table/get/' + id, null).then(response => { + post('/dataset/table/get/' + id, null).then(response => { this.table = response.data this.initTableField(id) }) } }, - initTableField: async function(id) { - await post('/dataset/table/getFieldsFromDE', this.table).then(response => { + initTableField(id) { + post('/dataset/table/getFieldsFromDE', this.table).then(response => { this.dimension = response.data.dimension this.quota = response.data.quota }) @@ -357,9 +357,9 @@ export default { closeEdit() { this.$emit('switchComponent', { name: '' }) }, - getData: async function(id) { + getData(id) { if (id) { - await post('/chart/view/getData/' + id, null).then(response => { + post('/chart/view/getData/' + id, null).then(response => { this.initTableData(response.data.tableId) this.view = JSON.parse(JSON.stringify(response.data)) this.view.xaxis = this.view.xaxis ? JSON.parse(this.view.xaxis) : []