三会一课
This commit is contained in:
		| @@ -6,7 +6,7 @@ | ||||
|       <template #content> | ||||
|         <ai-card> | ||||
|           <template #content> | ||||
|             <el-form :model="form" label-width="100px" ref="basicForm" :rules="fromRules" size="small"> | ||||
|             <el-form :model="form" label-width="100px" ref="form" :rules="fromRules" size="small"> | ||||
|               <ai-title title="基本信息" isShowBottomBorder/> | ||||
|               <el-form-item label="会议分类:" prop="meetingClassification"> | ||||
|                 <el-checkbox-group v-model="form.meetingClassification"> | ||||
| @@ -322,6 +322,7 @@ export default { | ||||
|         // } else { | ||||
|         //   callback(new Error('开始时间要大于当前时间')); | ||||
|         // } | ||||
|         callback() | ||||
|       } else { | ||||
|         callback(new Error('请填写开始时间')); | ||||
|       } | ||||
| @@ -494,12 +495,15 @@ export default { | ||||
|  | ||||
|     //保存提交表单验证 | ||||
|     confirm(status) { | ||||
|       console.log(444) | ||||
|       if (status == '1') { | ||||
|         this.$refs.basicForm.validate(validate => { | ||||
|           if (validate) { | ||||
|         console.log(222) | ||||
|         this.$refs.form.validate((valid) => { | ||||
|           if (valid) { | ||||
|             console.log(333) | ||||
|             this.addUpdate(status); | ||||
|           } | ||||
|         }); | ||||
|         }) | ||||
|       } else if (status == '0') { | ||||
|         if (this.form.meetingAgenda == "") { | ||||
|           return this.$message.error("请填写会议名称"); | ||||
| @@ -517,6 +521,7 @@ export default { | ||||
|  | ||||
|     //新增 | ||||
|     addUpdate(status) { | ||||
|       console.log(123) | ||||
|       let hasHost = false; | ||||
|       this.form.participantList.map(e => { | ||||
|         if (e.isHost) { | ||||
| @@ -528,6 +533,7 @@ export default { | ||||
|         } | ||||
|       }) | ||||
|  | ||||
|       console.log(hasHost) | ||||
|       if (!hasHost && status == '1') { | ||||
|         return this.$message.error("请选择主持人"); | ||||
|       } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user