改造成mf
This commit is contained in:
@@ -5,9 +5,9 @@ import { request } from '@/plugins/http-fetch';
|
|||||||
* @param query 查询参数
|
* @param query 查询参数
|
||||||
* @returns object
|
* @returns object
|
||||||
*/
|
*/
|
||||||
export function listPSAPDataCDR(query: Record<string, any>) {
|
export function listMFDataCDR(query: Record<string, any>) {
|
||||||
return request({
|
return request({
|
||||||
url: '/neData/psap/cdr/list',
|
url: '/neData/mf/cdr/list',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: query,
|
params: query,
|
||||||
timeout: 60_000,
|
timeout: 60_000,
|
||||||
@@ -19,9 +19,9 @@ export function listPSAPDataCDR(query: Record<string, any>) {
|
|||||||
* @param id 信息ID
|
* @param id 信息ID
|
||||||
* @returns object
|
* @returns object
|
||||||
*/
|
*/
|
||||||
export function delPSAPDataCDR(cdrIds: string | number) {
|
export function delMFDataCDR(cdrIds: string | number) {
|
||||||
return request({
|
return request({
|
||||||
url: `/neData/psap/cdr/${cdrIds}`,
|
url: `/neData/mf/cdr/${cdrIds}`,
|
||||||
method: 'delete',
|
method: 'delete',
|
||||||
timeout: 60_000,
|
timeout: 60_000,
|
||||||
});
|
});
|
||||||
@@ -32,9 +32,9 @@ export function delPSAPDataCDR(cdrIds: string | number) {
|
|||||||
* @param data 查询列表条件
|
* @param data 查询列表条件
|
||||||
* @returns object
|
* @returns object
|
||||||
*/
|
*/
|
||||||
export function exportPSAPDataCDR(data: Record<string, any>) {
|
export function exportMFDataCDR(data: Record<string, any>) {
|
||||||
return request({
|
return request({
|
||||||
url: '/neData/psap/cdr/export',
|
url: '/neData/mf/cdr/export',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data,
|
data,
|
||||||
responseType: 'blob',
|
responseType: 'blob',
|
||||||
@@ -13,10 +13,10 @@ import {
|
|||||||
import useDictStore from '@/store/modules/dict';
|
import useDictStore from '@/store/modules/dict';
|
||||||
import useNeInfoStore from '@/store/modules/neinfo';
|
import useNeInfoStore from '@/store/modules/neinfo';
|
||||||
import {
|
import {
|
||||||
delPSAPDataCDR,
|
delMFDataCDR,
|
||||||
exportPSAPDataCDR,
|
exportMFDataCDR,
|
||||||
listPSAPDataCDR,
|
listMFDataCDR,
|
||||||
} from '@/api/neData/psap';
|
} from '@/api/neData/mf';
|
||||||
import { parseDateToStr, parseDuration } from '@/utils/date-utils';
|
import { parseDateToStr, parseDuration } from '@/utils/date-utils';
|
||||||
import { OptionsType, WS } from '@/plugins/ws-websocket';
|
import { OptionsType, WS } from '@/plugins/ws-websocket';
|
||||||
import saveAs from 'file-saver';
|
import saveAs from 'file-saver';
|
||||||
@@ -67,7 +67,7 @@ let rangePickerPresets = ref([
|
|||||||
/**查询参数 */
|
/**查询参数 */
|
||||||
let queryParams = reactive({
|
let queryParams = reactive({
|
||||||
/**网元类型 */
|
/**网元类型 */
|
||||||
neType: 'PSAP',
|
neType: 'MF',
|
||||||
neId: '001',
|
neId: '001',
|
||||||
recordType: '',
|
recordType: '',
|
||||||
callerParty: '',
|
callerParty: '',
|
||||||
@@ -327,7 +327,7 @@ function fnRecordDelete(id: string) {
|
|||||||
onOk() {
|
onOk() {
|
||||||
modalState.confirmLoading = true;
|
modalState.confirmLoading = true;
|
||||||
const hide = message.loading(t('common.loading'), 0);
|
const hide = message.loading(t('common.loading'), 0);
|
||||||
delPSAPDataCDR(id)
|
delMFDataCDR(id)
|
||||||
.then(res => {
|
.then(res => {
|
||||||
if (res.code === RESULT_CODE_SUCCESS) {
|
if (res.code === RESULT_CODE_SUCCESS) {
|
||||||
message.success({
|
message.success({
|
||||||
@@ -380,7 +380,7 @@ function fnGetList(pageNum?: number) {
|
|||||||
queryParams.startTime = undefined;
|
queryParams.startTime = undefined;
|
||||||
queryParams.endTime = 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 (res.code === RESULT_CODE_SUCCESS && Array.isArray(res.rows)) {
|
||||||
// 取消勾选
|
// 取消勾选
|
||||||
if (tableState.selectedRowKeys.length > 0) {
|
if (tableState.selectedRowKeys.length > 0) {
|
||||||
@@ -424,14 +424,14 @@ function fnExportList() {
|
|||||||
const hide = message.loading(t('common.loading'), 0);
|
const hide = message.loading(t('common.loading'), 0);
|
||||||
const querys = toRaw(queryParams);
|
const querys = toRaw(queryParams);
|
||||||
querys.pageSize = 10000;
|
querys.pageSize = 10000;
|
||||||
exportPSAPDataCDR(querys)
|
exportMFDataCDR(querys)
|
||||||
.then(res => {
|
.then(res => {
|
||||||
if (res.code === RESULT_CODE_SUCCESS) {
|
if (res.code === RESULT_CODE_SUCCESS) {
|
||||||
message.success({
|
message.success({
|
||||||
content: t('common.operateOk'),
|
content: t('common.operateOk'),
|
||||||
duration: 3,
|
duration: 3,
|
||||||
});
|
});
|
||||||
saveAs(res.data, `psap_cdr_event_export_${Date.now()}.xlsx`);
|
saveAs(res.data, `MF_cdr_event_export_${Date.now()}.xlsx`);
|
||||||
} else {
|
} else {
|
||||||
message.error({
|
message.error({
|
||||||
content: `${res.msg}`,
|
content: `${res.msg}`,
|
||||||
@@ -534,7 +534,7 @@ onMounted(() => {
|
|||||||
if (res.data.length > 0) {
|
if (res.data.length > 0) {
|
||||||
let arr: Record<string, any>[] = [];
|
let arr: Record<string, any>[] = [];
|
||||||
res.data.forEach(i => {
|
res.data.forEach(i => {
|
||||||
if (i.neType === 'PSAP') {
|
if (i.neType === 'MF') {
|
||||||
arr.push({ value: i.neId, label: i.neName });
|
arr.push({ value: i.neId, label: i.neName });
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -570,7 +570,7 @@ 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="PSAP" name="neId ">
|
<a-form-item label="MF" name="neId ">
|
||||||
<a-select v-model:value="queryParams.neId" :options="neOtions" :placeholder="t('common.selectPlease')"
|
<a-select v-model:value="queryParams.neId" :options="neOtions" :placeholder="t('common.selectPlease')"
|
||||||
@change="fnQueryReset()" />
|
@change="fnQueryReset()" />
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
@@ -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(() => {
|
onMounted(() => {
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -104,12 +104,12 @@ let modalState: ModalStateType = reactive({
|
|||||||
from: {
|
from: {
|
||||||
id: undefined,
|
id: undefined,
|
||||||
neId: '001',
|
neId: '001',
|
||||||
neType: 'PSAP',
|
neType: 'MF',
|
||||||
neName: '',
|
neName: '',
|
||||||
ip: '',
|
ip: '',
|
||||||
port: 33030,
|
port: 33030,
|
||||||
pvFlag: 'PNF',
|
pvFlag: 'PNF',
|
||||||
rmUid: '4400HXPSAP001',
|
rmUid: '4400HXMF001',
|
||||||
neAddress: '',
|
neAddress: '',
|
||||||
dn: '',
|
dn: '',
|
||||||
vendorName: '',
|
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 */
|
/**表单修改网元neId */
|
||||||
function fnNeIdChange(e: any) {
|
function fnNeIdChange(e: any) {
|
||||||
const v = e.target.value;
|
const v = e.target.value;
|
||||||
if (v.length < 1) return;
|
if (v.length < 1) return;
|
||||||
modalState.from.rmUid = `4400HX${modalState.from.neType}${v}`; // 4400HX1PSAP001
|
modalState.from.rmUid = `4400HX${modalState.from.neType}${v}`; // 4400HX1MF001
|
||||||
}
|
}
|
||||||
|
|
||||||
/**表单修改网元IP */
|
/**表单修改网元IP */
|
||||||
|
|||||||
Reference in New Issue
Block a user