提交 efda0da0 authored 作者: junjie's avatar junjie

feat(数据集):数据集字段管理页面,增加同步字段功能

上级 1915f1f0
...@@ -1148,7 +1148,9 @@ export default { ...@@ -1148,7 +1148,9 @@ export default {
excel_info_3: '3、The file size shall not exceed 500m。', excel_info_3: '3、The file size shall not exceed 500m。',
sync_field: 'Sync Field', sync_field: 'Sync Field',
confirm_sync_field: 'Confirm Sync', 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: {
datasource: 'Data Source', datasource: 'Data Source',
......
...@@ -1149,7 +1149,9 @@ export default { ...@@ -1149,7 +1149,9 @@ export default {
excel_info_3: '3、文件不超過500M。', excel_info_3: '3、文件不超過500M。',
sync_field: '同步字段', sync_field: '同步字段',
confirm_sync_field: '確認同步', confirm_sync_field: '確認同步',
confirm_sync_field_tips: '同步字段可能會導致已編輯字段發生變更,請確認' confirm_sync_field_tips: '同步字段可能會導致已編輯字段發生變更,請確認',
sync_success: '同步成功',
sync_success_1: '同步成功,請對當前數據集重新執行數據同步操作'
}, },
datasource: { datasource: {
datasource: '數據源', datasource: '數據源',
......
...@@ -1152,7 +1152,9 @@ export default { ...@@ -1152,7 +1152,9 @@ export default {
excel_info_3: '3、Excel文件大小请确保在500M以内。', excel_info_3: '3、Excel文件大小请确保在500M以内。',
sync_field: '同步字段', sync_field: '同步字段',
confirm_sync_field: '确认同步', confirm_sync_field: '确认同步',
confirm_sync_field_tips: '同步字段可能会导致已编辑字段发生变更,请确认' confirm_sync_field_tips: '同步字段可能会导致已编辑字段发生变更,请确认',
sync_success: '同步成功',
sync_success_1: '同步成功,请对当前数据集重新执行数据同步操作'
}, },
datasource: { datasource: {
datasource: '数据源', datasource: '数据源',
......
...@@ -407,6 +407,21 @@ export default { ...@@ -407,6 +407,21 @@ export default {
setTimeout(() => { setTimeout(() => {
this.isSyncField = false this.isSyncField = false
this.initField() 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) }, 500)
}) })
}).catch(() => { }).catch(() => {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论