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",
sysloginLog:'System Login Log',
sysOperateLog:'System Operation Log',
neLog:'NE Log',
cdrIMS:'CDR IMS Voice',
cdrSMF:'CDR SMF Data',
cdrSMSC:'CDR SMSC SMS',

View File

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

View File

@@ -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<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) {
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(() => {
<span>{{ t('views.logManage.neFile.nePath') }}:</span>&nbsp;
<a-col>
<a-breadcrumb>
<a-breadcrumb-item>
{{ queryParams.path }}
<a-breadcrumb-item
v-for="(path, index) in nePathArr"
:key="path"
@click="fnDirCD(path, index)"
>
{{ path }}
</a-breadcrumb-item>
</a-breadcrumb>
</a-col>
@@ -463,6 +496,15 @@ onMounted(() => {
<template #icon><DeleteOutlined /></template>
</a-button>
</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>
</template>
</template>