fix: UE-PCF页面提示信息调整
This commit is contained in:
@@ -138,13 +138,19 @@ export async function batchUpdateRule(data: Record<string, any>) {
|
|||||||
data: data,
|
data: data,
|
||||||
});
|
});
|
||||||
// 解析数据
|
// 解析数据
|
||||||
if (result.code === RESULT_CODE_SUCCESS && result.data?.status) {
|
if (result.code === RESULT_CODE_SUCCESS) {
|
||||||
|
if (result.data?.status) {
|
||||||
return {
|
return {
|
||||||
code: RESULT_CODE_ERROR,
|
code: RESULT_CODE_ERROR,
|
||||||
msg: result.data?.cause,
|
msg: result.data?.cause,
|
||||||
data: result.data,
|
data: result.data,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
if (result.data?.data) {
|
||||||
|
result.data = result.data.data;
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -182,13 +188,19 @@ export async function batchAddRule(data: Record<string, any>) {
|
|||||||
data: data,
|
data: data,
|
||||||
});
|
});
|
||||||
// 解析数据
|
// 解析数据
|
||||||
if (result.code === RESULT_CODE_SUCCESS && result.data?.status) {
|
if (result.code === RESULT_CODE_SUCCESS) {
|
||||||
|
if (result.data?.status) {
|
||||||
return {
|
return {
|
||||||
code: RESULT_CODE_ERROR,
|
code: RESULT_CODE_ERROR,
|
||||||
msg: result.data?.cause,
|
msg: result.data?.cause,
|
||||||
data: result.data,
|
data: result.data,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
if (result.data?.data) {
|
||||||
|
result.data = result.data.data;
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -76,62 +76,62 @@ let tableColumns: ColumnsType = [
|
|||||||
title: 'IMSI',
|
title: 'IMSI',
|
||||||
dataIndex: 'imsi',
|
dataIndex: 'imsi',
|
||||||
sorter: (a: any, b: any) => Number(a.imsi) - Number(b.imsi),
|
sorter: (a: any, b: any) => Number(a.imsi) - Number(b.imsi),
|
||||||
align: 'center',
|
align: 'left',
|
||||||
width: 150,
|
width: 150,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'MSISDN',
|
title: 'MSISDN',
|
||||||
dataIndex: 'msisdn',
|
dataIndex: 'msisdn',
|
||||||
sorter: (a: any, b: any) => Number(a.msisdn) - Number(b.msisdn),
|
sorter: (a: any, b: any) => Number(a.msisdn) - Number(b.msisdn),
|
||||||
align: 'center',
|
align: 'left',
|
||||||
width: 150,
|
width: 150,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'SAR',
|
title: 'SAR',
|
||||||
dataIndex: 'sar',
|
dataIndex: 'sar',
|
||||||
align: 'center',
|
align: 'left',
|
||||||
width: 80,
|
width: 50,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'RFSP',
|
title: 'RFSP',
|
||||||
dataIndex: 'rfsp',
|
dataIndex: 'rfsp',
|
||||||
align: 'center',
|
align: 'left',
|
||||||
width: 50,
|
width: 50,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'QOS Video',
|
title: 'QOS Video',
|
||||||
dataIndex: 'qosVideo',
|
dataIndex: 'qosVideo',
|
||||||
align: 'center',
|
align: 'left',
|
||||||
width: 100,
|
width: 100,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'QOS Audio',
|
title: 'QOS Audio',
|
||||||
dataIndex: 'qosAudio',
|
dataIndex: 'qosAudio',
|
||||||
align: 'center',
|
align: 'left',
|
||||||
width: 100,
|
width: 100,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'PCC Rules',
|
title: 'PCC Rules',
|
||||||
dataIndex: 'pccRules',
|
dataIndex: 'pccRules',
|
||||||
align: 'center',
|
align: 'left',
|
||||||
width: 120,
|
width: 120,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'SESS Rules',
|
title: 'SESS Rules',
|
||||||
dataIndex: 'sessRules',
|
dataIndex: 'sessRules',
|
||||||
align: 'center',
|
align: 'left',
|
||||||
width: 120,
|
width: 120,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'HDR Enrich',
|
title: 'HDR Enrich',
|
||||||
dataIndex: 'hdrEnrich',
|
dataIndex: 'hdrEnrich',
|
||||||
align: 'center',
|
align: 'left',
|
||||||
width: 100,
|
width: 100,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'UE Policy',
|
title: 'UE Policy',
|
||||||
dataIndex: 'uePolicy',
|
dataIndex: 'uePolicy',
|
||||||
align: 'center',
|
align: 'left',
|
||||||
width: 100,
|
width: 100,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -288,10 +288,28 @@ function fnModalOk() {
|
|||||||
result
|
result
|
||||||
.then((res: any) => {
|
.then((res: any) => {
|
||||||
if (res.code === RESULT_CODE_SUCCESS) {
|
if (res.code === RESULT_CODE_SUCCESS) {
|
||||||
|
if (modalState.isBatch) {
|
||||||
|
let okTip = '';
|
||||||
|
if (modalState.type === 'add') {
|
||||||
|
okTip = res.data;
|
||||||
|
}
|
||||||
|
if (modalState.type === 'update') {
|
||||||
|
okTip = res.data;
|
||||||
|
}
|
||||||
|
if (modalState.type === 'delete') {
|
||||||
|
okTip = t('common.msgSuccess', { msg: modalState.title });
|
||||||
|
}
|
||||||
|
message.success({
|
||||||
|
content: okTip,
|
||||||
|
duration: 5,
|
||||||
|
});
|
||||||
|
} else {
|
||||||
message.success({
|
message.success({
|
||||||
content: t('common.msgSuccess', { msg: modalState.title }),
|
content: t('common.msgSuccess', { msg: modalState.title }),
|
||||||
duration: 3,
|
duration: 3,
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
fnModalCancel();
|
fnModalCancel();
|
||||||
fnGetList();
|
fnGetList();
|
||||||
} else {
|
} else {
|
||||||
@@ -360,7 +378,7 @@ function fnRecordDelete(row: Record<string, any>) {
|
|||||||
if (res.code === RESULT_CODE_SUCCESS) {
|
if (res.code === RESULT_CODE_SUCCESS) {
|
||||||
message.success({
|
message.success({
|
||||||
content: t('common.msgSuccess', {
|
content: t('common.msgSuccess', {
|
||||||
msg: row.imsi + t('common.deleteText'),
|
msg: `${t('common.deleteText')} ${row.imsi}`,
|
||||||
}),
|
}),
|
||||||
key,
|
key,
|
||||||
duration: 2,
|
duration: 2,
|
||||||
@@ -472,8 +490,9 @@ function fnModalUploadImportUpload(file: File) {
|
|||||||
return res;
|
return res;
|
||||||
})
|
})
|
||||||
.then(res => {
|
.then(res => {
|
||||||
if (res.code === RESULT_CODE_SUCCESS && res.data?.filePath) {
|
if (res.code === RESULT_CODE_SUCCESS && res.data?.data) {
|
||||||
uploadImportState.msg = t('views.neUser.pcf.uploadFileOk');
|
uploadImportState.msg = res.data?.data;
|
||||||
|
// uploadImportState.msg = t('views.neUser.pcf.uploadFileOk');
|
||||||
} else if (res.code === RESULT_CODE_SUCCESS && res.data?.detail) {
|
} else if (res.code === RESULT_CODE_SUCCESS && res.data?.detail) {
|
||||||
uploadImportState.msg = res.data?.detail;
|
uploadImportState.msg = res.data?.detail;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user