diff --git a/src/i18n/locales/en-US.ts b/src/i18n/locales/en-US.ts index 1d0b9b32..8b737b2c 100644 --- a/src/i18n/locales/en-US.ts +++ b/src/i18n/locales/en-US.ts @@ -1361,6 +1361,7 @@ export default { deleteTipErr: "Failed to delete file", sysloginLog:'System Login Log', sysOperateLog:'System Operation Log', + neLog:'NE Log', cdrIMS:'CDR IMS Voice', cdrSMF:'CDR SMF Data', cdrSMSC:'CDR SMSC SMS', diff --git a/src/i18n/locales/zh-CN.ts b/src/i18n/locales/zh-CN.ts index f577e405..62735333 100644 --- a/src/i18n/locales/zh-CN.ts +++ b/src/i18n/locales/zh-CN.ts @@ -1361,6 +1361,7 @@ export default { deleteTipErr: "文件删除失败", sysloginLog:'系统登录日志', sysOperateLog:'系统操作日志', + neLog:'网元日志', cdrIMS:'话单 IMS 语音', cdrSMF:'话单 SMF 数据', cdrSMSC:'话单 SMSC 短信', diff --git a/src/views/logManage/exportFile/index.vue b/src/views/logManage/exportFile/index.vue index 4e4765dd..b5e10609 100644 --- a/src/views/logManage/exportFile/index.vue +++ b/src/views/logManage/exportFile/index.vue @@ -30,6 +30,13 @@ 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: '/cdr/ims', label: t('views.logManage.exportFile.cdrIMS'), @@ -284,9 +291,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 = opt.value; fnGetList(1); @@ -388,8 +417,12 @@ onMounted(() => { {{ t('views.logManage.neFile.nePath') }}:  - - {{ queryParams.path }} + + {{ path }} @@ -463,6 +496,15 @@ onMounted(() => { + + + {{ t('views.logManage.neFile.dirCd') }} +