|
@@ -54,13 +54,12 @@ import makerActvityApply2 from './makerActvityApply2.vue';
|
|
|
pid:data1['pid'],
|
|
|
cid:data1['value'],
|
|
|
phone:data1['tel'],
|
|
|
- beginTime:data1['time'],
|
|
|
+ beginTime:JSON.stringify(data1['time']),
|
|
|
}
|
|
|
- console.log(param)
|
|
|
this.ajax.post(this.$store.state.api+"/CreateActivity",param).then(res=>{
|
|
|
if(res.data==1){
|
|
|
this.$message({message:"创建创客活动成功!",type:"success"})
|
|
|
- this.$route.push("/makerActvity")
|
|
|
+ this.$router.push("/makerActvity")
|
|
|
}else{
|
|
|
this.$message.error(`创建创客活动失败:${res.data}`);
|
|
|
}
|
|
@@ -126,7 +125,7 @@ import makerActvityApply2 from './makerActvityApply2.vue';
|
|
|
if(!this.checkPhone(checkData[i]))return;
|
|
|
break;
|
|
|
case "time":
|
|
|
- if(cEmpty.test(checkData[i]))return this.$message.error("请选择项目开始时间");
|
|
|
+ if(checkData[i].length<2)return this.$message.error("请选择项目开始时间");
|
|
|
break;
|
|
|
case "value":
|
|
|
if(cEmpty.test(checkData[i]))return this.$message.error("请选择所在部门");
|