物业主开发

This commit is contained in:
Zy
2026-05-08 11:30:28 +08:00
parent a8bb4e66ad
commit 1b738c0f4d
118 changed files with 2891 additions and 979 deletions

View File

@@ -220,14 +220,19 @@ export const getTime = (type: string) => {
};
/**
* @param {Function} func
* @param {number} wait
* @param {boolean} immediate
* @return {*}
* 创建一个防抖函数,确保在指定的等待时间内只执行一次目标函数。
*
* @param func - 需要被防抖处理的目标函数
* @param wait - 等待时间(毫秒),在此时间内重复调用将重置计时器
* @param immediate - 是否立即执行。如果为 true则在第一次调用时立即执行函数并在等待期结束后才能再次触发如果为 false则在等待期结束后执行最后一次调用
* @returns 返回一个新的防抖函数,该函数在被调用时会应用防抖逻辑
*/
export const debounce = (func: any, wait: number, immediate: boolean) => {
let timeout: any, args: any, context: any, timestamp: any, result: any;
/**
* 延迟执行的内部函数,用于判断是否真正执行目标函数
*/
const later = function () {
// 据上一次触发时间间隔
const last = +new Date() - timestamp;

View File

@@ -40,8 +40,7 @@ const whiteVillageId = [
'/village',
'/village/*',
'/waterDevice/generateBarCode', // 水表 条码
'/electricityDevice/generateBarCodee', // 电表 条码
'/electricityDevice/generateBarCode', // 电表 条码
'/payRecordList/payRecordList/list'
// 以后直接在这里加新地址,支持 /xxx/*、/xxx/xxx 写法
];