|
@@ -186,6 +186,16 @@ export default {
|
|
|
this.searchForm.timer = [];
|
|
|
this.searchForm.timer.push(startDate);
|
|
|
this.searchForm.timer.push(endDate);
|
|
|
+ if (this.$route.query.searchForm) {
|
|
|
+ this.$route.query.searchForm instanceof Object
|
|
|
+ ? (this.searchForm = this.$route.query.searchForm)
|
|
|
+ : (this.searchForm = JSON.parse(this.$route.query.searchForm));
|
|
|
+ }
|
|
|
+ if (this.$route.query.rules) {
|
|
|
+ this.$route.query.rules instanceof Object
|
|
|
+ ? (this.rules = this.$route.query.rules)
|
|
|
+ : (this.rules = JSON.parse(this.$route.query.rules));
|
|
|
+ }
|
|
|
this.getList();
|
|
|
},
|
|
|
getList() {
|
|
@@ -213,11 +223,13 @@ export default {
|
|
|
onReSet() {},
|
|
|
lookDetail(row) {
|
|
|
// this.afterSchoolVisible = true;
|
|
|
- // console.log(row.id);
|
|
|
- // this.$router.push({path:'/business/afterWorkList',query:{extracurricularExercisesId:row.id}})
|
|
|
+
|
|
|
+ let rules = JSON.stringify(this.rules);
|
|
|
+ let searchForm = JSON.stringify(this.searchForm);
|
|
|
+ this.$router.push({path:'/business/afterSchoolDetail',query:{extracurricularExercisesId:row.id,rules,searchForm,title:row.title}})
|
|
|
// this.extracurricularExercisesId
|
|
|
// getExtracurricularExercisesId
|
|
|
- this.$emit('getExtracurricularExercisesId',row.id)
|
|
|
+ // this.$emit('getExtracurricularExercisesId',row.id)
|
|
|
}
|
|
|
}
|
|
|
};
|