index-card-three-subject-query.vue 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <template>
  2. <index-card simple title="三大库">
  3. <el-row :gutter="20">
  4. <el-col :span="8" @click.native="goUniversity">
  5. <el-image :src="require('@/assets/images/index/elective/three-university.png')" class="rd8 pointer" />
  6. </el-col>
  7. <el-col :span="8" @click.native="goProfession">
  8. <el-image :src="require('@/assets/images/index/elective/three-profession.png')" class="rd8 pointer" />
  9. </el-col>
  10. <el-col :span="8" @click.native="goVocation">
  11. <el-image :src="require('@/assets/images/index/elective/three-vocation.png')" class="rd8 pointer" />
  12. </el-col>
  13. <el-col :span="24" class="mt12" @click.native="goSubjectQuery">
  14. <el-image :src="require('@/assets/images/index/elective/three-subject-query.png')" class="rd8 pointer" />
  15. </el-col>
  16. </el-row>
  17. </index-card>
  18. </template>
  19. <script>
  20. import IndexCard from "@/views/index/components/index-card.vue";
  21. import MxTransferMixin from "@/components/mx-transfer-mixin";
  22. import IndexLoginInterceptorMixin from "@/views/index/blocks/index-login-interceptor-mixin";
  23. export default {
  24. name: "index-card-three-subject-query",
  25. components: {IndexCard},
  26. mixins: [MxTransferMixin, IndexLoginInterceptorMixin],
  27. methods: {
  28. async goUniversity() {
  29. await this.loginCheck()
  30. this.transferTo({name: 'LibraryCollege'})
  31. },
  32. async goProfession() {
  33. await this.loginCheck()
  34. this.transferTo({name: 'LibraryProfession'})
  35. },
  36. async goVocation() {
  37. await this.loginCheck()
  38. this.transferTo({name: 'LibraryVocation'})
  39. },
  40. async goSubjectQuery() {
  41. await this.loginCheck()
  42. this.transferTo({name: 'ElectiveQueryIndex'})
  43. }
  44. }
  45. }
  46. </script>
  47. <style scoped>
  48. </style>