feat:导入时未上传文件添加提示

This commit is contained in:
wangwenrui
2020-09-21 18:08:35 +08:00
parent ff02eb0667
commit d0905e6073
3 changed files with 6 additions and 2 deletions

View File

@@ -162,6 +162,8 @@
this.$message.error(response.msg); this.$message.error(response.msg);
} }
}) })
}else{
this.$message.error(this.$t('tip.noImportFile'));
} }
}, },
exportMenuHandler(show) { exportMenuHandler(show) {

View File

@@ -381,7 +381,8 @@ const cn = {
pressEnterToAdd: "回车添加新行", pressEnterToAdd: "回车添加新行",
resetSuccess: "重置成功", resetSuccess: "重置成功",
syncSuccess:'同步成功', syncSuccess:'同步成功',
syncTip:"此操作可能造成原有数据或图表被覆盖,确认同步吗?" syncTip:"此操作可能造成原有数据或图表被覆盖,确认同步吗?",
noImportFile:'没有可导入的文件'
}, },
asset: { asset: {
asset: "资产", asset: "资产",

View File

@@ -381,10 +381,11 @@ const en = {
testSuccess:'Test success', testSuccess:'Test success',
downloadSuccess : 'Download success', downloadSuccess : 'Download success',
uploadSuccess: 'Upload success', uploadSuccess: 'Upload success',
pressEnterToAdd: 'Press enter to add new此操作可能造成原有数据或图表被覆盖,确认同步吗? line', pressEnterToAdd: 'Press enter to add new line',
resetSuccess:'Reset success', resetSuccess:'Reset success',
syncSuccess:'Synchronize success', syncSuccess:'Synchronize success',
syncTip:'This operation may cause the original data or chart to be overwritten. Are you sure to synchronize?', syncTip:'This operation may cause the original data or chart to be overwritten. Are you sure to synchronize?',
noImportFile:'No import file found'
}, },
asset:{ asset:{
asset: 'Asset', asset: 'Asset',