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

This commit is contained in:
TsMask
2025-10-13 17:32:54 +08:00
parent b7fa412733
commit 49b78d9933
3 changed files with 45 additions and 3 deletions

View File

@@ -1316,6 +1316,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 Voice', cdrIMS:'CDR Voice',
cdrSMF:'CDR Data', cdrSMF:'CDR Data',
cdrSMSC:'CDR SMS', cdrSMSC:'CDR SMS',

View File

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

View File

@@ -28,6 +28,11 @@ 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 */ /**选择value */
value: undefined, value: undefined,
@@ -216,9 +221,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 = ''; ftpInfo.tag = '';
fnGetList(1); fnGetList(1);
@@ -313,8 +340,12 @@ function fnSyncFileToFTP(fileName: string) {
<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>
@@ -388,6 +419,15 @@ function fnSyncFileToFTP(fileName: string) {
<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>