feat: 备份网元日志文件数据查看

This commit is contained in:
TsMask
2025-10-14 11:08:39 +08:00
parent 174a7afc47
commit 5ea56e779a
3 changed files with 47 additions and 3 deletions

View File

@@ -1361,6 +1361,7 @@ export default {
deleteTipErr: "Failed to delete file", deleteTipErr: "Failed to delete file",
sysloginLog:'System Login Log', sysloginLog:'System Login Log',
sysOperateLog:'System Operation Log', sysOperateLog:'System Operation Log',
neLog:'NE Log',
cdrIMS:'CDR IMS Voice', cdrIMS:'CDR IMS Voice',
cdrSMF:'CDR SMF Data', cdrSMF:'CDR SMF Data',
cdrSMSC:'CDR SMSC SMS', cdrSMSC:'CDR SMSC SMS',

View File

@@ -1361,6 +1361,7 @@ export default {
deleteTipErr: "文件删除失败", deleteTipErr: "文件删除失败",
sysloginLog:'系统登录日志', sysloginLog:'系统登录日志',
sysOperateLog:'系统操作日志', sysOperateLog:'系统操作日志',
neLog:'网元日志',
cdrIMS:'话单 IMS 语音', cdrIMS:'话单 IMS 语音',
cdrSMF:'话单 SMF 数据', cdrSMF:'话单 SMF 数据',
cdrSMSC:'话单 SMSC 短信', cdrSMSC:'话单 SMSC 短信',

View File

@@ -30,6 +30,13 @@ let sourceState = reactive({
label: t('views.logManage.exportFile.sysOperateLog'), label: t('views.logManage.exportFile.sysOperateLog'),
path: '/usr/local/omc/backup', path: '/usr/local/omc/backup',
}, },
{
value: '/log/ne_log',
label: t('views.logManage.exportFile.neLog'),
path: '/usr/local/omc/backup',
},
{ {
value: '/cdr/ims', value: '/cdr/ims',
label: t('views.logManage.exportFile.cdrIMS'), label: t('views.logManage.exportFile.cdrIMS'),
@@ -284,9 +291,31 @@ function fnRecordDelete(row: Record<string, any>) {
}); });
} }
/**访问路径 */
let nePathArr = ref<string[]>([]);
/**进入目录 */
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) { 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.path = queryParams.path;
ftpInfo.tag = opt.value; ftpInfo.tag = opt.value;
fnGetList(1); fnGetList(1);
@@ -388,8 +417,12 @@ onMounted(() => {
<span>{{ t('views.logManage.neFile.nePath') }}:</span>&nbsp; <span>{{ t('views.logManage.neFile.nePath') }}:</span>&nbsp;
<a-col> <a-col>
<a-breadcrumb> <a-breadcrumb>
<a-breadcrumb-item> <a-breadcrumb-item
{{ queryParams.path }} v-for="(path, index) in nePathArr"
:key="path"
@click="fnDirCD(path, index)"
>
{{ path }}
</a-breadcrumb-item> </a-breadcrumb-item>
</a-breadcrumb> </a-breadcrumb>
</a-col> </a-col>
@@ -463,6 +496,15 @@ onMounted(() => {
<template #icon><DeleteOutlined /></template> <template #icon><DeleteOutlined /></template>
</a-button> </a-button>
</a-tooltip> </a-tooltip>
<a-button
type="link"
:loading="downLoading"
@click.prevent="fnDirCD(record.fileName)"
v-if="record.fileType === 'dir'"
>
<template #icon><FolderOutlined /></template>
{{ t('views.logManage.neFile.dirCd') }}
</a-button>
</a-space> </a-space>
</template> </template>
</template> </template>