From 120dd256aae27d3e08ea201aa452fea7e1f5566c Mon Sep 17 00:00:00 2001 From: junjie Date: Tue, 18 May 2021 12:02:04 +0800 Subject: [PATCH] feat(frontend):fix --- frontend/src/lang/en.js | 3 ++- frontend/src/lang/tw.js | 3 ++- frontend/src/lang/zh.js | 3 ++- frontend/src/views/dataset/add/AddExcel.vue | 5 +++++ 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/frontend/src/lang/en.js b/frontend/src/lang/en.js index ef55d185a5..60813818ca 100644 --- a/frontend/src/lang/en.js +++ b/frontend/src/lang/en.js @@ -770,7 +770,8 @@ export default { edit_custom_table: 'Edit self help dataset', edit_field: 'Edit Field', preview_100_data: 'Show 100 lines data', - invalid_table_check: 'Please sync data first.' + invalid_table_check: 'Please sync data first.', + parse_error: 'Parse Error' }, datasource: { datasource: 'Data Source', diff --git a/frontend/src/lang/tw.js b/frontend/src/lang/tw.js index 89d4de7d20..70bb69b699 100644 --- a/frontend/src/lang/tw.js +++ b/frontend/src/lang/tw.js @@ -770,7 +770,8 @@ export default { edit_custom_table: '編輯自助數據集', edit_field: '編輯自斷', preview_100_data: '顯示前100行數據', - invalid_table_check: '非直連數據集請先完成數據同步' + invalid_table_check: '非直連數據集請先完成數據同步', + parse_error: '解析錯誤' }, datasource: { datasource: '數據源', diff --git a/frontend/src/lang/zh.js b/frontend/src/lang/zh.js index 2a7f143168..05cb0a7c3e 100644 --- a/frontend/src/lang/zh.js +++ b/frontend/src/lang/zh.js @@ -770,7 +770,8 @@ export default { edit_custom_table: '编辑自助数据集', edit_field: '编辑字段', preview_100_data: '显示前100行数据', - invalid_table_check: '非直连数据集请先完成数据同步' + invalid_table_check: '非直连数据集请先完成数据同步', + parse_error: '解析错误' }, datasource: { datasource: '数据源', diff --git a/frontend/src/views/dataset/add/AddExcel.vue b/frontend/src/views/dataset/add/AddExcel.vue index bb9799fd27..0a3cbb8f80 100644 --- a/frontend/src/views/dataset/add/AddExcel.vue +++ b/frontend/src/views/dataset/add/AddExcel.vue @@ -132,6 +132,11 @@ export default { }, uploadFail(response, file, fileList) { this.uploading = false + this.$message({ + type: 'error', + message: this.$t('dataset.parse_error'), + showClose: true + }) }, uploadSuccess(response, file, fileList) { // console.log(response)