feat(frontend):fix

This commit is contained in:
junjie 2021-05-18 12:02:04 +08:00
parent 893d5c68e6
commit 120dd256aa
4 changed files with 11 additions and 3 deletions

View File

@ -770,7 +770,8 @@ export default {
edit_custom_table: 'Edit self help dataset', edit_custom_table: 'Edit self help dataset',
edit_field: 'Edit Field', edit_field: 'Edit Field',
preview_100_data: 'Show 100 lines data', 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: {
datasource: 'Data Source', datasource: 'Data Source',

View File

@ -770,7 +770,8 @@ export default {
edit_custom_table: '編輯自助數據集', edit_custom_table: '編輯自助數據集',
edit_field: '編輯自斷', edit_field: '編輯自斷',
preview_100_data: '顯示前100行數據', preview_100_data: '顯示前100行數據',
invalid_table_check: '非直連數據集請先完成數據同步' invalid_table_check: '非直連數據集請先完成數據同步',
parse_error: '解析錯誤'
}, },
datasource: { datasource: {
datasource: '數據源', datasource: '數據源',

View File

@ -770,7 +770,8 @@ export default {
edit_custom_table: '编辑自助数据集', edit_custom_table: '编辑自助数据集',
edit_field: '编辑字段', edit_field: '编辑字段',
preview_100_data: '显示前100行数据', preview_100_data: '显示前100行数据',
invalid_table_check: '非直连数据集请先完成数据同步' invalid_table_check: '非直连数据集请先完成数据同步',
parse_error: '解析错误'
}, },
datasource: { datasource: {
datasource: '数据源', datasource: '数据源',

View File

@ -132,6 +132,11 @@ export default {
}, },
uploadFail(response, file, fileList) { uploadFail(response, file, fileList) {
this.uploading = false this.uploading = false
this.$message({
type: 'error',
message: this.$t('dataset.parse_error'),
showClose: true
})
}, },
uploadSuccess(response, file, fileList) { uploadSuccess(response, file, fileList) {
// console.log(response) // console.log(response)