sopAnalysisList.vue 1.94 KB
<!-- 营销sop -->
<template>
  <div class="sop-analysis">
    <el-tabs v-model="activeName" @tab-click="handleTabClick">
      <el-tab-pane label="完成率分析" name="compleList">
        <complete-list v-if="activeName == 'compleList'" :sopId="routeInfo.id"></complete-list>
      </el-tab-pane>
      <el-tab-pane label="触达率分析" name="touchList">
        <touch-list v-if="activeName == 'touchList'" :sopId="routeInfo.id"></touch-list>
      </el-tab-pane>
      <el-tab-pane label="员工完成率分析" name="staffList">
        <staff-list v-if="activeName == 'staffList'" :sopId="routeInfo.id"></staff-list>
      </el-tab-pane>
    </el-tabs>
    <el-button :size="size" class="sop-back-btn" type="primary" @click="handleBack">返回</el-button>
  </div>
</template>

<script>
import completeList from './sopAnalysis/completeList.vue'
import touchList from './sopAnalysis/touchList.vue'
import staffList from './sopAnalysis/staffList.vue'
export default {
  name: 'gitfBag',
  data() {
    return {
      activeName: 'compleList',
      size: 'small',
      routeInfo: {
        id: '',
        fromPage: '/marketing/sop/index'
      }
    }
  },

  components: {
    completeList,
    touchList,
    staffList
  },

  created() {
    this.routeInfo = this.$route.query
  },

  methods: {
    handleTabClick() { },
    handleBack() {
      this.$history.push({
        path: this.routeInfo.fromPage
      })
    }
  }
}
</script>

<style>
.sop-analysis {
  position: relative;
}
.sop-analysis .el-tabs__header {
  margin-bottom: 20px;
}
.sop-analysis .el-tabs__nav-wrap:after {
  opacity: 0;
}
.sop-analysis .el-tabs__item {
  height: 20px !important;
  line-height: 10px !important;
  font-weight: 400;
  font-size: 16px;
  color: #717171;
  height: 36px;
  line-height: 36px;
}
.sop-analysis .el-tabs__item:hover,
.sop-analysis .el-tabs__item.is-active {
  color: #5f5efb;
}
.sop-analysis .sop-back-btn {
  position: absolute;
  top: 0;
  right: 0;
}
</style>