ref: v3变更,,同步v2.2509.2 -250912

This commit is contained in:
TsMask
2025-09-12 18:05:09 +08:00
parent e8e7a97963
commit 54cf296d2f
8 changed files with 34 additions and 19 deletions

View File

@@ -826,7 +826,7 @@ export default {
passwordPlease: "Please enter your password correctly", passwordPlease: "Please enter your password correctly",
addTitle: 'Add VOIP subscriber', addTitle: 'Add VOIP subscriber',
delTip: 'Confirm that you want to delete the information of VOIP user as [{num}]?', delTip: 'Confirm that you want to delete the information of VOIP user as [{num}]?',
exportTip: "Confirm exporting xlsx table files based on search criteria?", exportTip: "Confirm exporting all VOIP user data based on the current search criteria?",
}, },
udmVolteIMS: { udmVolteIMS: {
startMSISDN: 'Starting MSISDN', startMSISDN: 'Starting MSISDN',
@@ -835,7 +835,7 @@ export default {
vniTip: 'Example: ims.mnc000.mcc000.3gppnetwork.org', vniTip: 'Example: ims.mnc000.mcc000.3gppnetwork.org',
vniPlease: 'Please enter VNI correctly', vniPlease: 'Please enter VNI correctly',
delTip: 'Are you sure you want to delete the information of IMS signing as [{num}]?', delTip: 'Are you sure you want to delete the information of IMS signing as [{num}]?',
exportTip: "Confirm exporting xlsx table files based on search criteria?", exportTip: "Confirm exporting all VoLTE user data based on the current search criteria?",
}, },
pcfSub: { pcfSub: {
exportTip: 'Confirm exporting all user policy control information data?', exportTip: 'Confirm exporting all user policy control information data?',
@@ -886,7 +886,7 @@ export default {
neTypePlease: 'Query network element Object', neTypePlease: 'Query network element Object',
neType: 'UDM Object', neType: 'UDM Object',
export: 'Export', export: 'Export',
exportConfirm: 'Are you sure to export all authentication user data?', exportConfirm: 'Confirm exporting all Authentication user data based on the current search criteria?',
checkExport : 'Check Export', checkExport : 'Check Export',
checkExportConfirm: 'Confirm exporting the checked authenticated user data?', checkExportConfirm: 'Confirm exporting the checked authenticated user data?',
import: 'Import', import: 'Import',
@@ -915,7 +915,7 @@ export default {
subInfo:' Subscription Info', subInfo:' Subscription Info',
neType: 'UDM Object', neType: 'UDM Object',
export: 'Export', export: 'Export',
exportConfirm: 'Are you sure to export all signed user data?', exportConfirm: 'Confirm exporting all Subscribers user data based on the current search criteria?',
checkExport : 'Check Export', checkExport : 'Check Export',
checkExportConfirm: 'Are you sure to export the data of the checked subscribers?', checkExportConfirm: 'Are you sure to export the data of the checked subscribers?',
import: 'Import', import: 'Import',

View File

@@ -826,7 +826,7 @@ export default {
passwordPlease: "请正确输入密码", passwordPlease: "请正确输入密码",
addTitle: '新增VOIP用户', addTitle: '新增VOIP用户',
delTip: '确认要删除VOIP用户为【{num}】的信息吗?', delTip: '确认要删除VOIP用户为【{num}】的信息吗?',
exportTip: "确认根据搜索条件导出xlsx表格文件吗?", exportTip: "确认根据当前搜索条件导出全部VoIP用户数据吗",
}, },
udmVolteIMS: { udmVolteIMS: {
startMSISDN: '起始MSISDN', startMSISDN: '起始MSISDN',
@@ -835,7 +835,7 @@ export default {
vniTip: '示例ims.mnc000.mcc000.3gppnetwork.org', vniTip: '示例ims.mnc000.mcc000.3gppnetwork.org',
vniPlease: '请正确输入VNI', vniPlease: '请正确输入VNI',
delTip: '确认要删除IMS签约为【{num}】的信息吗?', delTip: '确认要删除IMS签约为【{num}】的信息吗?',
exportTip: "确认根据搜索条件导出xlsx表格文件吗?", exportTip: "确认根据当前搜索条件导出全部VoLTE用户数据吗",
}, },
pcfSub: { pcfSub: {
exportTip: '确认导出全部用户策略控制信息数据吗?', exportTip: '确认导出全部用户策略控制信息数据吗?',
@@ -886,7 +886,7 @@ export default {
neTypePlease: '查询网元类型', neTypePlease: '查询网元类型',
neType: 'UDM网元对象', neType: 'UDM网元对象',
export: '导出', export: '导出',
exportConfirm: '确认导出全部鉴权用户数据吗?', exportConfirm: '确认根据当前搜索条件导出全部鉴权用户数据吗?',
checkExport : '勾选导出', checkExport : '勾选导出',
checkExportConfirm: '确认导出已勾选的鉴权用户数据吗?', checkExportConfirm: '确认导出已勾选的鉴权用户数据吗?',
import: '导入', import: '导入',
@@ -915,7 +915,7 @@ export default {
subInfo:'签约信息', subInfo:'签约信息',
neType: 'UDM网元类型', neType: 'UDM网元类型',
export: '导出', export: '导出',
exportConfirm: '确认导出全部签约用户数据吗?', exportConfirm: '确认根据当前搜索条件导出全部签约用户数据吗?',
checkExport : '勾选导出', checkExport : '勾选导出',
checkExportConfirm: '确认导出已勾选的签约用户数据吗?', checkExportConfirm: '确认导出已勾选的签约用户数据吗?',
import: '导入', import: '导入',

View File

@@ -21,6 +21,8 @@ import dayjs, { type Dayjs } from 'dayjs';
import PQueue from 'p-queue'; import PQueue from 'p-queue';
import saveAs from 'file-saver'; import saveAs from 'file-saver';
import { useClipboard } from '@vueuse/core'; import { useClipboard } from '@vueuse/core';
import { currentCoreUid } from '@/hooks/useCoreUid';
import { WS_GROUP_SGWC_CDR } from '@/constants/ne-constants';
const { copy } = useClipboard({ legacy: true }); const { copy } = useClipboard({ legacy: true });
const { t } = useI18n(); const { t } = useI18n();
const neStore = useNeStore(); const neStore = useNeStore();
@@ -53,9 +55,10 @@ let rangePickerPresets = ref([
/**查询参数 */ /**查询参数 */
let queryParams = reactive({ let queryParams = reactive({
/**网元类型 */ /**核心网标识 */
neType: 'SGWC', coreUid: currentCoreUid(),
neId: '001', /**网元标识 */
neUid: undefined,
imsi: '', imsi: '',
msisdn: '', msisdn: '',
sortField: 'timestamp', sortField: 'timestamp',
@@ -414,6 +417,8 @@ const realTimeData = ref<boolean>(false);
function fnRealTime() { function fnRealTime() {
realTimeData.value = !realTimeData.value; realTimeData.value = !realTimeData.value;
if (realTimeData.value) { if (realTimeData.value) {
const neUid = queryParams.neUid;
const coreUid = queryParams.coreUid;
tableState.seached = false; tableState.seached = false;
// 建立链接 // 建立链接
const options: OptionsType = { const options: OptionsType = {
@@ -423,7 +428,7 @@ function fnRealTime() {
* *
* CDR会话事件-SGWC (GroupID:1008_neId) * CDR会话事件-SGWC (GroupID:1008_neId)
*/ */
subGroupID: `1008_${queryParams.neId}`, subGroupID: `${WS_GROUP_SGWC_CDR}_${coreUid}_${neUid}`,
}, },
onmessage: wsMessage, onmessage: wsMessage,
onerror: (ev: any) => { onerror: (ev: any) => {
@@ -450,8 +455,10 @@ function wsMessage(res: Record<string, any>) {
if (!data?.groupId) { if (!data?.groupId) {
return; return;
} }
const neUid = queryParams.neUid;
const coreUid = queryParams.coreUid;
// cdrEvent CDR会话事件 // cdrEvent CDR会话事件
if (data.groupId === `1008_${queryParams.neId}`) { if (data.groupId === `${WS_GROUP_SGWC_CDR}_${coreUid}_${neUid}`) {
const cdrEvent = data.data; const cdrEvent = data.data;
let cdrJSON = {}; let cdrJSON = {};
try { try {
@@ -490,7 +497,7 @@ onMounted(() => {
return; return;
} }
if (neOtions.value.length > 0) { if (neOtions.value.length > 0) {
queryParams.neId = neOtions.value[0].value; queryParams.neUid = neOtions.value[0].value;
} else { } else {
message.warning({ message.warning({
content: t('common.noData'), content: t('common.noData'),
@@ -520,9 +527,9 @@ onBeforeUnmount(() => {
<a-form :model="queryParams" name="queryParams" layout="horizontal"> <a-form :model="queryParams" name="queryParams" layout="horizontal">
<a-row :gutter="16"> <a-row :gutter="16">
<a-col :lg="6" :md="12" :xs="24"> <a-col :lg="6" :md="12" :xs="24">
<a-form-item label="SGWC" name="neId "> <a-form-item label="SGWC" name="neUid ">
<a-select <a-select
v-model:value="queryParams.neId" v-model:value="queryParams.neUid"
:options="neOtions" :options="neOtions"
:placeholder="t('common.selectPlease')" :placeholder="t('common.selectPlease')"
@change="fnQueryReset()" @change="fnQueryReset()"

View File

@@ -507,6 +507,8 @@ function fnRecordExport(type: string = 'txt') {
const coreUid = queryParams.coreUid; const coreUid = queryParams.coreUid;
if (!neUid || !coreUid) return; if (!neUid || !coreUid) return;
const hide = message.loading(t('common.loading'), 0); const hide = message.loading(t('common.loading'), 0);
queryParams.pageNum = 1;
queryParams.pageSize = tablePagination.total;
exportUDMAuth({ type, coreUid, neUid, imsis: tableState.selectedRowKeys }) exportUDMAuth({ type, coreUid, neUid, imsis: tableState.selectedRowKeys })
.then(res => { .then(res => {
if (res.code === RESULT_CODE_SUCCESS) { if (res.code === RESULT_CODE_SUCCESS) {

View File

@@ -883,6 +883,8 @@ function fnExportList(type: string) {
const coreUid = queryParams.coreUid; const coreUid = queryParams.coreUid;
if (!neUid || !coreUid) return; if (!neUid || !coreUid) return;
const hide = message.loading(t('common.loading'), 0); const hide = message.loading(t('common.loading'), 0);
queryParams.pageNum = 1;
queryParams.pageSize = tablePagination.total;
exportUDMSub(Object.assign({ type: type }, queryParams)) exportUDMSub(Object.assign({ type: type }, queryParams))
.then(res => { .then(res => {
if (res.code === RESULT_CODE_SUCCESS) { if (res.code === RESULT_CODE_SUCCESS) {

View File

@@ -361,6 +361,8 @@ function fnExportList(type: string) {
const coreUid = queryParams.coreUid; const coreUid = queryParams.coreUid;
if (!neUid || !coreUid) return; if (!neUid || !coreUid) return;
const hide = message.loading(t('common.loading'), 0); const hide = message.loading(t('common.loading'), 0);
queryParams.pageNum = 1;
queryParams.pageSize = tablePagination.total;
exportUDMVoIP(Object.assign({ type: type }, queryParams)) exportUDMVoIP(Object.assign({ type: type }, queryParams))
.then(res => { .then(res => {
if (res.code === RESULT_CODE_SUCCESS) { if (res.code === RESULT_CODE_SUCCESS) {

View File

@@ -447,6 +447,8 @@ function fnExportList(type: string) {
const coreUid = queryParams.coreUid; const coreUid = queryParams.coreUid;
if (!neUid || !coreUid) return; if (!neUid || !coreUid) return;
const hide = message.loading(t('common.loading'), 0); const hide = message.loading(t('common.loading'), 0);
queryParams.pageNum = 1;
queryParams.pageSize = tablePagination.total;
exportUDMVolteIMS(Object.assign({ type: type }, queryParams)) exportUDMVolteIMS(Object.assign({ type: type }, queryParams))
.then(res => { .then(res => {
if (res.code === RESULT_CODE_SUCCESS) { if (res.code === RESULT_CODE_SUCCESS) {
@@ -454,7 +456,7 @@ function fnExportList(type: string) {
content: t('common.operateOk'), content: t('common.operateOk'),
duration: 2, duration: 2,
}); });
saveAs(res.data, `UDM_VOLTE_${Date.now()}.${type}`); saveAs(res.data, `UDM_VoLTE_${Date.now()}.${type}`);
} else { } else {
message.error({ message.error({
content: `${res.msg}`, content: `${res.msg}`,

View File

@@ -234,7 +234,7 @@ let modalState: ModalStateType = reactive({
title: '菜单', title: '菜单',
from: { from: {
menuId: undefined, menuId: undefined,
parentId: '0', parentId: 0,
menuName: '', menuName: '',
menuSort: 0, menuSort: 0,
menuType: MENU_TYPE_BUTTON, menuType: MENU_TYPE_BUTTON,
@@ -474,7 +474,7 @@ function fnGetList() {
// 转换树状数据 // 转换树状数据
treeDataAll = [ treeDataAll = [
{ {
menuId: '0', menuId: 0,
menuName: t('views.system.dept.node'), menuName: t('views.system.dept.node'),
children: parseDataToTreeExclude( children: parseDataToTreeExclude(
data, data,