|
@@ -78,7 +78,6 @@
|
|
|
data(){
|
|
data(){
|
|
|
return {
|
|
return {
|
|
|
logoTitle:CONFIG.logoTitle,
|
|
logoTitle:CONFIG.logoTitle,
|
|
|
- logo_transparent:CONFIG.logo_transparent,
|
|
|
|
|
SQUARE_DISPLAY:CONFIG.SQUARE_DISPLAY,
|
|
SQUARE_DISPLAY:CONFIG.SQUARE_DISPLAY,
|
|
|
logo_transparent:CONFIG.logo_transparent,
|
|
logo_transparent:CONFIG.logo_transparent,
|
|
|
mooctest_rank_url: CONFIG.mooctest_rank_url,
|
|
mooctest_rank_url: CONFIG.mooctest_rank_url,
|
|
@@ -178,6 +177,13 @@
|
|
|
this.hotCrowdTaskVOs = res.data.hotCrowdTaskVOs;
|
|
this.hotCrowdTaskVOs = res.data.hotCrowdTaskVOs;
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
|
|
+
|
|
|
|
|
+ getTestTask(type) {
|
|
|
|
|
+ Http.get(`/api/square/task/${type}`).then((res)=>{
|
|
|
|
|
+ this.projectAndTaskArr = res.data.crowdTestTaskVOS;
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
checkLogin() {
|
|
checkLogin() {
|
|
|
this.checkCreateProjectAuth();
|
|
this.checkCreateProjectAuth();
|
|
|
},
|
|
},
|
|
@@ -220,8 +226,14 @@
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
mounted() {
|
|
mounted() {
|
|
|
|
|
+ const {type} = this.$route.query;
|
|
|
|
|
+ if(type){
|
|
|
|
|
+ this.$nextTick(()=>this.currTab = 'task')
|
|
|
|
|
+ this.getTestTask(type);
|
|
|
|
|
+ }else{
|
|
|
|
|
+ this.loadData();
|
|
|
|
|
+ }
|
|
|
this.setUserInfo();
|
|
this.setUserInfo();
|
|
|
- this.loadData();
|
|
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
</script>
|
|
</script>
|