From 9b36b9de6d639abc7ad01299b43348e07fc58daa Mon Sep 17 00:00:00 2001 From: aixianling Date: Thu, 19 May 2022 18:29:55 +0800 Subject: [PATCH] BUG 29661 --- packages/conv/creditScore/scoreRules/AppScoreRules.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/conv/creditScore/scoreRules/AppScoreRules.vue b/packages/conv/creditScore/scoreRules/AppScoreRules.vue index 0cdc183e..c86c812c 100644 --- a/packages/conv/creditScore/scoreRules/AppScoreRules.vue +++ b/packages/conv/creditScore/scoreRules/AppScoreRules.vue @@ -78,7 +78,7 @@ @@ -264,6 +264,11 @@ export default { this.$confirm("是否要删除该规则?").then(() => { this.form.ladderRule.splice(i, 1) }).catch(() => 0) + }, + checkIntegral(v) { + if (!/^\d*[.\d]\d?$/.test(v)) { + return v?.replace(/.$/, '') || "" + } else return v } }, };