InternalRight.vue 3.05 KB
<template>
  <div class="right">
    <box-title title="数字化管理"></box-title>
    <Tab class="tab" :list="tabList" :width="25.5" :itemWidth="9" @changeTab="changeTab"></Tab>
    <div class="digital-manager-box-content">
      <components :is="tabName"></components>
    </div>
  </div>
</template>

<script>
import ViewClue from './components/ViewClue.vue'
import ViewIntersts from './components/ViewIntersts.vue'
import ViewEdun from './components/ViewEdun.vue'
export default {
  name: 'InternalRight',
  components: {
    ViewClue,
    ViewIntersts,
    ViewEdun
  },
  data() {
    return {
      tabList: ['线索服务', '会员权益', '车管(虎哥E盾)'],
      activeName: 0,
      digitalMarketingList: [
        {
          name: '注册门店总数',
          valueName: 'count',
          value: '0',
          unit: '¥',
          unitType: 'left',
          bottomType: 'ratio',
          ratioLeftLabel: '周同比',
          ratioLeftValueName: 'outputvalueTb',
          ratioLeftValue: '0',
          ratioRightLabel: '日环比',
          ratioRightValueName: 'outputvalueHb',
          ratioRightValue: '0'
        },
        {
          name: '活跃门店总数',
          valueName: 'countvalue',
          value: '0',
          unit: '¥',
          unitType: 'left',
          bottomType: 'ratio',
          ratioLeftLabel: '周同比',
          ratioLeftValueName: 'outputvalueTb',
          ratioLeftValue: '0',
          ratioRightLabel: '日环比',
          ratioRightValueName: 'outputvalueHb',
          ratioRightValue: '0'
        },
        {
          name: '设备订阅数量总数',
          valueName: 'count',
          value: '0',
          unit: '¥',
          unitType: 'left',
          bottomType: 'ratio',
          ratioLeftLabel: '周同比',
          ratioLeftValueName: 'outputvalueTb',
          ratioLeftValue: '0',
          ratioRightLabel: '日环比',
          ratioRightValueName: 'outputvalueHb',
          ratioRightValue: '0'
        },
        {
          name: '总收入',
          valueName: 'countvalue',
          value: '0',
          unit: '¥',
          unitType: 'left',
          bottomType: 'ratio',
          ratioLeftLabel: '周同比',
          ratioLeftValueName: 'outputvalueTb',
          ratioLeftValue: '0',
          ratioRightLabel: '日环比',
          ratioRightValueName: 'outputvalueHb',
          ratioRightValue: '0'
        }
      ]
    }
  },

  computed: {
    tabName() {
      let sname
      switch (this.activeName) {
        case 0:
          sname = 'ViewClue'
          break
        case 1:
          sname = 'ViewIntersts'
          break
        case 2:
          sname = 'ViewEdun'
          break
      }
      return sname
    }
  },
  mounted() {},

  methods: {
    changeTab(data) {
      this.activeName = data
    }
  }
}
</script>

<style lang="scss" scoped>
.right {
  width: 47.48vw;
  height: 89.33vh;
  box-shadow: inset 0 0 20px 0 #3d57ff69;
    /deep/.tab-item-box {
      margin: 0 auto;
    }
  .digital-manager-box-content {
    padding: 1.56vh 0.83vw;
  }
}
</style>