|
|
@@ -449,6 +449,13 @@ export default {
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
+ if(!form.organizer_id){
|
|
|
+ this.$message({
|
|
|
+ message: '请选择主办方',
|
|
|
+ type: 'error'
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
if(!form.time){
|
|
|
this.$message({
|
|
|
message: '请选择会议时间',
|
|
|
@@ -463,6 +470,13 @@ export default {
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
+ if(!form.img){
|
|
|
+ this.$message({
|
|
|
+ message: '请上传封面图',
|
|
|
+ type: 'error'
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
// form.organizer_name=this.organizerList.filter(item=>item.id==form.organizer_id)[0].name
|
|
|
console.log(form)
|
|
|
if(this.id){
|
|
|
@@ -569,6 +583,9 @@ export default {
|
|
|
this.id=this.$route.query.id;
|
|
|
this.$api.getConference({id:this.id}).then(res=>{
|
|
|
this.form=res.data.data
|
|
|
+ this.form.is_signup=Boolean(this.form.is_signup)
|
|
|
+ this.form.is_popular=Boolean(this.form.is_popular)
|
|
|
+ this.form.is_recommend=Boolean(this.form.is_recommend)
|
|
|
this.form.citys=this.form.city.split(' ')
|
|
|
this.form.time=[this.form.begin_time,this.form.end_time]
|
|
|
})
|