<template>
  <div class="review-wrap">
    <!-- 公共头部菜单插件 -->
    <vue-office-header :projectName="projectName" @collapseTag="collapseTag" @toRouterView="toRouterView"></vue-office-header>
    <div class="setting-wrap__body">
      <div id="content" class="content">
        <div class="content-body" :style="{height: contentHeight}">
          <div class="left-menu" :style="{height: contentHeight}">
            <vue-office-aside ref="asideMenu" :projectName="projectName"  :collapseFlag="collapseFlag"></vue-office-aside>
          </div>
          <transition name="fade" mode="out-in">
            <!-- 缓存已经填好内容的页面 -->
            <!-- <keep-alive include="editGroupGrade"> -->
              <router-view></router-view>
            <!-- </keep-alive > -->
          </transition>
        </div>
      </div>
    </div>
  </div>
</template>
<script>

export default {
  name: "reviewed",
  data() {
    return {
      projectName: 'haoban-manage-web', // 当前项目名
      collapseFlag: false, // 折叠参数
      contentHeight: '0px', //页面内容高度
    }
  },
  computed: {

  },
  methods: {
    // 处理路由跳转
    toRouterView(val) {
      var that = this;
      // 模拟检查数据
      // //有两个参数
      //{
      //  name:,
      //  path:
      //}
      console.log(val);
      that.$router.push({
        path: val.path
      })
    },

    // 折叠事件
    collapseTag(val) {
      var that = this;
      console.log(val);
      that.collapseFlag = val
    },
  },
  mounted() {
    const that = this
    that.contentHeight = (document.documentElement.clientHeight || document.body.clientHeight) - 64 +'px';
  },
}

</script>
<style lang="less" >
.setting-wrap__body{
  .content{
    padding-top: 64px;
   /* height: calc(100% - 64px);
    overflow-y: auto;*/
    min-width: 1400px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;

    .content-body {
      display: flex;
      overflow: hidden;

      .common-set-wrap {
        position: relative;
        width: 100%;
        height: 100%;
        overflow-y: auto;

        .right-content {
          /*width: 100%;*/
          padding: 24px;
          min-height: calc(100% - 240px);

          .right-box {
            background: #fff;
            padding: 24px;
          }
        }
      }
    }
  }
}

.el-table__empty-block {
  height: 256px;
}

.el-table__empty-text{
  width: auto;
  margin-bottom:80px;
  &::before{
    content: ' ';
    display: block;
    width: 60px;
    height: 60px;
    background: url(../../assets/no-data_icon.png) no-repeat center;
    margin: 0px auto 22px auto;
  }
}

.el-table__empty-text {
  margin-bottom: 0;
}
</style>
