|
|
@ -91,6 +91,7 @@ import { useRootStore } from '@/store/root' |
|
|
import { useSwitchLanguage } from '@/composables/useSwitchLanguage' |
|
|
import { useSwitchLanguage } from '@/composables/useSwitchLanguage' |
|
|
import { useStatisticsModel } from '@/composables/useStatistics' |
|
|
import { useStatisticsModel } from '@/composables/useStatistics' |
|
|
import { useFacilityNav } from '@/composables/useFacilityNav' |
|
|
import { useFacilityNav } from '@/composables/useFacilityNav' |
|
|
|
|
|
import { getFacilitiesListBase } from '@/http/api/base' |
|
|
|
|
|
|
|
|
const store = useRootStore() |
|
|
const store = useRootStore() |
|
|
|
|
|
|
|
|
@ -155,10 +156,20 @@ function handleGo() { |
|
|
if (props.actInfo.point.length) { |
|
|
if (props.actInfo.point.length) { |
|
|
nav(props.actInfo) |
|
|
nav(props.actInfo) |
|
|
} else if (props.actInfo.facilityCode?.length) { |
|
|
} else if (props.actInfo.facilityCode?.length) { |
|
|
const fac = store.facilityList.find(item => item.code === props.actInfo.facilityCode) |
|
|
|
|
|
if (fac) { |
|
|
|
|
|
handleFacility(toRaw(fac)) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
getFacilitiesListBase() |
|
|
|
|
|
.then(res => { |
|
|
|
|
|
if (res.code === 200 && res.data) { |
|
|
|
|
|
const facList = res.data |
|
|
|
|
|
console.log('props.actInfo.facilityCode :>> ', props.actInfo.facilityCode) |
|
|
|
|
|
const fac = facList.find(item => item.code === props.actInfo.facilityCode) |
|
|
|
|
|
if (fac) { |
|
|
|
|
|
handleFacility(toRaw(fac)) |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
.catch(err => { |
|
|
|
|
|
console.log('err :>> ', err) |
|
|
|
|
|
}) |
|
|
} |
|
|
} |
|
|
store.SET_SHOW_SEARCH(false) |
|
|
store.SET_SHOW_SEARCH(false) |
|
|
} |
|
|
} |
|
|
|