完善搜索时带上匹配模式后的imsi
This commit is contained in:
@@ -894,11 +894,15 @@ function fnRecordExport(type: string = 'txt') {
|
|||||||
/**列表导出 */
|
/**列表导出 */
|
||||||
function fnExportList(type: string) {
|
function fnExportList(type: string) {
|
||||||
const neId = queryParams.neId;
|
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;
|
if (!neId) return;
|
||||||
const key = 'exportSub';
|
const key = 'exportSub';
|
||||||
message.loading({ content: t('common.loading'), key });
|
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) {
|
if (res.code === RESULT_CODE_SUCCESS) {
|
||||||
message.success({
|
message.success({
|
||||||
content: t('common.msgSuccess', { msg: t('common.export') }),
|
content: t('common.msgSuccess', { msg: t('common.export') }),
|
||||||
|
|||||||
@@ -945,12 +945,15 @@ function fnRecordExport(type: string = 'txt') {
|
|||||||
/**列表导出 */
|
/**列表导出 */
|
||||||
function fnExportList(type: string) {
|
function fnExportList(type: string) {
|
||||||
const neID = queryParams.neId;
|
const neID = queryParams.neId;
|
||||||
const imsi = queryParams.imsi;
|
const imsiMatchRule: any = {
|
||||||
const msisdn = queryParams.msisdn;
|
prefix: queryParams.imsi ? `${queryParams.imsi}%` : '',
|
||||||
|
fuzzy: queryParams.imsi ? `%${queryParams.imsi}%` : '',
|
||||||
|
};
|
||||||
|
const realImsi = imsiMatchRule[queryParams.imsiMatch] || '';
|
||||||
if (!neID) return;
|
if (!neID) return;
|
||||||
const key = 'exportSub';
|
const key = 'exportSub';
|
||||||
message.loading({ content: t('common.loading'), key });
|
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) {
|
if (res.code === RESULT_CODE_SUCCESS) {
|
||||||
message.success({
|
message.success({
|
||||||
content: t('common.msgSuccess', { msg: t('common.export') }),
|
content: t('common.msgSuccess', { msg: t('common.export') }),
|
||||||
|
|||||||
Reference in New Issue
Block a user