From 41e5088adac76cc32a284859c22b9c489db1fa6f Mon Sep 17 00:00:00 2001 From: zoujiandong <10130823232@qq.com> Date: Thu, 28 Mar 2024 08:54:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=93=E9=95=BF=E7=90=86=E7=94=B1=E9=99=90?= =?UTF-8?q?=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../doctor/doctor-introduction/index.vue | 36 +++++++++++++++---- 1 file changed, 30 insertions(+), 6 deletions(-) diff --git a/src/views/doctor/doctor-introduction/index.vue b/src/views/doctor/doctor-introduction/index.vue index 114f311..779a16b 100644 --- a/src/views/doctor/doctor-introduction/index.vue +++ b/src/views/doctor/doctor-introduction/index.vue @@ -259,12 +259,36 @@ ]; // rules - // const rules = reactive({ - // multi_point_fail_reason: [{ - // required: true, - // message: '请输入审核失败原因' - // }], - // }); + const rules = reactive({ + avatar_reason: [ { + validator: (value, cb) => { + if (value.length>20) { + cb('头像理由不能超过20个字符'); + } + } + }], + doctor_expertise_reason: [ { + validator: (value, cb) => { + if (value.length>20) { + cb('专长理由不能超过20个字符'); + } + } + }], + brief_introduction_reason: [ { + validator: (value, cb) => { + if (value.length>20) { + cb('简介理由不能超过20个字符'); + } + } + }], + be_good_at_reason: [ { + validator: (value, cb) => { + if (value.length>20) { + cb('擅长理由不能超过20个字符'); + } + } + }], + }); // Batch Del List let batchList = [];