Merge pull request #1175 from dataease/pr@dev@feat_sync_field

feat(数据集):数据集字段管理页面,增加同步字段功能
This commit is contained in:
XiaJunjie2020 2021-11-11 16:39:14 +08:00 committed by GitHub
commit 742c7f65c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 24 additions and 3 deletions

View File

@ -1148,7 +1148,9 @@ export default {
excel_info_3: '3、The file size shall not exceed 500m。',
sync_field: 'Sync Field',
confirm_sync_field: 'Confirm Sync',
confirm_sync_field_tips: 'Sync field maybe change edit fieldplease confirm'
confirm_sync_field_tips: 'Sync field maybe change edit fieldplease confirm',
sync_success: 'Success',
sync_success_1: 'Successplease sync data again'
},
datasource: {
datasource: 'Data Source',

View File

@ -1149,7 +1149,9 @@ export default {
excel_info_3: '3、文件不超過500M。',
sync_field: '同步字段',
confirm_sync_field: '確認同步',
confirm_sync_field_tips: '同步字段可能會導致已編輯字段發生變更,請確認'
confirm_sync_field_tips: '同步字段可能會導致已編輯字段發生變更,請確認',
sync_success: '同步成功',
sync_success_1: '同步成功,請對當前數據集重新執行數據同步操作'
},
datasource: {
datasource: '數據源',

View File

@ -1152,7 +1152,9 @@ export default {
excel_info_3: '3、Excel文件大小请确保在500M以内。',
sync_field: '同步字段',
confirm_sync_field: '确认同步',
confirm_sync_field_tips: '同步字段可能会导致已编辑字段发生变更,请确认'
confirm_sync_field_tips: '同步字段可能会导致已编辑字段发生变更,请确认',
sync_success: '同步成功',
sync_success_1: '同步成功,请对当前数据集重新执行数据同步操作'
},
datasource: {
datasource: '数据源',

View File

@ -407,6 +407,21 @@ export default {
setTimeout(() => {
this.isSyncField = false
this.initField()
// tips
let msg = ''
let type = ''
if (response.data.mode === 0) {
msg = this.$t('dataset.sync_success')
type = 'success'
} else {
msg = this.$t('dataset.sync_success_1')
type = 'warning'
}
this.$message({
type: type,
message: msg,
showClose: true
})
}, 500)
})
}).catch(() => {