fix: 更新文件路径从 /tmp/omc/tcpdump 到 /usr/local/omc/tcpdump
This commit is contained in:
@@ -243,7 +243,7 @@ function fnDirCD(dir: string, index?: number) {
|
|||||||
queryParams.search = `${neType}_${queryParams.neId}`;
|
queryParams.search = `${neType}_${queryParams.neId}`;
|
||||||
} else {
|
} else {
|
||||||
nePathArr.value = [
|
nePathArr.value = [
|
||||||
`/tmp/omc/tcpdump/${neType.toLowerCase()}/${queryParams.neId}`,
|
`/usr/local/omc/tcpdump/${neType.toLowerCase()}/${queryParams.neId}`,
|
||||||
];
|
];
|
||||||
queryParams.search = '';
|
queryParams.search = '';
|
||||||
}
|
}
|
||||||
@@ -269,7 +269,7 @@ function fnNeChange(keys: any, _: any) {
|
|||||||
nePathArr.value = ['/tmp'];
|
nePathArr.value = ['/tmp'];
|
||||||
queryParams.search = `${neType}_${neId}`;
|
queryParams.search = `${neType}_${neId}`;
|
||||||
} else {
|
} else {
|
||||||
nePathArr.value = [`/tmp/omc/tcpdump/${neType.toLowerCase()}/${neId}`];
|
nePathArr.value = [`/usr/local/omc/tcpdump/${neType.toLowerCase()}/${neId}`];
|
||||||
queryParams.search = '';
|
queryParams.search = '';
|
||||||
}
|
}
|
||||||
fnGetList(1);
|
fnGetList(1);
|
||||||
@@ -292,9 +292,10 @@ function fnGetList(pageNum?: number) {
|
|||||||
}
|
}
|
||||||
queryParams.path = nePathArr.value.join('/');
|
queryParams.path = nePathArr.value.join('/');
|
||||||
listNeFiles(toRaw(queryParams)).then(res => {
|
listNeFiles(toRaw(queryParams)).then(res => {
|
||||||
if (res.code === RESULT_CODE_SUCCESS && Array.isArray(res.rows)) {
|
if (res.code === RESULT_CODE_SUCCESS) {
|
||||||
tablePagination.total = res.total;
|
const { total, rows } = res.data;
|
||||||
tableState.data = res.rows;
|
tablePagination.total = total;
|
||||||
|
tableState.data = rows;
|
||||||
if (
|
if (
|
||||||
tablePagination.total <=
|
tablePagination.total <=
|
||||||
(queryParams.pageNum - 1) * tablePagination.pageSize &&
|
(queryParams.pageNum - 1) * tablePagination.pageSize &&
|
||||||
|
|||||||
@@ -438,7 +438,7 @@ function fnDownPCAP(row?: Record<string, any>) {
|
|||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
const { neType, neId } = from.data;
|
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(
|
reqArr.push(
|
||||||
getNeDirZip({
|
getNeDirZip({
|
||||||
neType,
|
neType,
|
||||||
@@ -518,7 +518,7 @@ function fnModalVisibleByVive(id: string | number) {
|
|||||||
const from = modalState.from[id];
|
const from = modalState.from[id];
|
||||||
if (!from) return;
|
if (!from) return;
|
||||||
const { neType, neId } = from.data;
|
const { neType, neId } = from.data;
|
||||||
const path = `/tmp/omc/tcpdump/${neType.toLowerCase()}/${neId}/${
|
const path = `/usr/local/omc/tcpdump/${neType.toLowerCase()}/${neId}/${
|
||||||
from.taskCode
|
from.taskCode
|
||||||
}`;
|
}`;
|
||||||
const files = from.taskFiles.filter(f => f.endsWith('log'));
|
const files = from.taskFiles.filter(f => f.endsWith('log'));
|
||||||
|
|||||||
Reference in New Issue
Block a user