diff --git a/fuintAdmin/src/views/userGrade/index.vue b/fuintAdmin/src/views/userGrade/index.vue index 1da454f0d..c65751135 100644 --- a/fuintAdmin/src/views/userGrade/index.vue +++ b/fuintAdmin/src/views/userGrade/index.vue @@ -690,6 +690,7 @@
{ - // if (this.form2.suitDateType == '1'){ - // if (this.form2.suitDateFront == undefined){ - // callback(new Error("请选择开始日期")) - // }else if (this.form2.suitDateAfter == undefined){ - // callback(new Error("请选择结束日期")) - // } - // } - // }},], + suitDateType: [ + {validator: (rule, value, callback) => { + console.log('走了',this.form2.suitDateType) + if (this.form2.suitDateType == '1'){ + if (this.form2.suitDateFront == undefined){ + callback(new Error("请选择开始日期")) + }else if (this.form2.suitDateAfter == undefined){ + callback(new Error("请选择结束日期")) + }else { + callback(); + } + }else { + callback(); + } + }},], suitTimeSlotType: [ {required: true, message: "请选择适用时间段", trigger: "blur"}, ],