From 08543dd31abc6256805b962e18b6e8dc0c8ff310 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=89=E8=99=B9=E7=9D=BF?= <297504645@qq.com> Date: Wed, 29 Mar 2023 15:22:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=A1=E9=AA=8C=E7=B1=BB=E5=9E=8B=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fe/PC/src/utils/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fe/PC/src/utils/index.js b/fe/PC/src/utils/index.js index bec90e996..09d37fcee 100644 --- a/fe/PC/src/utils/index.js +++ b/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){ // 正整数