fix: 更新文件路径从 /tmp/omc/tcpdump 到 /usr/local/omc/tcpdump

This commit is contained in:
TsMask
2025-06-11 19:20:47 +08:00
parent f14316256c
commit 1723d314c5
2 changed files with 9 additions and 8 deletions

View File

@@ -243,7 +243,7 @@ function fnDirCD(dir: string, index?: number) {
queryParams.search = `${neType}_${queryParams.neId}`;
} else {
nePathArr.value = [
`/tmp/omc/tcpdump/${neType.toLowerCase()}/${queryParams.neId}`,
`/usr/local/omc/tcpdump/${neType.toLowerCase()}/${queryParams.neId}`,
];
queryParams.search = '';
}
@@ -269,7 +269,7 @@ function fnNeChange(keys: any, _: any) {
nePathArr.value = ['/tmp'];
queryParams.search = `${neType}_${neId}`;
} else {
nePathArr.value = [`/tmp/omc/tcpdump/${neType.toLowerCase()}/${neId}`];
nePathArr.value = [`/usr/local/omc/tcpdump/${neType.toLowerCase()}/${neId}`];
queryParams.search = '';
}
fnGetList(1);
@@ -292,9 +292,10 @@ function fnGetList(pageNum?: number) {
}
queryParams.path = nePathArr.value.join('/');
listNeFiles(toRaw(queryParams)).then(res => {
if (res.code === RESULT_CODE_SUCCESS && Array.isArray(res.rows)) {
tablePagination.total = res.total;
tableState.data = res.rows;
if (res.code === RESULT_CODE_SUCCESS) {
const { total, rows } = res.data;
tablePagination.total = total;
tableState.data = rows;
if (
tablePagination.total <=
(queryParams.pageNum - 1) * tablePagination.pageSize &&
@@ -433,7 +434,7 @@ onMounted(() => {
<template #icon><DownloadOutlined /></template>
{{ t('common.downloadText') }}
</a-button>
<a-button
type="link"
@click.prevent="fnDrawerOpen(record)"

View File

@@ -438,7 +438,7 @@ function fnDownPCAP(row?: Record<string, any>) {
);
} else {
const { neType, neId } = from.data;
const path = `/tmp/omc/tcpdump/${neType.toLowerCase()}/${neId}/${taskCode}`;
const path = `/usr/local/omc/tcpdump/${neType.toLowerCase()}/${neId}/${taskCode}`;
reqArr.push(
getNeDirZip({
neType,
@@ -518,7 +518,7 @@ function fnModalVisibleByVive(id: string | number) {
const from = modalState.from[id];
if (!from) return;
const { neType, neId } = from.data;
const path = `/tmp/omc/tcpdump/${neType.toLowerCase()}/${neId}/${
const path = `/usr/local/omc/tcpdump/${neType.toLowerCase()}/${neId}/${
from.taskCode
}`;
const files = from.taskFiles.filter(f => f.endsWith('log'));