Browse Source

校验类型优化

dev_web_online
安虹睿 2 years ago
parent
commit
08543dd31a
  1. 5
      fe/PC/src/utils/index.js

5
fe/PC/src/utils/index.js

@ -450,11 +450,12 @@ export function getImgsDetailPopData(row,sucess,faild) {
// 匹配正则返回值
/** README.md[:currenForm]
* @param {*} type 需要匹配的正则类型
* @param {*} value 当前传入值即需要校验值
* @param {*} defaultValue 当前传入值即需要校验值
* @param {*} fixedNum 如果type为pointNumber需要保留小数点后的位数
* @returns
*/
export function getMatchRegConformValue(type,value,fixedNum){
export function getMatchRegConformValue(type,defaultValue,fixedNum){
let value = defaultValue ? String(defaultValue) : ''
let _conformValue = ""
switch(type){
// 正整数

Loading…
Cancel
Save