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 @@ /> + +