改造成mf

This commit is contained in:
lai
2025-04-15 16:24:44 +08:00
parent 956cbfc3a3
commit 4e63395383
6 changed files with 22 additions and 22 deletions

View File

@@ -5,9 +5,9 @@ import { request } from '@/plugins/http-fetch';
* @param query
* @returns object
*/
export function listPSAPDataCDR(query: Record<string, any>) {
export function listMFDataCDR(query: Record<string, any>) {
return request({
url: '/neData/psap/cdr/list',
url: '/neData/mf/cdr/list',
method: 'get',
params: query,
timeout: 60_000,
@@ -19,9 +19,9 @@ export function listPSAPDataCDR(query: Record<string, any>) {
* @param id ID
* @returns object
*/
export function delPSAPDataCDR(cdrIds: string | number) {
export function delMFDataCDR(cdrIds: string | number) {
return request({
url: `/neData/psap/cdr/${cdrIds}`,
url: `/neData/mf/cdr/${cdrIds}`,
method: 'delete',
timeout: 60_000,
});
@@ -32,9 +32,9 @@ export function delPSAPDataCDR(cdrIds: string | number) {
* @param data
* @returns object
*/
export function exportPSAPDataCDR(data: Record<string, any>) {
export function exportMFDataCDR(data: Record<string, any>) {
return request({
url: '/neData/psap/cdr/export',
url: '/neData/mf/cdr/export',
method: 'post',
data,
responseType: 'blob',

View File

@@ -13,10 +13,10 @@ import {
import useDictStore from '@/store/modules/dict';
import useNeInfoStore from '@/store/modules/neinfo';
import {
delPSAPDataCDR,
exportPSAPDataCDR,
listPSAPDataCDR,
} from '@/api/neData/psap';
delMFDataCDR,
exportMFDataCDR,
listMFDataCDR,
} from '@/api/neData/mf';
import { parseDateToStr, parseDuration } from '@/utils/date-utils';
import { OptionsType, WS } from '@/plugins/ws-websocket';
import saveAs from 'file-saver';
@@ -67,7 +67,7 @@ let rangePickerPresets = ref([
/**查询参数 */
let queryParams = reactive({
/**网元类型 */
neType: 'PSAP',
neType: 'MF',
neId: '001',
recordType: '',
callerParty: '',
@@ -327,7 +327,7 @@ function fnRecordDelete(id: string) {
onOk() {
modalState.confirmLoading = true;
const hide = message.loading(t('common.loading'), 0);
delPSAPDataCDR(id)
delMFDataCDR(id)
.then(res => {
if (res.code === RESULT_CODE_SUCCESS) {
message.success({
@@ -380,7 +380,7 @@ function fnGetList(pageNum?: number) {
queryParams.startTime = undefined;
queryParams.endTime = undefined;
}
listPSAPDataCDR(toRaw(queryParams)).then(res => {
listMFDataCDR(toRaw(queryParams)).then(res => {
if (res.code === RESULT_CODE_SUCCESS && Array.isArray(res.rows)) {
//
if (tableState.selectedRowKeys.length > 0) {
@@ -424,14 +424,14 @@ function fnExportList() {
const hide = message.loading(t('common.loading'), 0);
const querys = toRaw(queryParams);
querys.pageSize = 10000;
exportPSAPDataCDR(querys)
exportMFDataCDR(querys)
.then(res => {
if (res.code === RESULT_CODE_SUCCESS) {
message.success({
content: t('common.operateOk'),
duration: 3,
});
saveAs(res.data, `psap_cdr_event_export_${Date.now()}.xlsx`);
saveAs(res.data, `MF_cdr_event_export_${Date.now()}.xlsx`);
} else {
message.error({
content: `${res.msg}`,
@@ -534,7 +534,7 @@ onMounted(() => {
if (res.data.length > 0) {
let arr: Record<string, any>[] = [];
res.data.forEach(i => {
if (i.neType === 'PSAP') {
if (i.neType === 'MF') {
arr.push({ value: i.neId, label: i.neName });
}
});
@@ -570,7 +570,7 @@ onBeforeUnmount(() => {
<a-form :model="queryParams" name="queryParams" layout="horizontal">
<a-row :gutter="16">
<a-col :lg="6" :md="12" :xs="24">
<a-form-item label="PSAP" name="neId ">
<a-form-item label="MF" name="neId ">
<a-select v-model:value="queryParams.neId" :options="neOtions" :placeholder="t('common.selectPlease')"
@change="fnQueryReset()" />
</a-form-item>

View File

@@ -3,7 +3,7 @@ import { onBeforeUnmount, onMounted, reactive, ref } from 'vue';
import DashboardCards from './components/psapOverview/DashboardCards.vue';
import DashboardCards from './components/MFOverview/DashboardCards.vue';
onMounted(() => {
});

View File

@@ -104,12 +104,12 @@ let modalState: ModalStateType = reactive({
from: {
id: undefined,
neId: '001',
neType: 'PSAP',
neType: 'MF',
neName: '',
ip: '',
port: 33030,
pvFlag: 'PNF',
rmUid: '4400HXPSAP001',
rmUid: '4400HXMF001',
neAddress: '',
dn: '',
vendorName: '',
@@ -321,14 +321,14 @@ function fnNeTypeChange(v: any) {
});
}
modalState.from.rmUid = `4400HX${v}${modalState.from.neId}`; // 4400HX1PSAP001
modalState.from.rmUid = `4400HX${v}${modalState.from.neId}`; // 4400HX1MF001
}
/**表单修改网元neId */
function fnNeIdChange(e: any) {
const v = e.target.value;
if (v.length < 1) return;
modalState.from.rmUid = `4400HX${modalState.from.neType}${v}`; // 4400HX1PSAP001
modalState.from.rmUid = `4400HX${modalState.from.neType}${v}`; // 4400HX1MF001
}
/**表单修改网元IP */