CareerHollandReportDetail.vue 998 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <template>
  2. <div class="detail bg-page fx-column fx-cen-cen">
  3. <index-card title="测评记录" sub-title="专业兴趣测评" class="index-block">
  4. <el-button slot="more" v-has-history size="small" round @click="$router.back()">返回</el-button>
  5. <holland :holl-info="hollInfo" />
  6. </index-card>
  7. </div>
  8. </template>
  9. <script>
  10. import IndexCard from '@/views/login/components/modules/shared/IndexCard'
  11. import Holland from './result/Holland.vue'
  12. import { getHollandReportDetail } from '@/api/webApi/career-evalua'
  13. export default {
  14. components: {
  15. IndexCard,
  16. Holland
  17. },
  18. data() {
  19. return {
  20. code: '',
  21. hollInfo: {}
  22. }
  23. },
  24. created() {
  25. const {
  26. code
  27. } = this.$route.query || {}
  28. this.code = code || []
  29. this.getDetail()
  30. },
  31. methods: {
  32. getDetail() {
  33. getHollandReportDetail({
  34. code: this.code
  35. }).then(res => {
  36. this.hollInfo = res.data
  37. })
  38. }
  39. }
  40. }
  41. </script>
  42. <style lang="scss" scoped>
  43. </style>