diff --git a/src/components/dashboard-page/station-card.vue b/src/components/dashboard-page/station-card.vue index 80b813c..df6e3e4 100644 --- a/src/components/dashboard-page/station-card.vue +++ b/src/components/dashboard-page/station-card.vue @@ -2,10 +2,9 @@ import type { Station } from '@/apis/domains'; import { DeviceType } from '@/enums/device-type'; import { type StationAlarmCounts, type StationDevices } from '@/composables/query'; -import { ControlOutlined } from '@vicons/antd'; -import { Video as VideoIcon } from '@vicons/carbon'; +import { MoreOutlined, EllipsisOutlined } from '@vicons/antd'; import axios from 'axios'; -import { NCard, NTag, NButton, NIcon, useThemeVars, NSpace, NFlex, NText, NTooltip } from 'naive-ui'; +import { NCard, NTag, NButton, NIcon, useThemeVars, NFlex, NText, NTooltip, NDropdown, type DropdownOption } from 'naive-ui'; import { toRefs, computed } from 'vue'; const props = defineProps<{ @@ -89,102 +88,106 @@ const openVideoPlatform = async () => { } }; +const dropdownOptions: DropdownOption[] = [ + { + label: '视频平台', + key: 'video-platform', + onClick: openVideoPlatform, + }, + { + label: '设备配置', + key: 'device-config', + onClick: openDeviceConfigModal, + }, +]; + +const selectDropdownOption = (key: string, option: DropdownOption) => { + if (typeof option['onClick'] === 'function') { + option['onClick'](); + } +}; + const theme = useThemeVars();