ref: v3变更,,表结构对应相关接口功能

This commit is contained in:
TsMask
2025-09-15 11:02:28 +08:00
parent 54cf296d2f
commit 2f839f7178
117 changed files with 2008 additions and 2076 deletions

View File

@@ -6,7 +6,6 @@ import { RESULT_CODE_SUCCESS } from '@/constants/result-constants';
import { regExpIPv4, regExpIPv6 } from '@/utils/regular-utils';
import useDictStore from '@/store/modules/dict';
import useI18n from '@/hooks/useI18n';
import { currentCoreUid } from '@/hooks/useCoreUid';
import {
addTraceTask,
delTraceTask,
@@ -23,11 +22,6 @@ const props = defineProps({
type: Boolean,
default: false,
},
coreUid: {
type: String,
default: '',
required: true,
},
id: {
type: Number,
default: 0,
@@ -65,7 +59,8 @@ type ModalStateType = {
/**表单数据 */
from: {
id?: string;
neList: string; // 网元列表 neType_neUid 例如 UDM_001,AMF_001
coreId: number; // 核心网元ID
neIds: string; // 网元ID列表 例如 1,3
startTime?: number;
endTime?: number;
title: string;
@@ -96,8 +91,8 @@ let modalState: ModalStateType = reactive({
timeRangePicker: undefined,
from: {
id: undefined,
coreUid: currentCoreUid(),
neList: '',
coreId: 0,
neIds: '',
traceId: undefined,
startTime: undefined,
endTime: undefined,
@@ -190,16 +185,16 @@ function fnNeChange(p: any, c: any) {
const v = p[i];
if (v.length === 1) {
c[i][0].children.forEach((item: any) => {
neList.push(`${item.neType}_${item.neUid}`);
neList.push(`${item.id}`);
});
} else if (v.length === 2) {
neList.push(`${v[0]}_${v[1]}`);
}
}
if (neList.length > 0) {
modalState.from.neList = neList.join(',');
modalState.from.neIds = neList.join(',');
} else {
modalState.from.neList = '';
modalState.from.neIds = '';
}
}
@@ -242,7 +237,7 @@ function fnModalOpenByEdit() {
if (modalState.confirmLoading) return;
const hide = message.loading(t('common.loading'), 0);
modalState.confirmLoading = true;
getTraceTask(props.coreUid, props.id).then(res => {
getTraceTask(props.id).then(res => {
modalState.confirmLoading = false;
hide();
if (res.code === RESULT_CODE_SUCCESS && res.data) {