detail.vue 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <template>
  2. <div id="index">
  3. <el-row>
  4. <el-col :span="24" class="style">
  5. <el-col :span="24" class="top">
  6. <NavBar v-show="navShow" :title="title" :isleftarrow="isleftarrow" @onClickLeft="onClickLeft"> </NavBar>
  7. </el-col>
  8. <el-col :span="24" class="main">
  9. <span v-if="column_name == '智慧推荐'">智慧推荐</span>
  10. <span v-else-if="column_name == '展会管理'"><twoInfo :column_name="column_name"></twoInfo></span>
  11. <span v-else-if="column_name == '动态监测'"><threeInfo :column_name="column_name"></threeInfo></span>
  12. <span v-else-if="column_name == '科技评估'">科技评估</span>
  13. <span v-else-if="column_name == '合同在线'">合同在线</span>
  14. <span v-else-if="column_name == '信用认证'">信用认证</span>
  15. <span v-else-if="column_name == '绩效评价'">绩效评价</span>
  16. <span v-else-if="column_name == '在线咨询'">在线咨询</span>
  17. </el-col>
  18. </el-col>
  19. </el-row>
  20. </div>
  21. </template>
  22. <script>
  23. import { mapState, createNamespacedHelpers } from 'vuex';
  24. import NavBar from '@/layout/common/topInfo.vue';
  25. import footInfo from '@/layout/common/footInfo.vue';
  26. import twoInfo from './parts/twoInfo.vue';
  27. import threeInfo from './parts/threeInfo.vue';
  28. export default {
  29. name: 'index',
  30. props: {},
  31. components: {
  32. NavBar,
  33. // footInfo,
  34. twoInfo, //展会管理
  35. threeInfo, //动态监测
  36. },
  37. data: function() {
  38. return {
  39. // 头部标题
  40. title: '',
  41. // meta为true
  42. isleftarrow: '',
  43. // 返回
  44. navShow: true,
  45. };
  46. },
  47. created() {},
  48. methods: {
  49. // 返回
  50. onClickLeft() {
  51. this.$router.push({ path: '/service/index' });
  52. },
  53. },
  54. computed: {
  55. ...mapState(['user']),
  56. column_name() {
  57. return this.$route.query.column_name;
  58. },
  59. },
  60. mounted() {
  61. this.title = this.$route.meta.title;
  62. this.isleftarrow = this.$route.meta.isleftarrow;
  63. },
  64. };
  65. </script>
  66. <style lang="less" scoped>
  67. .style {
  68. width: 100%;
  69. min-height: 667px;
  70. position: relative;
  71. background-color: #f9fafc;
  72. }
  73. .top {
  74. height: 46px;
  75. overflow: hidden;
  76. position: relative;
  77. z-index: 999;
  78. }
  79. .main {
  80. min-height: 570px;
  81. }
  82. .foot {
  83. position: absolute;
  84. bottom: 0;
  85. }
  86. </style>