diff --git a/src/i18n/locales/en-US.ts b/src/i18n/locales/en-US.ts index 5ed21c24..88814a1a 100644 --- a/src/i18n/locales/en-US.ts +++ b/src/i18n/locales/en-US.ts @@ -1316,6 +1316,7 @@ export default { deleteTipErr: "Failed to delete file", sysloginLog:'System Login Log', sysOperateLog:'System Operation Log', + neLog:'NE Log', cdrIMS:'CDR Voice', cdrSMF:'CDR Data', cdrSMSC:'CDR SMS', diff --git a/src/i18n/locales/zh-CN.ts b/src/i18n/locales/zh-CN.ts index 15ea9cbd..60ae57c9 100644 --- a/src/i18n/locales/zh-CN.ts +++ b/src/i18n/locales/zh-CN.ts @@ -1316,6 +1316,7 @@ export default { deleteTipErr: "文件删除失败", sysloginLog:'系统登录日志', sysOperateLog:'系统操作日志', + neLog:'网元日志', cdrIMS:'语音话单', cdrSMF:'数据话单', cdrSMSC:'短信话单', diff --git a/src/views/tool/files/logBackup/index.vue b/src/views/tool/files/logBackup/index.vue index 2fe90346..8c0b26e2 100644 --- a/src/views/tool/files/logBackup/index.vue +++ b/src/views/tool/files/logBackup/index.vue @@ -28,6 +28,11 @@ let sourceState = reactive({ label: t('views.logManage.exportFile.sysOperateLog'), path: '/usr/local/omc/backup', }, + { + value: '/log/ne_log', + label: t('views.logManage.exportFile.neLog'), + path: '/usr/local/omc/backup', + }, ], /**选择value */ value: undefined, @@ -216,9 +221,31 @@ function fnRecordDelete(row: Record) { }); } +/**访问路径 */ +let nePathArr = ref([]); +/**进入目录 */ +function fnDirCD(dir: string, index?: number) { + if (index === undefined) { + nePathArr.value.push(dir); + queryParams.path = nePathArr.value.join('/'); + fnGetList(1); + return; + } + if (index === 0) { + nePathArr.value = [nePathArr.value[0]]; + queryParams.path = nePathArr.value.join('/'); + fnGetList(1); + } else { + nePathArr.value = nePathArr.value.slice(0, index + 1); + queryParams.path = nePathArr.value.join('/'); + fnGetList(1); + } +} + /**网元类型选择对应修改 */ function fnNeChange(_: any, opt: any) { - queryParams.path = `${opt.path}${opt.value}`; + nePathArr.value = [`${opt.path}${opt.value}`]; + queryParams.path = nePathArr.value.join('/'); ftpInfo.path = queryParams.path; ftpInfo.tag = ''; fnGetList(1); @@ -313,8 +340,12 @@ function fnSyncFileToFTP(fileName: string) { {{ t('views.logManage.neFile.nePath') }}:  - - {{ queryParams.path }} + + {{ path }} @@ -388,6 +419,15 @@ function fnSyncFileToFTP(fileName: string) { + + + {{ t('views.logManage.neFile.dirCd') }} +