|
@@ -91,6 +91,7 @@
|
|
|
{label:"测试任务",name:"task"}
|
|
|
],
|
|
|
projectAndTaskArr:[],
|
|
|
+ type: 0,
|
|
|
hotCrowdTestProjectVOs:[],
|
|
|
hotCrowdTaskVOs:[],
|
|
|
activePage:1,
|
|
@@ -132,16 +133,31 @@
|
|
|
if (storageGet('user') != null) {
|
|
|
this.isLogin = true;
|
|
|
}
|
|
|
- this.searchVal = this.$route.params.searchVal;
|
|
|
- this.searchType = this.$route.params.searchType;
|
|
|
- Http.get('/api/square/list').then((res)=>{
|
|
|
- let crowdTestProjectVOs = res.data.crowdTestProjectVOs;
|
|
|
- let crowdTestTaskVOS = res.data.crowdTestTaskVOS;
|
|
|
- let projectAndTaskArr = crowdTestProjectVOs.concat(crowdTestTaskVOS);
|
|
|
- this.hotCrowdTestProjectVOs = res.data.hotCrowdTestProjectVOs;
|
|
|
- this.hotCrowdTaskVOs = res.data.hotCrowdTaskVOs;
|
|
|
- this.projectAndTaskArr = projectAndTaskArr;
|
|
|
- })
|
|
|
+
|
|
|
+ this.projectAndTaskArr = this.$route.params.projectAndTaskArr;
|
|
|
+ this.type = this.$route.params.type;
|
|
|
+
|
|
|
+ if(this.type == 1){
|
|
|
+ console.log("type " + this.type);
|
|
|
+ this.searchType = this.$route.params.searchType;
|
|
|
+ Http.get('/api/square/list').then((res)=>{
|
|
|
+ this.hotCrowdTestProjectVOs = res.data.hotCrowdTestProjectVOs;
|
|
|
+ this.hotCrowdTaskVOs = res.data.hotCrowdTaskVOs;
|
|
|
+ })
|
|
|
+ }else{
|
|
|
+ this.searchVal = this.$route.params.searchVal;
|
|
|
+ this.searchType = this.$route.params.searchType;
|
|
|
+ Http.get('/api/square/list').then((res)=>{
|
|
|
+ let crowdTestProjectVOs = res.data.crowdTestProjectVOs;
|
|
|
+ let crowdTestTaskVOS = res.data.crowdTestTaskVOS;
|
|
|
+ let projectAndTaskArr = crowdTestProjectVOs.concat(crowdTestTaskVOS);
|
|
|
+ this.hotCrowdTestProjectVOs = res.data.hotCrowdTestProjectVOs;
|
|
|
+ this.hotCrowdTaskVOs = res.data.hotCrowdTaskVOs;
|
|
|
+ this.projectAndTaskArr = projectAndTaskArr;
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
},
|
|
|
checkLogin(){
|
|
|
if(!this.isLogin){
|