<template>
  <div class="workTime app-container">

    <el-tabs v-model="activeName" @tab-click="handleClick">
      <el-tab-pane label="作息配置" name="作息配置">

      </el-tab-pane>
      <el-tab-pane v-hasPermi="['system:time:week']" label="模板配置作息" name="模板配置作息">

      </el-tab-pane>
    </el-tabs>

    <work-time v-if="activeName==='作息配置'"></work-time>
    <div v-hasPermi="['system:time:week']">
      <work-time-week  v-if="activeName==='模板配置作息'"></work-time-week>
    </div>
  </div>
</template>

<script>
import WorkTime from './workTime'
import WorkTimeWeek from './workTimeWeek'
export default {
  components:{
    WorkTime,
    WorkTimeWeek
  },
  data() {
    return {
      activeName:'作息配置'
    };
  },
  methods:{
    handleClick(){

    },
  }
};
</script>
<style lang="scss">
.workTime{
  .el-tabs__header{
    margin-bottom: 10px;
    background-color: #fff;
    padding: 0 10px;
    box-shadow: 0 2px 8px #eee;

  }
  .el-tabs__nav-wrap::after{
    background-color: #fff;
  }
  .el-tabs__item{
    font-size: 16px;
  }
}
</style>
<style lang="scss" scoped>

</style>
