diff --git a/src/api/trace/task.ts b/src/api/trace/task.ts index f48ac1db..e5620942 100644 --- a/src/api/trace/task.ts +++ b/src/api/trace/task.ts @@ -65,6 +65,21 @@ export async function delTraceTask(ids: string) { }); } +/** + * 跟踪任务文件 + * @param query 对象 + * @returns object + */ +export function filePullTask(traceId: string) { + return request({ + url: '/trace/task/filePull', + method: 'get', + params: { traceId }, + responseType: 'blob', + timeout: 60_000, + }); +} + /** * 获取网元跟踪接口列表 * @returns object diff --git a/src/i18n/locales/en-US.ts b/src/i18n/locales/en-US.ts index 890401d9..3a4d3601 100644 --- a/src/i18n/locales/en-US.ts +++ b/src/i18n/locales/en-US.ts @@ -1126,9 +1126,7 @@ export default { stopNotRun: "{title} not running", }, task: { - neTypePlease: 'Query network element type', - neType: 'NE Type', - neID: 'NE ID', + traceId: 'Tracing No', trackType: 'Tracing Type', trackTypePlease: 'Please select a tracing type', creater: 'Created by', @@ -1165,6 +1163,7 @@ export default { delTaskTip: 'Are you sure to delete the data item with record ID {id} ?', stopTask: 'Successful cessation of tasks {id}', stopTaskTip: 'Confirm stopping the task with record ID {id} ?', + pcapView: "Tracking Data Analysis", traceFile: "Tracking File", errMsg: "Error Message", imsiORmsisdn: "imsi or msisdn is null, cannot start task", diff --git a/src/i18n/locales/zh-CN.ts b/src/i18n/locales/zh-CN.ts index c5c07ff9..ac006a9e 100644 --- a/src/i18n/locales/zh-CN.ts +++ b/src/i18n/locales/zh-CN.ts @@ -1126,9 +1126,7 @@ export default { stopNotRun: "{title} 任务未运行", }, task: { - neTypePlease: '请选择网元类型', - neType: '网元类型', - neID: '网元内部标识', + traceId: '跟踪编号', trackType: '跟踪类型', trackTypePlease: '请选择跟踪类型', creater: '创建人', @@ -1165,6 +1163,7 @@ export default { delTaskTip: '确认删除记录编号为 {id} 的数据项?', stopTask: '成功停止任务 {id}', stopTaskTip: '确认停止记录编号为 {id} 的任务?', + pcapView: "跟踪数据分析", traceFile: "跟踪文件", errMsg: "错误信息", imsiORmsisdn: "imsi 或 msisdn 是空值,不能开始任务", diff --git a/src/views/traceManage/task/analyze.vue b/src/views/traceManage/task/analyze.vue new file mode 100644 index 00000000..ad90b71b --- /dev/null +++ b/src/views/traceManage/task/analyze.vue @@ -0,0 +1,287 @@ + + + + + + + + + + {{ t('common.close') }} + + + 跟踪编号: + {{ traceId }} + + + + + + {{ state.currentFilter }} + + Matched Frame: {{ state.totalFrames }} + + + + + + + + Type: + {{ state.summary.file_type }} + + + Encapsulation: + {{ state.summary.file_encap_type }} + + + Packets: + {{ state.summary.packet_count }} + + + Duration: + {{ Math.round(state.summary.elapsed_time) }}s + + + + + + + + + + + + + + + + Filter + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/traceManage/task/index.vue b/src/views/traceManage/task/index.vue index 4c7cdab2..4cb13711 100644 --- a/src/views/traceManage/task/index.vue +++ b/src/views/traceManage/task/index.vue @@ -1,11 +1,13 @@