From d0905e6073ae38ad3cfa87d249aa99192ec91c42 Mon Sep 17 00:00:00 2001 From: wangwenrui Date: Mon, 21 Sep 2020 18:08:35 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=AF=BC=E5=85=A5=E6=97=B6=E6=9C=AA?= =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=96=87=E4=BB=B6=E6=B7=BB=E5=8A=A0=E6=8F=90?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/components/common/exportXLSX.vue | 2 ++ nezha-fronted/src/components/common/language/cn.js | 3 ++- nezha-fronted/src/components/common/language/en.js | 3 ++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/nezha-fronted/src/components/common/exportXLSX.vue b/nezha-fronted/src/components/common/exportXLSX.vue index 319847015..84dea59f3 100644 --- a/nezha-fronted/src/components/common/exportXLSX.vue +++ b/nezha-fronted/src/components/common/exportXLSX.vue @@ -162,6 +162,8 @@ this.$message.error(response.msg); } }) + }else{ + this.$message.error(this.$t('tip.noImportFile')); } }, exportMenuHandler(show) { diff --git a/nezha-fronted/src/components/common/language/cn.js b/nezha-fronted/src/components/common/language/cn.js index 33675d057..3ba228241 100644 --- a/nezha-fronted/src/components/common/language/cn.js +++ b/nezha-fronted/src/components/common/language/cn.js @@ -381,7 +381,8 @@ const cn = { pressEnterToAdd: "回车添加新行", resetSuccess: "重置成功", syncSuccess:'同步成功', - syncTip:"此操作可能造成原有数据或图表被覆盖,确认同步吗?" + syncTip:"此操作可能造成原有数据或图表被覆盖,确认同步吗?", + noImportFile:'没有可导入的文件' }, asset: { asset: "资产", diff --git a/nezha-fronted/src/components/common/language/en.js b/nezha-fronted/src/components/common/language/en.js index a947671a0..5536e04d0 100644 --- a/nezha-fronted/src/components/common/language/en.js +++ b/nezha-fronted/src/components/common/language/en.js @@ -381,10 +381,11 @@ const en = { testSuccess:'Test success', downloadSuccess : 'Download success', uploadSuccess: 'Upload success', - pressEnterToAdd: 'Press enter to add new此操作可能造成原有数据或图表被覆盖,确认同步吗? line', + pressEnterToAdd: 'Press enter to add new line', resetSuccess:'Reset success', syncSuccess:'Synchronize success', 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',