diff --git a/frontend/src/lang/en.js b/frontend/src/lang/en.js index a6b3f5b8b8..5f50df38dc 100644 --- a/frontend/src/lang/en.js +++ b/frontend/src/lang/en.js @@ -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 field,please confirm' + confirm_sync_field_tips: 'Sync field maybe change edit field,please confirm', + sync_success: 'Success', + sync_success_1: 'Success,please sync data again' }, datasource: { datasource: 'Data Source', diff --git a/frontend/src/lang/tw.js b/frontend/src/lang/tw.js index 2f998dba5e..2500111b73 100644 --- a/frontend/src/lang/tw.js +++ b/frontend/src/lang/tw.js @@ -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: '數據源', diff --git a/frontend/src/lang/zh.js b/frontend/src/lang/zh.js index b4fba80231..eafbcbcc02 100644 --- a/frontend/src/lang/zh.js +++ b/frontend/src/lang/zh.js @@ -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: '数据源', diff --git a/frontend/src/views/dataset/data/FieldEdit.vue b/frontend/src/views/dataset/data/FieldEdit.vue index 4f838e44a4..9ce0272696 100644 --- a/frontend/src/views/dataset/data/FieldEdit.vue +++ b/frontend/src/views/dataset/data/FieldEdit.vue @@ -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(() => {