From f17e998e05e2217c7d34b9e6cfbf38eae323e47b Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Thu, 26 Oct 2023 18:05:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=B7=9F=E8=B8=AA=E4=BF=A1=E4=BB=A4?= =?UTF-8?q?=E6=8A=93=E5=8C=85upf=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/traceManage/pcap.ts | 6 +- src/i18n/locales/en-US.ts | 2 +- src/i18n/locales/zh-CN.ts | 2 +- src/views/traceManage/pcap/index.vue | 109 ++++++++++++++++++--------- 4 files changed, 77 insertions(+), 42 deletions(-) diff --git a/src/api/traceManage/pcap.ts b/src/api/traceManage/pcap.ts index d5ef4744..9b3ff45e 100644 --- a/src/api/traceManage/pcap.ts +++ b/src/api/traceManage/pcap.ts @@ -6,7 +6,7 @@ export function tcpdumpNeTask( data: Record ) { return request({ - url: '/api/rest/traceManagement/v1/tcpdumpNeTask', + url: '/tcpdump/ne', method: 'post', data: data, signal: signal, @@ -16,7 +16,7 @@ export function tcpdumpNeTask( // 网元抓包pcap文件下载 export function tcpdumpPcapDownload(data: Record) { return request({ - url: '/api/rest/traceManagement/v1/tcpdumpPcapDownload', + url: '/tcpdump/download', method: 'post', data: data, responseType: 'blob', @@ -26,7 +26,7 @@ export function tcpdumpPcapDownload(data: Record) { // 网元抓包生成pcap export function tcpdumpNeUPFTask(data: Record) { return request({ - url: '/api/rest/traceManagement/v1/tcpdumpNeUPFTask', + url: '/tcpdump/neUPF', method: 'post', data: data, }); diff --git a/src/i18n/locales/en-US.ts b/src/i18n/locales/en-US.ts index e4fb0217..48d9c82b 100644 --- a/src/i18n/locales/en-US.ts +++ b/src/i18n/locales/en-US.ts @@ -281,7 +281,7 @@ export default { runText: 'Execute', runTimeText: 'Execute {s} seconds', stopText: 'Interrupt', - capArgUPFPlease: 'Please enter the packet capture command supported by UPF', + capArgUPFPlease: 'Please select the packet capture command supported by UPF', capStart: 'Start capturing packets', capStop: 'Stop capturing packets', execTimeout: 'Execution timeout', diff --git a/src/i18n/locales/zh-CN.ts b/src/i18n/locales/zh-CN.ts index c1d05891..295a14e4 100644 --- a/src/i18n/locales/zh-CN.ts +++ b/src/i18n/locales/zh-CN.ts @@ -281,7 +281,7 @@ export default { runText: '执行', runTimeText: '执行 {s} 秒', stopText: '中断', - capArgUPFPlease: '请输入UPF支持的抓包命令', + capArgUPFPlease: '请选择UPF支持的抓包命令', capStart: '开始抓包', capStop: '停止抓包', execTimeout: '执行超时', diff --git a/src/views/traceManage/pcap/index.vue b/src/views/traceManage/pcap/index.vue index 4c0c1395..9449143b 100644 --- a/src/views/traceManage/pcap/index.vue +++ b/src/views/traceManage/pcap/index.vue @@ -1,5 +1,5 @@