杂务:新增声明级注释覆盖率

This commit is contained in:
xiaowang
2026-05-23 18:44:57 +08:00
parent 8f038894e7
commit 844516988b
234 changed files with 8356 additions and 0 deletions
@@ -108,19 +108,39 @@ import { computed, onMounted, ref } from 'vue'
import { useRouter } from 'vue-router'
import { LeftOutlined } from '@ant-design/icons-vue'
import { message } from 'ant-design-vue'
/**
* Purpose: ArtistCalendarAppointment supports ArtistCalendarView.vue by holding or executing the artist calendar appointment page or API role.
* Usage: import, call, read, or update this type from the owning page/module while preserving the surrounding loading and permission flow.
*/
import { orderApi, type ArtistCalendarAppointment } from '@/api/order'
import { runWithGlobalLoading } from '@/utils/action-loading'
/**
* Purpose: router supports ArtistCalendarView.vue by holding or executing the router page or API role.
* Usage: import, call, read, or update this const from the owning page/module while preserving the surrounding loading and permission flow.
*/
const router = useRouter()
/** loading is a reactive state variable used by the template and event handlers. */
const loading = ref(false)
/** completing is a reactive state variable used by the template and event handlers. */
const completing = ref(false)
/**
* Purpose: appointments supports ArtistCalendarView.vue by holding or executing the appointments page or API role.
* Usage: import, call, read, or update this const from the owning page/module while preserving the surrounding loading and permission flow.
*/
const appointments = ref<ArtistCalendarAppointment[]>([])
/**
* Purpose: selected supports ArtistCalendarView.vue by holding or executing the selected page or API role.
* Usage: import, call, read, or update this const from the owning page/module while preserving the surrounding loading and permission flow.
*/
const selected = ref<ArtistCalendarAppointment | null>(null)
/** detailOpen is a reactive state variable used by the template and event handlers. */
const detailOpen = ref(false)
/**
* Purpose: todayKey supports ArtistCalendarView.vue by holding or executing the today key page or API role.
* Usage: import, call, read, or update this const from the owning page/module while preserving the surrounding loading and permission flow.
*/
const todayKey = localDateKey(new Date())
/** todayCount is a reactive state variable used by the template and event handlers. */
const todayCount = computed(() => appointments.value.filter(item => dateKey(item.appointmentStartTime) === todayKey).length)
@@ -203,6 +223,10 @@ const openSelectedOrder = () => {
/** dateKey is a local helper used by this page script. */
const dateKey = (value: string) => value ? value.slice(0, 10) : ''
/**
* Purpose: localDateKey supports ArtistCalendarView.vue by holding or executing the local date key page or API role.
* Usage: import, call, read, or update this function from the owning page/module while preserving the surrounding loading and permission flow.
*/
function localDateKey(value: Date) {
const month = String(value.getMonth() + 1).padStart(2, '0')
const day = String(value.getDate()).padStart(2, '0')