From 7eaec22372b109d8a3f6ea06ab7a4f28d909a990 Mon Sep 17 00:00:00 2001 From: zhanghao <774378400@qq.com> Date: Wed, 26 Aug 2026 11:41:23 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E9=9F=B3=E9=A2=91?= =?UTF-8?q?=E6=A0=A1=E6=AD=A3=E5=8A=9F=E8=83=BD=EF=BC=8C=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E9=9F=B3=E9=A2=91=E6=A0=A1=E6=AD=A3=E5=AF=B9=E8=AF=9D=E6=A1=86?= =?UTF-8?q?=E5=92=8C=E7=9B=B8=E5=85=B3=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/flow/flow.js | 8 + src/views/flow/audioTypes.js | 8 + .../flow/components/AudioCorrectionDialog.vue | 162 ++++++++++++++++++ src/views/flow/components/NodeState.vue | 10 ++ .../flow/components/TaskExecutionLog.vue | 92 +++++++++- .../components/params/MediaAnalysisParams.vue | 8 +- src/views/flow/nodes/common/serviceNode.vue | 58 +++++++ 7 files changed, 330 insertions(+), 16 deletions(-) create mode 100644 src/views/flow/audioTypes.js create mode 100644 src/views/flow/components/AudioCorrectionDialog.vue diff --git a/src/api/flow/flow.js b/src/api/flow/flow.js index d8ea37b..7a8b6af 100644 --- a/src/api/flow/flow.js +++ b/src/api/flow/flow.js @@ -90,6 +90,14 @@ export function flowStop(instId) { }) } +export function submitAudioCorrection(nodeInstId, data) { + return request({ + url: `/flow/audio-correction/${encodeURIComponent(nodeInstId)}`, + method: 'post', + data, + }) +} + export function getArmStatus(params) { return request({ url: '/api/arm/getPose', diff --git a/src/views/flow/audioTypes.js b/src/views/flow/audioTypes.js new file mode 100644 index 0000000..1e6c08e --- /dev/null +++ b/src/views/flow/audioTypes.js @@ -0,0 +1,8 @@ +export const soundTypeOptions = [ + { label: '开机', value: 'POWER_ON' }, + { label: '关机', value: 'POWER_OFF' }, + { label: '设防', value: 'ARMED' }, + { label: '解防', value: 'DISARMED' }, + { label: '鸣笛寻车', value: 'FIND_VEHICLE_HORN' }, + { label: '未知', value: 'UNKNOWN' }, +] diff --git a/src/views/flow/components/AudioCorrectionDialog.vue b/src/views/flow/components/AudioCorrectionDialog.vue new file mode 100644 index 0000000..3827dfa --- /dev/null +++ b/src/views/flow/components/AudioCorrectionDialog.vue @@ -0,0 +1,162 @@ + + + + + diff --git a/src/views/flow/components/NodeState.vue b/src/views/flow/components/NodeState.vue index d53e966..f13622e 100644 --- a/src/views/flow/components/NodeState.vue +++ b/src/views/flow/components/NodeState.vue @@ -13,6 +13,9 @@ {{ stateText }} {{ props.runtimes }} ms +
+ +
{{ analysisOf(log).title }} · {{ analysisOf(log).statusLabel }} + + {{ audioCorrectionStateOf(log) ? '重新判断' : '人工判断' }} + 模型:{{ analysisOf(log).modelName }} @@ -120,12 +130,20 @@ /> + +