diff --git a/src/views/system/quick-start/components/ConfigNeInfoPara5G.vue b/src/views/system/quick-start/components/ConfigNeInfoPara5G.vue index 098ba814..802d3952 100644 --- a/src/views/system/quick-start/components/ConfigNeInfoPara5G.vue +++ b/src/views/system/quick-start/components/ConfigNeInfoPara5G.vue @@ -3,6 +3,7 @@ import { Modal, message } from 'ant-design-vue/lib'; import { onMounted, reactive, toRaw } from 'vue'; import { fnToStepName } from '../hooks/useStep'; import useI18n from '@/hooks/useI18n'; +import { savePara5GFile } from '@/api/ne/neInfo'; const { t } = useI18n(); /**对象信息信息状态类型 */ @@ -56,6 +57,27 @@ let state: StateType = reactive({ confirmLoading: false, }); +/**保存信息 */ +function fnSave() { + if (state.confirmLoading) return; + state.confirmLoading = true; + savePara5GFile({ + fileType: 'yaml', + content: toRaw(state.from), + syncNe: state.sync ? state.syncNe : [], + }) + .then(res => { + if (state.sync) { + state.syncMsg = res.msg; + } else { + message.success('Save Success'); + } + }) + .finally(() => { + state.confirmLoading = false; + }); +} + /**返回上一步 */ function fnStepPrev() { Modal.confirm({ @@ -86,46 +108,208 @@ function fnStepNext(stepName: 'ConfigNeInfoPara5G') {