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 @@