|
@@ -74,7 +74,6 @@
|
|
let num = 0;
|
|
let num = 0;
|
|
for(let i in this.wordData['fund'])num += Number(this.wordData['fund'][i]);
|
|
for(let i in this.wordData['fund'])num += Number(this.wordData['fund'][i]);
|
|
return num;
|
|
return num;
|
|
- // return (this.wordData.fund.facility*1 + this.wordData.fund.materials*1+this.wordData.fund.process*1+ this.input*1+this.wordData.fund.authenticate*1+ this.wordData.fund.match*1+this.wordData.fund.activity*1+this.wordData.fund.affair*1)/10000
|
|
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
@@ -208,6 +207,8 @@
|
|
this.ajax.post(this.$store.state.api+'/ActivityApply',pram).then(result=>{
|
|
this.ajax.post(this.$store.state.api+'/ActivityApply',pram).then(result=>{
|
|
if(result['data']==1){
|
|
if(result['data']==1){
|
|
this.$message.success("活动提交成功");
|
|
this.$message.success("活动提交成功");
|
|
|
|
+ //提交项目成功,查看sessionStore是否有数据,有则删
|
|
|
|
+ if(sessionStorage.getItem("makerActivityApplyData"))sessionStorage.removeItem('makerActivityApplyData');
|
|
this.$router.push('/makerActvity');
|
|
this.$router.push('/makerActvity');
|
|
}else{
|
|
}else{
|
|
this.$message.error("活动提交失败")
|
|
this.$message.error("活动提交失败")
|
|
@@ -220,6 +221,15 @@
|
|
|
|
|
|
},
|
|
},
|
|
},
|
|
},
|
|
|
|
+ mounted(){ //跳转到此页面立刻获取数据
|
|
|
|
+ //判断,如果sessionStore里有MakerSpaceApplyData这个字段,则存到this.wordData里
|
|
|
|
+ if(sessionStorage.getItem('makerActivityApplyData'))this.wordData = JSON.parse(sessionStorage.getItem('makerActivityApplyData'))
|
|
|
|
+ },
|
|
|
|
+ beforeRouteLeave (to, from, next) {
|
|
|
|
+ //判断,如果还没提交然后切换页面了,则把数据存到sessionStore里;
|
|
|
|
+ if(!this.submitHint)sessionStorage.setItem('makerActivityApplyData',JSON.stringify(this.wordData));
|
|
|
|
+ next();
|
|
|
|
+ }
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
|
|
|