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

@@ -9,7 +9,6 @@ import { addNeInfo, updateNeInfo, getNeInfo } from '@/api/ne/neInfo';
import { neHostAuthorizedRSA, testNeHost } from '@/api/ne/neHost';
import useDictStore from '@/store/modules/dict';
import useI18n from '@/hooks/useI18n';
import { currentCoreUid } from '@/hooks/useCoreUid';
const { getDict } = useDictStore();
const { t } = useI18n();
const emit = defineEmits(['ok', 'cancel', 'update:open']);
@@ -22,10 +21,6 @@ const props = defineProps({
type: Number,
default: 0,
},
coreUid: {
type: String,
default: '',
},
});
/**字典数据 */
@@ -113,7 +108,6 @@ let modalState: ModalStateType = reactive({
ipAddr: '',
port: 33030,
pvFlag: 'PNF',
coreUid: currentCoreUid(),
neUid: '',
macAddr: '',
dn: '',
@@ -202,11 +196,10 @@ function modalStateFromEqualIPV4AndIPV6(
/**
* 对话框弹出显示为 新增或者修改
* @param coreUid 核心网ID
* @param neUid 网元ID
* @param id 网元ID
*/
function fnModalVisibleByEdit(coreUid: string, id: number) {
if (!coreUid || !id) {
function fnModalVisibleByEdit(id: number) {
if (!id) {
modalStateFrom.resetFields();
modalState.title = t('views.ne.neInfo.addTitle');
modalState.openByEdit = true;
@@ -214,7 +207,7 @@ function fnModalVisibleByEdit(coreUid: string, id: number) {
if (modalState.confirmLoading) return;
const hide = message.loading(t('common.loading'), 0);
modalState.confirmLoading = true;
getNeInfo(coreUid, id).then(res => {
getNeInfo(id).then(res => {
modalState.confirmLoading = false;
hide();
if (res.code === RESULT_CODE_SUCCESS) {
@@ -329,7 +322,7 @@ function fnNeIPChange(e: any) {
watch(
() => props.open,
val => {
if (val) fnModalVisibleByEdit(props.coreUid, props.id);
if (val) fnModalVisibleByEdit(props.id);
}
);