From e9a1d3e11c9108a7b8a49e15e7d6a2849d3941d3 Mon Sep 17 00:00:00 2001
From: wangxiaoshuang <825034831@qq.com>
Date: Thu, 9 May 2024 11:28:18 +0800
Subject: [PATCH] =?UTF-8?q?=E5=8F=97=E8=AF=95=E8=80=85=E7=BC=96=E8=BE=91?=
=?UTF-8?q?=E4=BF=A1=E6=81=AF=E5=B9=B4=E9=BE=84=E8=AE=BE=E7=BD=AE=E6=A0=A1?=
=?UTF-8?q?=E9=AA=8C?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../subject-list/components/SubjectsForm.vue | 18 ++++++++++++++++--
1 file changed, 16 insertions(+), 2 deletions(-)
diff --git a/src/views/trials/trials-panel/subject/subject-list/components/SubjectsForm.vue b/src/views/trials/trials-panel/subject/subject-list/components/SubjectsForm.vue
index 330acc2..19e20a8 100644
--- a/src/views/trials/trials-panel/subject/subject-list/components/SubjectsForm.vue
+++ b/src/views/trials/trials-panel/subject/subject-list/components/SubjectsForm.vue
@@ -21,8 +21,8 @@
-
-
+
+
@@ -113,6 +113,20 @@ export default {
},
{ max: 50, message: `${this.$t("common:ruleMessage:maxLength")} 50` },
],
+ Age: [
+ {
+ pattern: /^[1-9]\d*$/,
+ message: this.$t("trials:subject:formRule:checkAge"),
+ trigger: "blur",
+ },
+ {
+ type: "number",
+ min: 1,
+ max: 200,
+ message: this.$t("trials:subject:formRule:numberAge"),
+ trigger: "blur",
+ },
+ ],
},
btnLoading: false,
siteOptions: [],