<template>
  <div id="mechanism">
    <el-row>
      <el-col :span="24" class="info">
        <el-col :span="24" class="top">
          机构团体
        </el-col>
        <el-col :span="24" class="list">
          <ul>
            <li class="schoolList" v-for="(item, index) in mechanismList" :key="index">
              <el-col :span="8" class="image">
                <el-image style="width:130px;height:130px;" :src="item.pic"></el-image>
              </el-col>
              <el-col :span="16" class="content">
                <el-col :span="20" class="title textOver">{{ item.title }}</el-col>
                <el-col :span="4" class="city">
                  <i class="el-icon-location"></i>
                  {{ item.city }}
                </el-col>
                <el-col :span="24" class="guimo "> 机构规模：{{ item.guimo }} 机构等级：{{ item.dengji }}</el-col>
                <el-col :span="24" class="lingyu"
                  >重点研究领域：<span>{{ item.lingyu }}</span></el-col
                >
                <el-col :span="24" class="jianjie"
                  ><span> 机构简介：</span>

                  <p>{{ item.jianjie }}</p></el-col
                >
              </el-col>
            </li>
          </ul>
          <el-col :span="24" class="page">
            <el-pagination
              @size-change="handleSizeChange"
              @current-change="handleCurrentChange"
              :current-page="currentPage"
              layout="total, prev, pager, next, jumper"
              :total="mechanismTotal"
            >
            </el-pagination>
          </el-col>
        </el-col>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  name: 'mechanism',
  props: {
    mechanismList: null,
    mechanismTotal: null,
  },
  components: {},
  data: () => ({
    currentPage: 1,
  }),
  created() {},
  computed: {},
  methods: {
    handleSizeChange(val) {
      console.log(`每页 ${val} 条`);
    },
    handleCurrentChange(val) {
      console.log(`当前页: ${val}`);
    },
  },
};
</script>

<style lang="less" scoped>
ul {
  padding: 0;
  margin: 0;
}
li {
  padding: 0;
  margin: 0;
  list-style: none;
}
p {
  padding: 0;
  margin: 0;
}
.info {
  padding: 0 20px 20px 20px;
}
.top {
  height: 50px;
  line-height: 50px;
  border-bottom: 1px dashed #ccc;
  color: #215299;
  font-size: 18px;
}
.schoolList {
  float: left;
  height: 149px;
  width: 100%;
  padding: 20px 0;
  border-bottom: 1px dashed #ccc;
}
.schoolList .image {
  width: 130px;
  padding: 10px 0;
  margin: 0 20px 0 0;
}
.schoolList .content {
  width: 760px;
  margin: 10px 0 0 0;
}
.schoolList .title {
  line-height: 36px;
  font-size: 16px;
  color: #215299;
  text-align: left;
  height: 36px;
}
.schoolList .city {
  line-height: 36px;
  height: 36px;
  font-size: 12px;
  text-align: right;
}

.schoolList .guimo {
  font-size: 16px;
  color: #000000;
  line-height: 26px;
}
.schoolList .lingyu {
  font-size: 16px;
  color: #000000;
  line-height: 26px;
}
.schoolList .jianjie span {
  float: left;
  width: 80px;
  height: 42px;
  text-align: left;
  font-size: 16px;
  color: #000;
  line-height: 25px;
}
.schoolList .jianjie p {
  width: 680px;
  font-size: 16px;
  color: #666;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  overflow: hidden;
  word-break: break-all;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-height: 25px;
}
.page {
  padding: 34px 0;
  text-align: center;
}
</style>
