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 = [];