| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <template>
- <StationMapModal
- :open="open"
- :title="title"
- :stations="stationPoints"
- @update:open="(value) => emit('update:open', value)"
- />
- </template>
- <script lang="ts" setup>
- import { computed } from 'vue';
- import StationMapModal from '@jeesite/case/views/dm/components/StationMapModal.vue';
- import type { CallStatStationDTO } from '@jeesite/person/api/types/dto';
- import type { TrackCellTowerDTO } from '@jeesite/track/api/types/dto';
- const props = withDefaults(
- defineProps<{
- open: boolean;
- title?: string;
- stations: TrackCellTowerDTO[];
- }>(),
- {
- title: '基站地图位置',
- stations: () => [],
- },
- );
- const emit = defineEmits<{
- (e: 'update:open', value: boolean): void;
- }>();
- const stationPoints = computed<CallStatStationDTO[]>(() =>
- (props.stations || []).map((item) => ({
- personRegionId: item.personRegionId,
- personCellId: item.personCellId,
- personStationName: item.personStationName,
- personStationLongitude: item.personStationLongitude,
- personStationLatitude: item.personStationLatitude,
- })),
- );
- </script>
|