From 1723d314c594e93f062a6ae6125a49c1f5589403 Mon Sep 17 00:00:00 2001
From: TsMask <340112800@qq.com>
Date: Wed, 11 Jun 2025 19:20:47 +0800
Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9B=B4=E6=96=B0=E6=96=87=E4=BB=B6?=
=?UTF-8?q?=E8=B7=AF=E5=BE=84=E4=BB=8E=20/tmp/omc/tcpdump=20=E5=88=B0=20/u?=
=?UTF-8?q?sr/local/omc/tcpdump?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/traceManage/pcap/file.vue | 13 +++++++------
src/views/traceManage/pcap/index.vue | 4 ++--
2 files changed, 9 insertions(+), 8 deletions(-)
diff --git a/src/views/traceManage/pcap/file.vue b/src/views/traceManage/pcap/file.vue
index f5ae6271..47c7a6ad 100644
--- a/src/views/traceManage/pcap/file.vue
+++ b/src/views/traceManage/pcap/file.vue
@@ -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(() => {
{{ t('common.downloadText') }}
-
+
) {
);
} 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'));