<template>
  <div id="adviserList">
    <el-row>
      <el-col :span="24" class="main">
        <el-col :span="24" class="top">
          <heads></heads>
        </el-col>
        <div class="w_1200">
          <el-col :span="5" class="left">
            <el-col :span="24" class="leftTop">
              <mainMenu :liebiaoList="liebiaoList" v-on="$listeners"></mainMenu>
            </el-col>
          </el-col>
          <el-col :span="19" class="right">
            <appointment :total="total" v-on="$listeners" :resultTable="resultTable" :limit="limit" v-if="display === 'list'"></appointment>
            <look v-on="$listeners" :resultTable="resultTable" :pageSize="pageSize" :total="total" v-else></look>
          </el-col>
        </div>
        <el-col :span="24" class="foots">
          <foot></foot>
        </el-col>
      </el-col>
    </el-row>
  </div>
</template>

<script>
import heads from '@/layout/enterprise/heads.vue';
import mainMenu from '@/layout/enterprise/mainMenu.vue';
import appointment from '@/layout/enterprise/appointment.vue';
import look from '@/layout/enterprise/look.vue';
import foot from '@/layout/live/foot.vue';

export default {
  name: 'adviserList',
  props: {
    info: null, //站点信息
    liebiaoList: null, //分类导航
    form: null,
    resultTable: null,
    total: null,
    pageSize: null,
    limit: null,
    display: { type: String, default: 'list' },
  },
  components: {
    heads,
    mainMenu, //分类导航
    appointment, //右侧
    foot,
    look,
  },
  data: () => ({}),
  created() {},
  computed: {},
  methods: {},
};
</script>

<style lang="less" scoped>
.w_1200 {
  width: 80%;
  margin: 0 auto;
}

.menu {
  height: 70px;
  overflow: hidden;
}
.main {
  min-height: 520px;
  overflow: hidden;

  background: #e9edf6;
  background-attachment: fixed;
  background-size: cover;
  background-position: center center;
}
.left {
  min-height: 520px;
  margin: 0 10px 0 0;
  width: 20%;
}

.leftTop {
  background: #fff;
    height: 455px;
  overflow: hidden;
  margin: 0 0 10px 0;
}
.right {
  width: 79%;
  min-height: 520px;
  overflow: hidden;
  background-color: #fff;
}
.foots {
  margin: 10px 0 0 0;
}
</style>
