设备列表、工单列表

This commit is contained in:
白菜
2025-07-12 15:55:05 +08:00
parent 111079eb48
commit ee6628a19b
10 changed files with 513 additions and 21 deletions

View File

@ -11,7 +11,7 @@ export function isPathMatch(pattern, path) {
}
/**
* 判断value字符串是否为空
* 判断value字符串是否为空
* @param {string} value
* @returns {Boolean}
*/
@ -23,7 +23,7 @@ export function isEmpty(value) {
}
/**
* 判断url是否是http或https
* 判断url是否是http或https
* @param {string} url
* @returns {Boolean}
*/
@ -112,3 +112,13 @@ export function isArray(arg) {
}
return Array.isArray(arg)
}
/**
* @param {string}
* @returns {Boolean}
* 只能输入中文、英文、数字、特殊字符!@#$%^&*-,./
*/
export function validText(text) {
const reg = /^[a-zA-Z0-9\u4e00-\u9fa5!@#$%^&*-,.]+$/
return reg.test(text)
}