18 lines
637 B
TypeScript
18 lines
637 B
TypeScript
import { ref } from 'vue'
|
|
|
|
// 跨视图定位信号:全局搜索命中后跳转到对应视图并聚焦
|
|
export const focusDate = ref<string | null>(null)
|
|
export const focusMemo = ref<number | null>(null)
|
|
|
|
// 考勤数据变更信号:打卡、修改时间、补卡、休假后自增,所有考勤展示视图监听并实时刷新
|
|
export const attendanceChanged = ref(0)
|
|
export function notifyAttendanceChanged(): void {
|
|
attendanceChanged.value++
|
|
}
|
|
|
|
// 计划计时启停信号:全局计时时钟面板监听并即时刷新
|
|
export const planTimerPulse = ref(0)
|
|
export function notifyPlanTimer(): void {
|
|
planTimerPulse.value++
|
|
}
|