完善搜索时带上匹配模式后的imsi

This commit is contained in:
lai
2024-10-17 14:47:40 +08:00
parent cf5c8906c3
commit 7b60c30548
2 changed files with 12 additions and 5 deletions

View File

@@ -894,11 +894,15 @@ function fnRecordExport(type: string = 'txt') {
/**列表导出 */
function fnExportList(type: string) {
const neId = queryParams.neId;
const imsiMatchRule: any = {
prefix: queryParams.imsi ? `${queryParams.imsi}%` : '',
fuzzy: queryParams.imsi ? `%${queryParams.imsi}%` : '',
};
const realImsi = imsiMatchRule[queryParams.imsiMatch] || '';
if (!neId) return;
const key = 'exportSub';
message.loading({ content: t('common.loading'), key });
exportUDMSub({ ...queryParams, ...{ type } }).then(res => {
exportUDMSub({ ...queryParams, ...{ type, imsi: realImsi } }).then(res => {
if (res.code === RESULT_CODE_SUCCESS) {
message.success({
content: t('common.msgSuccess', { msg: t('common.export') }),

View File

@@ -945,12 +945,15 @@ function fnRecordExport(type: string = 'txt') {
/**列表导出 */
function fnExportList(type: string) {
const neID = queryParams.neId;
const imsi = queryParams.imsi;
const msisdn = queryParams.msisdn;
const imsiMatchRule: any = {
prefix: queryParams.imsi ? `${queryParams.imsi}%` : '',
fuzzy: queryParams.imsi ? `%${queryParams.imsi}%` : '',
};
const realImsi = imsiMatchRule[queryParams.imsiMatch] || '';
if (!neID) return;
const key = 'exportSub';
message.loading({ content: t('common.loading'), key });
exportUDMSub({ ...queryParams, ...{ type } }).then(res => {
exportUDMSub({ ...queryParams, ...{ type, imsi: realImsi } }).then(res => {
if (res.code === RESULT_CODE_SUCCESS) {
message.success({
content: t('common.msgSuccess', { msg: t('common.export') }),