afterSchoolDetail.vue 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <!-- -->
  2. <template>
  3. <div class="m-container">
  4. <h2>
  5. <!-- <div class='squrt'></div> {{ pageName }} -->
  6. <el-page-header @back="goBack"
  7. :content="title"></el-page-header>
  8. </h2>
  9. <afterWorkList />
  10. </div>
  11. </template>
  12. <script>
  13. import afterWorkList from "@/views/afterSchoolManager/afterWorkList";
  14. export default {
  15. components: { afterWorkList },
  16. data () {
  17. return {
  18. FsearchForm: null,
  19. Frules: null,
  20. title: '',
  21. id: null
  22. };
  23. },
  24. //生命周期 - 创建完成(可以访问当前this实例)
  25. // created() {
  26. // this.init();
  27. // },
  28. //生命周期 - 挂载完成(可以访问DOM元素)
  29. mounted () {
  30. this.init();
  31. },
  32. activated () {
  33. this.init();
  34. },
  35. methods: {
  36. init () {
  37. if (this.$route.query.searchForm) {
  38. this.FsearchForm = this.$route.query.searchForm;
  39. }
  40. if (this.$route.query.rules) {
  41. this.Frules = this.$route.query.rules;
  42. }
  43. this.title = this.$route.query.title
  44. this.id = this.$route.query.extracurricularExercisesId
  45. // console.log(this.id)
  46. // console.log(this.$router.query)
  47. },
  48. goBack () {
  49. this.$router.push({ path: "/business/afterSchoolManager", query: { rules: this.Frules, searchForm: this.FsearchForm } });
  50. }
  51. }
  52. };
  53. </script>
  54. <style lang='scss' scoped>
  55. </style>