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