fix: 接口变更
This commit is contained in:
@@ -64,7 +64,6 @@ function fnModalOk() {
|
||||
if (state.confirmLoading) return;
|
||||
state.confirmLoading = true;
|
||||
savePara5GFile({
|
||||
fileType: 'yaml',
|
||||
content: toRaw(state.from),
|
||||
syncNe: state.sync ? state.syncNe : [],
|
||||
})
|
||||
@@ -96,7 +95,7 @@ function fnSaveData() {
|
||||
function fnGetData() {
|
||||
if (state.confirmLoading) return;
|
||||
state.confirmLoading = true;
|
||||
getPara5GFilee('yaml')
|
||||
getPara5GFilee()
|
||||
.then(res => {
|
||||
if (typeof res.data === 'object') {
|
||||
Object.assign(state.from, res.data);
|
||||
|
||||
@@ -4,7 +4,11 @@ import { message, Form, Modal } from 'ant-design-vue/lib';
|
||||
import useI18n from '@/hooks/useI18n';
|
||||
import { RESULT_CODE_SUCCESS } from '@/constants/result-constants';
|
||||
import useNeInfoStore from '@/store/modules/neinfo';
|
||||
import { addNeInfo, updateNeInfo, getTypeAndIDNeInfo } from '@/api/ne/neInfo';
|
||||
import {
|
||||
addNeInfo,
|
||||
updateNeInfo,
|
||||
getNeInfoByTypeAndIDNe,
|
||||
} from '@/api/ne/neInfo';
|
||||
import { NE_TYPE_LIST } from '@/constants/ne-constants';
|
||||
import { stepState } from '../hooks/useStep';
|
||||
const { t } = useI18n();
|
||||
@@ -115,7 +119,7 @@ function fnNeInfo() {
|
||||
.validate()
|
||||
.then(e => {
|
||||
modalState.confirmLoading = true;
|
||||
return getTypeAndIDNeInfo(from.neType, from.neId);
|
||||
return getNeInfoByTypeAndIDNe(from.neType, from.neId);
|
||||
})
|
||||
.then(res => {
|
||||
if (res.code === RESULT_CODE_SUCCESS) {
|
||||
|
||||
Reference in New Issue
Block a user