修复讲解业务 API 数据源配置
This commit is contained in:
@@ -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 = () => {
|
||||
|
||||
Reference in New Issue
Block a user