|
|
@@ -371,16 +371,18 @@ export default {
|
|
|
this.getList();
|
|
|
this.getTaskStatus();
|
|
|
},
|
|
|
- // beforeRouteEnter(to,from,next){
|
|
|
- // console.log(from,'to')
|
|
|
- // if(from.path === '/home'){
|
|
|
- // next(vm=>{
|
|
|
- // vm.queryParams.status = parseInt(to.query.status);
|
|
|
- // })
|
|
|
- // }else {
|
|
|
- // next()
|
|
|
- // }
|
|
|
- // },
|
|
|
+ beforeRouteEnter(to,from,next){
|
|
|
+ console.log(from,'to')
|
|
|
+ if(from.path === '/home'){
|
|
|
+ next(vm=>{
|
|
|
+ if(to.query.status!=undefined){
|
|
|
+ vm.queryParams.status = parseInt(to.query.status);
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }else {
|
|
|
+ next()
|
|
|
+ }
|
|
|
+ },
|
|
|
computed: {
|
|
|
...mapGetters(["orgId", "orgName"]),
|
|
|
},
|