From 8e4c5d0b9020af0688bd7d0631dcdd3b7529317b Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Fri, 31 May 2024 15:08:55 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=BD=91=E5=85=83=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E5=AF=BC=E5=85=A5=E5=AF=BC?= =?UTF-8?q?=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/configManage/neManage.ts | 2 +- src/i18n/locales/en-US.ts | 13 + src/i18n/locales/zh-CN.ts | 13 + .../ne/neInfo/components/BackConfModal.vue | 337 ++++++++++++++++++ src/views/ne/neInfo/hooks/useNeOptions.ts | 1 - src/views/ne/neInfo/index.vue | 39 +- 6 files changed, 401 insertions(+), 4 deletions(-) create mode 100644 src/views/ne/neInfo/components/BackConfModal.vue diff --git a/src/api/configManage/neManage.ts b/src/api/configManage/neManage.ts index d7b980b7..aeb5d8d6 100644 --- a/src/api/configManage/neManage.ts +++ b/src/api/configManage/neManage.ts @@ -139,7 +139,7 @@ export async function delNeInfo(data: Record) { /** * 导出网元配置文件 - * @param + * @param data data {neType neId} * @returns bolb */ export function exportSet(data: Record) { diff --git a/src/i18n/locales/en-US.ts b/src/i18n/locales/en-US.ts index 9c3a2491..c9b1fcaa 100644 --- a/src/i18n/locales/en-US.ts +++ b/src/i18n/locales/en-US.ts @@ -650,6 +650,19 @@ export default { kpiTimer: 'Reporting Cycle', kpiTimerPlease: 'Please enter the reporting period (in seconds)', }, + backConf: { + export: 'Config Export', + import: 'Config Import', + title: 'Configuration File Import', + importType: 'Source of File', + server:'Server File', + local:'Local File', + localUpload:'Local Upload', + exportTip:'Confirm that you want to export the network element configuration file?', + exportMsg:'Exported successfully, please download from [Backup Management].', + filePlease: "Please upload a file", + fileNamePlease: 'Please select the server file', + }, }, neHost: { hostType: "Type", diff --git a/src/i18n/locales/zh-CN.ts b/src/i18n/locales/zh-CN.ts index f8f0ab80..db824e95 100644 --- a/src/i18n/locales/zh-CN.ts +++ b/src/i18n/locales/zh-CN.ts @@ -650,6 +650,19 @@ export default { kpiTimer: '上报周期', kpiTimerPlease: '请输入上报周期(单位秒)', }, + backConf: { + export: '配置导出', + import: '配置导入', + title: '配置文件导入', + importType: '文件来源', + server:'服务器文件', + local:'本地文件', + localUpload:'本地上传', + exportTip:'确认要导出网元配置信息到文件?', + exportMsg:'导出成功,请到【备份管理】进行下载', + filePlease: "请上传文件", + fileNamePlease: '请选择服务器文件', + }, }, neHost: { hostType: "主机类型", diff --git a/src/views/ne/neInfo/components/BackConfModal.vue b/src/views/ne/neInfo/components/BackConfModal.vue new file mode 100644 index 00000000..361c1229 --- /dev/null +++ b/src/views/ne/neInfo/components/BackConfModal.vue @@ -0,0 +1,337 @@ + + + + + diff --git a/src/views/ne/neInfo/hooks/useNeOptions.ts b/src/views/ne/neInfo/hooks/useNeOptions.ts index a354a9d0..dfbddc5c 100644 --- a/src/views/ne/neInfo/hooks/useNeOptions.ts +++ b/src/views/ne/neInfo/hooks/useNeOptions.ts @@ -1,4 +1,3 @@ -import { restartNf, startNf, stopNf } from '@/api/configManage/neManage'; import { RESULT_CODE_SUCCESS } from '@/constants/result-constants'; import { Modal, message } from 'ant-design-vue/lib'; import useI18n from '@/hooks/useI18n'; diff --git a/src/views/ne/neInfo/index.vue b/src/views/ne/neInfo/index.vue index e659ad49..dd03b02c 100644 --- a/src/views/ne/neInfo/index.vue +++ b/src/views/ne/neInfo/index.vue @@ -1,5 +1,5 @@