NEZ-1664 feat: asset model 新增补充

This commit is contained in:
@changcode
2022-03-11 18:16:07 +08:00
parent 878207d722
commit 8b0a334dde
4 changed files with 31 additions and 5 deletions

View File

@@ -199,8 +199,9 @@ export function arrLength (rule, value, callback) { // 校验数组
}
export function sysObjectIdInput (rule, value, callback) {
const sysId = /^(\d+\.)+\d${color}/
const sysId = /^(\d{1,9}\.){0,}[\d]+$/
setTimeout(() => {
if (value == '') return callback()
if (sysId.test(value)) {
callback()
} else {