From 6f8b1000ba764d260ae988d5e05d686b9e08c58a Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Thu, 25 Apr 2024 14:21:08 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=BC=80=E7=AB=99=E7=BD=91=E5=85=83?= =?UTF-8?q?=E5=85=AC=E5=91=8A=E5=8F=82=E6=95=B0=E9=85=8D=E7=BD=AE=E8=A1=A8?= =?UTF-8?q?=E5=8D=95=E5=A1=AB=E5=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/ConfigNeInfoPara5G.vue | 248 +++++++++++++++--- 1 file changed, 216 insertions(+), 32 deletions(-) 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') {