<template>
  <div id="policy">
    <el-row>
      <el-col :span="24" class="top">
        <top></top>
      </el-col>
      <el-col :span="24" class="logo">
        <div class="w_1200">
          <logo :info="info"></logo>
        </div>
      </el-col>
      <el-col :span="24" class="menu">
        <div class="w_1200">
          <menuInfo></menuInfo>
        </div>
      </el-col>
      <el-col :span="24" class="main">
        <div class="w_1200">
          <el-col :span="5" class="fenlei">
            <el-col :span="24" class="leftTop">
              <fenlei :liebiaoList="liebiaoList" v-on="$listeners"></fenlei>
            </el-col>
            <el-col :span="24" class="leftDiao">
              <examine></examine>
            </el-col>
          </el-col>
          <el-col :span="19" class="rightcont">
            <rightcont v-on="$listeners" :columnName="columnName" :contentList="contentList" :total="total" v-if="display === 'list'"></rightcont>
            <policyrightcont v-else :columnTitle="columnTitle" :policyInfo="policyInfo"></policyrightcont>
          </el-col>
        </div>
      </el-col>
      <el-col :span="24" class="foot">
        <div class="w_1200">
          <foot :info="info"></foot>
        </div>
      </el-col>
    </el-row>
  </div>
</template>

<script>
import top from '@/layout/index/top.vue';
import logo from '@/layout/index/logo.vue';
import menuInfo from '@/layout/index/menuInfo.vue';
import foot from '@/layout/index/foot.vue';
import fenlei from '@/layout/shujulist/fenlei.vue';
import rightcont from '@/layout/shujulist/rightcont.vue';
import policyrightcont from '@/layout/shujulist/policyrightcont.vue';
import examine from '@/layout/personCenter/question.vue';
export default {
  name: 'policy',
  props: {
    info: null, //站点信息
    liebiaoList: null,
    columnName: null, //栏目标题
    contentList: null, //内容
    total: null,
    display: { type: String, default: 'list' },
    columnTitle: null, //信息详情头部栏目标题
    policyInfo: null, //信息详情
  },
  components: {
    top, //头部
    logo, //logo
    menuInfo, //导航
    foot, //底部
    fenlei, //左边分类
    rightcont, //右边栏
    policyrightcont,
    examine,
  },
  data: () => ({}),
  created() {},
  computed: {},
  methods: {
    clickList({ id }) {
      console.log(id);
    },
  },
};
</script>

<style lang="less" scoped>
.leftDiao {
  background: #fff;
  min-height: 120px;
  overflow: hidden;
  padding: 10px 0 0 0;
}

.leftTop {
  background: #fff;
  height: 420px;
  overflow: hidden;
  margin: 0 0 20px 0;
}
.w_1200 {
  width: 1200px;
  margin: 0 auto;
}
.top {
  height: 40px;
  overflow: hidden;
  background-color: rgba(11, 58, 125, 0.8);
}
.logo {
  height: 200px;
  overflow: hidden;
}
.menu {
  height: 70px;
  overflow: hidden;
}

.main {
  min-height: 600px;
  overflow: hidden;
  margin: 10px 0;
}
.main .fenlei {
  float: left;
  width: 240px;
  min-height: 800px;
  margin: 0 10px 0 0;
  overflow: hidden;
}
.main .rightcont {
  float: left;
  width: 950px;
  min-height: 800px;
  overflow: hidden;
  background-color: #fff;
}

.main .link {
  float: left;
  width: 100%;
  height: 100px;
  overflow: hidden;
  background-color: #fff;
}
.foot {
  float: left;
  width: 100%;
  height: 120px;
  overflow: hidden;
}
</style>
