修复讲解业务 API 数据源配置

This commit is contained in:
lyf
2026-07-07 18:05:42 +08:00
parent eaec80bdc3
commit 349f9b03e5
9 changed files with 140 additions and 20 deletions

View File

@@ -168,6 +168,8 @@ export interface ExplainGuideStopSelectItem {
hasAudio?: boolean
audioStatus?: string
guideLevel?: string
playTargetType?: 'ITEM' | 'STOP'
playTargetId?: string
}
export type ExplainSelectStage = 'hall' | 'unit' | 'stop'
@@ -195,7 +197,7 @@ const props = withDefaults(defineProps<{
const emit = defineEmits<{
hallClick: [hallId: string]
businessUnitClick: [unitId: string]
guideStopClick: [stopId: string]
guideStopClick: [stop: ExplainGuideStopSelectItem]
back: []
}>()
@@ -272,7 +274,10 @@ const handleBusinessUnitClick = (unitId: string) => {
}
const handleGuideStopClick = (stopId: string) => {
emit('guideStopClick', stopId)
const stop = props.guideStops.find((item) => item.id === stopId)
if (stop) {
emit('guideStopClick', stop)
}
}
const handleBack = () => {