File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 397397 "low_version" : " Compatible with lower versions" ,
398398 "ssl" : " Enable SSL"
399399 },
400- "sync_fields" : " Sync Fields"
400+ "sync_fields" : " Sync Fields" ,
401+ "sync_fields_success" : " Sync fields successfully" ,
402+ "sync_fields_failed" : " Sync fields failed"
401403 },
402404 "datasource" : {
403405 "recommended_question" : " Recommended Question" ,
Original file line number Diff line number Diff line change 397397 "low_version" : " 낮은 버전 호환" ,
398398 "ssl" : " SSL 활성화"
399399 },
400- "sync_fields" : " 동기화된 테이블 구조"
400+ "sync_fields" : " 동기화된 테이블 구조" ,
401+ "sync_fields_success" : " 테이블 구조 동기화 성공" ,
402+ "sync_fields_failed" : " 테이블 구조 동기화 실패"
401403 },
402404 "datasource" : {
403405 "recommended_question" : " 추천 질문" ,
Original file line number Diff line number Diff line change 397397 "low_version" : " 兼容低版本" ,
398398 "ssl" : " 启用 SSL"
399399 },
400- "sync_fields" : " 同步表结构"
400+ "sync_fields" : " 同步表结构" ,
401+ "sync_fields_success" : " 同步表结构成功" ,
402+ "sync_fields_failed" : " 同步表结构失败"
401403 },
402404 "datasource" : {
403405 "recommended_question" : " 推荐问题" ,
Original file line number Diff line number Diff line change 397397 "low_version" : " 相容低版本" ,
398398 "ssl" : " 啟用 SSL"
399399 },
400- "sync_fields" : " 同步表結構"
400+ "sync_fields" : " 同步表結構" ,
401+ "sync_fields_success" : " 同步表結構成功" ,
402+ "sync_fields_failed" : " 同步表結構失敗"
401403 },
402404 "datasource" : {
403405 "recommended_question" : " 推薦問題" ,
Original file line number Diff line number Diff line change @@ -262,10 +262,12 @@ const syncFields = () => {
262262 .syncFields (currentTable .value .id )
263263 .then (() => {
264264 btnSelectClick (' d' )
265+ ElMessage .success (t (' ds.sync_fields_success' ))
265266 loading .value = false
266267 })
267268 .catch (() => {
268269 loading .value = false
270+ ElMessage .warning (t (' ds.sync_fields_failed' ))
269271 })
270272}
271273
@@ -546,6 +548,7 @@ const btnSelectClick = (val: any) => {
546548 <el-button
547549 v-if =" ds.type !== 'excel'"
548550 :icon =" Refresh"
551+ secondary
549552 style =" margin-left : 12px "
550553 @click =" syncFields()"
551554 >
You can’t perform that action at this time.
0 commit comments