diff --git a/public/neDataImput/pcf_template.txt b/public/neDataImput/pcf_template.txt new file mode 100644 index 00000000..0c6ffa0e --- /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 +001012082101039,1234,internet|ims_sig,internet|ims_sig,321321,255,321312,32131,32131 diff --git a/public/neDataImput/udm_auth_template.txt b/public/neDataImput/udm_auth_template.txt new file mode 100644 index 00000000..cb716591 --- /dev/null +++ b/public/neDataImput/udm_auth_template.txt @@ -0,0 +1,2 @@ +001011100001157,1234567890ABCDEF1234567890ABCDEF,0,8000,11111111111111111111111111111111 +001011100001158,1234567890ABCDEF1234567890ABCDEF,0,8000,11111111111111111111111111111111 diff --git a/public/neDataImput/udm_sub_template.txt b/public/neDataImput/udm_sub_template.txt new file mode 100644 index 00000000..dde832c7 --- /dev/null +++ b/public/neDataImput/udm_sub_template.txt @@ -0,0 +1,2 @@ +001011100001157,62357000583,def_ambr,def_nssai,def_arfb,def_sar,0,3,def_snssai,1-000001&internet&ims,1,64,24,65,def_eps,1,010200000000,- +001011100001158,62357000585,def_ambr,def_nssai,def_arfb,def_sar,0,3,def_snssai,1-000001&internet&ims,1,64,24,65,def_eps,1,010200000000,- diff --git a/public/neDataImput/udm_voip_template.txt b/public/neDataImput/udm_voip_template.txt new file mode 100644 index 00000000..21657b00 --- /dev/null +++ b/public/neDataImput/udm_voip_template.txt @@ -0,0 +1,3 @@ +#username,password +62357000580,123456 +62357000581,123456 diff --git a/public/neDataImput/udm_volte_template.txt b/public/neDataImput/udm_volte_template.txt new file mode 100644 index 00000000..c23508f7 --- /dev/null +++ b/public/neDataImput/udm_volte_template.txt @@ -0,0 +1,4 @@ +#vlote=0 MSISDN and IMSI need to be filled in the same way. +#imsi,msisdn,vlote,vni +460996650000580,62357000580,1,ims.mnc000.mcc460.3gppnetwork.org +62357000581,62357000581,0,ims.mnc000.mcc460.3gppnetwork.org diff --git a/src/views/neUser/auth/index.vue b/src/views/neUser/auth/index.vue index f2524022..d8341d45 100644 --- a/src/views/neUser/auth/index.vue +++ b/src/views/neUser/auth/index.vue @@ -716,6 +716,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() @@ -1227,11 +1247,24 @@ onMounted(() => { :size="10" >