index.vue 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <template>
  2. <div id="index">
  3. <el-row>
  4. <el-col :span="24" class="main">
  5. <el-col :span="24" class="top">
  6. <top topType="2" :leftArrow="false"></top>
  7. </el-col>
  8. <el-col :span="24" class="info" :style="{ height: clientHeight + 'px' }">
  9. <van-tabs v-model="activeName" color="#409eff" @change="onChange">
  10. <van-tab title="高企自评" name="1"> 高企自评 </van-tab>
  11. <van-tab title="成果评价" name="2">
  12. <frame-2></frame-2>
  13. </van-tab>
  14. <van-tab title="查新服务" name="3"> <frame-3></frame-3></van-tab>
  15. <van-tab title="项目申报" name="4">项目申报</van-tab>
  16. </van-tabs>
  17. </el-col>
  18. </el-col>
  19. </el-row>
  20. </div>
  21. </template>
  22. <script>
  23. import top from '@/layout/common/top.vue';
  24. import frame2 from './achieve/index.vue';
  25. import frame3 from './novelty/index.vue';
  26. import { mapState, mapGetters, createNamespacedHelpers } from 'vuex';
  27. export default {
  28. name: 'index',
  29. props: {},
  30. components: {
  31. top,
  32. frame2,
  33. frame3,
  34. },
  35. data: function () {
  36. return {
  37. clientHeight: '',
  38. activeName: '1',
  39. };
  40. },
  41. async created() {},
  42. methods: {
  43. onChange(name) {
  44. if (name == 4) window.location.href = 'http://www.jlkjxm.com';
  45. },
  46. },
  47. mounted() {
  48. let clientHeight = (document.documentElement.clientHeight || document.body.clientHeight) - 40;
  49. this.$set(this, `clientHeight`, clientHeight);
  50. },
  51. computed: {
  52. ...mapState(['user']),
  53. },
  54. metaInfo() {
  55. return { title: this.$route.meta.title };
  56. },
  57. watch: {
  58. test: {
  59. deep: true,
  60. immediate: true,
  61. handler(val) {},
  62. },
  63. },
  64. };
  65. </script>
  66. <style lang="less" scoped>
  67. .main {
  68. .top {
  69. height: 40px;
  70. overflow: hidden;
  71. border-bottom: 1px solid #f9f9f9;
  72. }
  73. .info {
  74. overflow-x: hidden;
  75. overflow-y: auto;
  76. }
  77. }
  78. </style>