diff --git a/src/i18n/locales/en-US.ts b/src/i18n/locales/en-US.ts index 7f541799..8bea5b93 100644 --- a/src/i18n/locales/en-US.ts +++ b/src/i18n/locales/en-US.ts @@ -708,6 +708,9 @@ export default { }, }, neData: { + common: { + importTemplate: 'Download Template', + }, baseStation: { list: "List", topology: "Topology", diff --git a/src/i18n/locales/zh-CN.ts b/src/i18n/locales/zh-CN.ts index bdcd1688..4665d605 100644 --- a/src/i18n/locales/zh-CN.ts +++ b/src/i18n/locales/zh-CN.ts @@ -708,6 +708,9 @@ export default { }, }, neData: { + common: { + importTemplate: '导入模板', + }, baseStation: { list: "列表", topology: "拓扑图", diff --git a/src/views/neUser/auth/index.vue b/src/views/neUser/auth/index.vue index 9bf360fe..376c223a 100644 --- a/src/views/neUser/auth/index.vue +++ b/src/views/neUser/auth/index.vue @@ -717,6 +717,26 @@ function fnModalUploadImportUpload(file: File) { }); } +/**对话框表格信息导入模板 */ +function fnModalDownloadImportTemplate() { + const hide = message.loading(t('common.loading'), 0); + + const blob = new Blob( + [ + [ + '560211100001157,1234567890ABCDEF1234567890ABCDEF,0,8000', + '560211100001158,1234567890ABCDEF1234567890ABCDEF,0,8000', + ].join('\r\n'), + ], + { + type: 'text/plain', + } + ); + saveAs(blob, `import_authdata_template_${Date.now()}.txt`); + + hide(); +} + onMounted(() => { // 获取网元网元列表 useNeInfoStore() @@ -1230,11 +1250,25 @@ onMounted(() => { :size="10" >