From 957868cc274f1b729a95bb40de4107ae80590429 Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Sun, 28 Apr 2024 10:23:14 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=BC=80=E7=AB=99=E7=BD=91=E5=85=83?= =?UTF-8?q?=E5=AE=89=E8=A3=85=E6=AD=A5=E9=AA=A4=E8=BF=9B=E5=BA=A6=E7=9A=84?= =?UTF-8?q?=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system/quick-start/components/Done.vue | 112 ++++++- .../{ConfigNeInfo.vue => NeInfoConfig.vue} | 142 +++------ ...eInfoPara5G.vue => NeInfoConfigPara5G.vue} | 33 +- ...eInstall.vue => NeInfoSoftwareInstall.vue} | 76 +++-- .../components/NeInfoSoftwareLicense.vue | 296 ++++++++++++++++++ .../components/SoftwareLicense.vue | 15 - .../system/quick-start/components/Start.vue | 2 +- .../{ConfigSystem.vue => SystemConfig.vue} | 13 +- src/views/system/quick-start/hooks/useStep.ts | 49 ++- src/views/system/quick-start/index.vue | 16 + 10 files changed, 566 insertions(+), 188 deletions(-) rename src/views/system/quick-start/components/{ConfigNeInfo.vue => NeInfoConfig.vue} (86%) rename src/views/system/quick-start/components/{ConfigNeInfoPara5G.vue => NeInfoConfigPara5G.vue} (94%) rename src/views/system/quick-start/components/{SoftwareInstall.vue => NeInfoSoftwareInstall.vue} (85%) create mode 100644 src/views/system/quick-start/components/NeInfoSoftwareLicense.vue delete mode 100644 src/views/system/quick-start/components/SoftwareLicense.vue rename src/views/system/quick-start/components/{ConfigSystem.vue => SystemConfig.vue} (95%) diff --git a/src/views/system/quick-start/components/Done.vue b/src/views/system/quick-start/components/Done.vue index ac285423..135a06af 100644 --- a/src/views/system/quick-start/components/Done.vue +++ b/src/views/system/quick-start/components/Done.vue @@ -1,15 +1,71 @@ - + diff --git a/src/views/system/quick-start/components/ConfigNeInfo.vue b/src/views/system/quick-start/components/NeInfoConfig.vue similarity index 86% rename from src/views/system/quick-start/components/ConfigNeInfo.vue rename to src/views/system/quick-start/components/NeInfoConfig.vue index 1879a2ea..8614c188 100644 --- a/src/views/system/quick-start/components/ConfigNeInfo.vue +++ b/src/views/system/quick-start/components/NeInfoConfig.vue @@ -268,27 +268,28 @@ function fnSaveFinishFailed(e: any) { function fnStepPrev() { Modal.confirm({ title: t('common.tipTitle'), - content: '确认要放弃当前变更返回上一步吗?', + content: '确认要退出网元安装吗?', onOk() { - fnToStepName('ConfigSystem'); + fnToStepName('SystemConfig'); }, }); } /**下一步操作 */ -function fnStepNext(stepName: 'ConfigNeInfoPara5G') { - if (stepName === 'ConfigNeInfoPara5G') { +function fnStepNext(stepName: 'NeInfoConfigPara5G') { + if (stepName === 'NeInfoConfigPara5G') { Modal.confirm({ title: t('common.tipTitle'), content: '确认要下一步进行各网元公共参数的设置?', onOk() { - fnToStepName('ConfigNeInfoPara5G'); + fnToStepName('NeInfoConfigPara5G'); }, }); } } -function fnInit() { +/**获取列表 */ +function fnGetList() { listAllNeInfo({ bandHost: true, }).then(res => { @@ -315,25 +316,26 @@ onMounted(() => { getDict('ne_host_type'), getDict('ne_host_groupId'), getDict('ne_host_authMode'), - ]).then(resArr => { - if (resArr[0].status === 'fulfilled') { - dict.neHostType = resArr[0].value; - } - if (resArr[1].status === 'fulfilled') { - dict.neHostGroupId = resArr[1].value; - } - if (resArr[2].status === 'fulfilled') { - dict.neHostAuthMode = resArr[2].value; - } - }); - fnInit(); + ]) + .then(resArr => { + if (resArr[0].status === 'fulfilled') { + dict.neHostType = resArr[0].value; + } + if (resArr[1].status === 'fulfilled') { + dict.neHostGroupId = resArr[1].value; + } + if (resArr[2].status === 'fulfilled') { + dict.neHostAuthMode = resArr[2].value; + } + }) + .finally(() => { + fnGetList(); + }); });