<template>
  <div class="page_department">
    <van-sticky>
      <div class="departmentTitle">
        <i class="iconfont icon-zuojiantou jiantou" @click="$router.go(-1)"></i>
        <span class="titleName">科室质控达标统计</span>
      </div>
    </van-sticky>
    <div>
      <van-tabs v-model="active" sticky>
        <van-tab title="按时间分组">
          <department-time></department-time>
        </van-tab>
        <van-tab title="按项目分组">
          <department-project></department-project>
        </van-tab>
      </van-tabs>
    </div>
  </div>
</template>

<script>
import DepartmentTime from '@/pages/dqc/components/DepartmentTime'
import DepartmentProject from '@/pages/dqc/components/DepartmentProject'
export default {
  components: {
    DepartmentTime,
    DepartmentProject
  },
  data () {
    return {
      active: 0
    }
  }
}
</script>

<style lang="scss" scoped>
.page_department {
  height: 100%;
  overflow: hidden;
  overflow-y: auto;
  .departmentTitle {
    background: #fff;
    padding: 0 1.125rem;
    height: 3.125rem;
    display: flex;
    align-items: center;
  }
  .jiantou {
    font-size: 1.5rem;
    font-weight: 600;
    margin-right: 6rem;
  }
  .titleName {
    font-size: 1.125rem;
    font-weight: 600;
  }
}
</style>

<style lang="scss">
.page_department {
  .van-tab--active {
    font-size: 1.125rem;
    font-weight: bold;
  }
  .van-tabs__line {
    width: 3.75rem;
    background-color: #409eff;
  }
}
</style>
