Skip to content

witSelectSite Site Selection

witSelectSite is a hospital site selector component based on Element Plus Select, used to switch the hospital site currently used by the user in multi-hospital systems. The component supports hospital list loading, site switching and user information update functions.

Usage Example

vue
<template>
  <div>
    <!-- Site selection component -->
    <wit-select-site />
  </div>
</template>

<script lang="ts" setup>
// Component automatically loads accessible hospital list and handles site switching logic
</script>

API

Component

vue
<wit-select-site />

Properties

Property NameTypeDefault ValueDescription
None--No custom properties

Slots

Slot NameDescription
NoneNo custom slots

Events

Event NameDescriptionParameters
NoneNo custom events-

Features

  1. Hospital List Loading
    • Automatically fetches accessible hospital list from API when component mounts
    • Automatically sets current hospital as default selected value on initialization

湘ICP备2024070110号