feat: UE添加导入模板下载功能
This commit is contained in:
2
public/neDataImput/pcf_template.txt
Normal file
2
public/neDataImput/pcf_template.txt
Normal file
@@ -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
|
||||||
2
public/neDataImput/udm_auth_template.txt
Normal file
2
public/neDataImput/udm_auth_template.txt
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
001011100001157,1234567890ABCDEF1234567890ABCDEF,0,8000,11111111111111111111111111111111
|
||||||
|
001011100001158,1234567890ABCDEF1234567890ABCDEF,0,8000,11111111111111111111111111111111
|
||||||
2
public/neDataImput/udm_sub_template.txt
Normal file
2
public/neDataImput/udm_sub_template.txt
Normal file
@@ -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,-
|
||||||
@@ -721,18 +721,18 @@ function fnModalUploadImportUpload(file: File) {
|
|||||||
function fnModalDownloadImportTemplate() {
|
function fnModalDownloadImportTemplate() {
|
||||||
const hide = message.loading(t('common.loading'), 0);
|
const hide = message.loading(t('common.loading'), 0);
|
||||||
|
|
||||||
const blob = new Blob(
|
const baseUrl = import.meta.env.VITE_HISTORY_BASE_URL;
|
||||||
[
|
const templateUrl = `${
|
||||||
[
|
baseUrl.length === 1 && baseUrl.indexOf('/') === 0
|
||||||
'001011100001157,1234567890ABCDEF1234567890ABCDEF,0,8000',
|
? ''
|
||||||
'001011100001158,1234567890ABCDEF1234567890ABCDEF,0,8000',
|
: baseUrl.indexOf('/') === -1
|
||||||
].join('\r\n'),
|
? '/' + baseUrl
|
||||||
],
|
: baseUrl
|
||||||
{
|
}/neDataImput`;
|
||||||
type: 'text/plain',
|
saveAs(
|
||||||
}
|
`${templateUrl}/udm_auth_template.txt`,
|
||||||
|
`import_udmauth_template_${Date.now()}.txt`
|
||||||
);
|
);
|
||||||
saveAs(blob, `import_authdata_template_${Date.now()}.txt`);
|
|
||||||
|
|
||||||
hide();
|
hide();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -641,18 +641,18 @@ function filterOption(value: any, option: any) {
|
|||||||
function fnModalDownloadImportTemplate() {
|
function fnModalDownloadImportTemplate() {
|
||||||
const hide = message.loading(t('common.loading'), 0);
|
const hide = message.loading(t('common.loading'), 0);
|
||||||
|
|
||||||
const blob = new Blob(
|
const baseUrl = import.meta.env.VITE_HISTORY_BASE_URL;
|
||||||
[
|
const templateUrl = `${
|
||||||
[
|
baseUrl.length === 1 && baseUrl.indexOf('/') === 0
|
||||||
'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',
|
: baseUrl.indexOf('/') === -1
|
||||||
].join('\r\n'),
|
? '/' + baseUrl
|
||||||
],
|
: baseUrl
|
||||||
{
|
}/neDataImput`;
|
||||||
type: 'text/plain',
|
saveAs(
|
||||||
}
|
`${templateUrl}/pcf_template.txt`,
|
||||||
|
`import_pcfrule_template_${Date.now()}.txt`
|
||||||
);
|
);
|
||||||
saveAs(blob, `import_pcfrule_template_${Date.now()}.txt`);
|
|
||||||
|
|
||||||
hide();
|
hide();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1220,21 +1220,21 @@ function delBigRow(bigIndex: any) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**对话框表格信息导入模板 */
|
/**对话框表格信息导入模板 */
|
||||||
function fnModalDownloadImportTemplate() {
|
async function fnModalDownloadImportTemplate() {
|
||||||
const hide = message.loading(t('common.loading'), 0);
|
const hide = message.loading(t('common.loading'), 0);
|
||||||
|
|
||||||
const blob = new Blob(
|
const baseUrl = import.meta.env.VITE_HISTORY_BASE_URL;
|
||||||
[
|
const templateUrl = `${
|
||||||
[
|
baseUrl.length === 1 && baseUrl.indexOf('/') === 0
|
||||||
"001016650000584,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,-",
|
? ''
|
||||||
"001016650000585,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,-",
|
: baseUrl.indexOf('/') === -1
|
||||||
].join('\r\n'),
|
? '/' + baseUrl
|
||||||
],
|
: baseUrl
|
||||||
{
|
}/neDataImput`;
|
||||||
type: 'text/plain',
|
saveAs(
|
||||||
}
|
`${templateUrl}/udm_sub_template.txt`,
|
||||||
|
`import_udmsub_template_${Date.now()}.txt`
|
||||||
);
|
);
|
||||||
saveAs(blob, `import_udmuser_template_${Date.now()}.txt`);
|
|
||||||
|
|
||||||
hide();
|
hide();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user