diff --git a/src/views/neUser/sub/index.vue b/src/views/neUser/sub/index.vue index 67b0f936..1447ac6b 100644 --- a/src/views/neUser/sub/index.vue +++ b/src/views/neUser/sub/index.vue @@ -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') }), diff --git a/src/views/tenant/sub/index.vue b/src/views/tenant/sub/index.vue index f0deccad..1db7bfc9 100644 --- a/src/views/tenant/sub/index.vue +++ b/src/views/tenant/sub/index.vue @@ -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') }),