From 7b60c305487b194532f6218ee7ae54b0cb05ecb5 Mon Sep 17 00:00:00 2001 From: lai <371757574@qq.com> Date: Thu, 17 Oct 2024 14:47:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E6=90=9C=E7=B4=A2=E6=97=B6?= =?UTF-8?q?=E5=B8=A6=E4=B8=8A=E5=8C=B9=E9=85=8D=E6=A8=A1=E5=BC=8F=E5=90=8E?= =?UTF-8?q?=E7=9A=84imsi?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/neUser/sub/index.vue | 8 ++++++-- src/views/tenant/sub/index.vue | 9 ++++++--- 2 files changed, 12 insertions(+), 5 deletions(-) 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') }),