diff --git a/public/neDataImput/pcf_template.txt b/public/neDataImput/pcf_template.txt new file mode 100644 index 00000000..1935f253 --- /dev/null +++ b/public/neDataImput/pcf_template.txt @@ -0,0 +1,2 @@ +imsi,msisdn,sess_rules,pcc_rules,hdr_enrich,rfsp,sar,qos_audio,qos_video,online,offline +460996650000580,86755900103,internet|ims_sig,internet|ims_sig,dnn,1,def_sar,qos_audio,qos_video,0,0 diff --git a/public/neDataImput/udm_auth_template.txt b/public/neDataImput/udm_auth_template.txt new file mode 100644 index 00000000..1a2ba5d3 --- /dev/null +++ b/public/neDataImput/udm_auth_template.txt @@ -0,0 +1,2 @@ +460996650000580,1234567890ABCDEF1234567890ABCDEF,0,8000 +460996650000581,1234567890ABCDEF1234567890ABCDEF,0,8000 diff --git a/public/neDataImput/udm_sub_template.txt b/public/neDataImput/udm_sub_template.txt new file mode 100644 index 00000000..b9762168 --- /dev/null +++ b/public/neDataImput/udm_sub_template.txt @@ -0,0 +1,2 @@ +460996650000580,62357000583,def_ambr,def_nssai,def_arfb,def_sar,0,3,def_snssai,1-000001&content&ims,1,64,24,65,def_eps,1,010200000000,- +460996650000581,62357000585,def_ambr,def_nssai,def_arfb,def_sar,0,3,def_snssai,1-000001&content&ims,1,64,24,65,def_eps,1,010200000000,- diff --git a/src/i18n/locales/en-US.ts b/src/i18n/locales/en-US.ts index 073f468e..6d2257f6 100644 --- a/src/i18n/locales/en-US.ts +++ b/src/i18n/locales/en-US.ts @@ -716,6 +716,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 361767c3..37d5808e 100644 --- a/src/i18n/locales/zh-CN.ts +++ b/src/i18n/locales/zh-CN.ts @@ -716,6 +716,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..2e14e3a1 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 baseUrl = import.meta.env.VITE_HISTORY_BASE_URL; + const templateUrl = `${ + baseUrl.length === 1 && baseUrl.indexOf('/') === 0 + ? '' + : baseUrl.indexOf('/') === -1 + ? '/' + baseUrl + : baseUrl + }/neDataImput`; + saveAs( + `${templateUrl}/udm_auth_template.txt`, + `import_udmauth_template_${Date.now()}.txt` + ); + + hide(); +} + onMounted(() => { // 获取网元网元列表 useNeInfoStore() @@ -1230,11 +1250,24 @@ onMounted(() => { :size="10" >