<template>
  <div id="zhuanti">
    <el-row>
      <el-col :span="24" class="info">
        <el-tabs type="border-card">
          <el-tab-pane>
            <span slot="label">专题研讨</span>
            <span slot="label" class="dian"></span>
            <el-col :span="24" class="list">
              <ul>
                <li
                  class="zhuantiList"
                  v-for="(item, index) in ztytList"
                  :key="index"
                  @click="$router.push({ path: '/communication/list', query: { col_name: '专题研讨', id: 'id', display: '1' } })"
                >
                  <el-col :span="20" class="title textOver">{{ item.title }}</el-col>
                  <el-col :span="4" class="date textOver">{{ item.date }}</el-col>
                </li>
              </ul>
              <el-col class="more" :span="24"><el-link :underline="false" @click="morezt()">查看更多</el-link></el-col>
            </el-col>
          </el-tab-pane>
          <el-tab-pane>
            <span slot="label">技术问答</span>
            <span slot="label" class="dian"></span>
            <el-col :span="24" class="list">
              <ul>
                <li
                  class="zhuantiList"
                  v-for="(item, index) in jswdList"
                  :key="index"
                  @click="$router.push({ path: '/communication/list', query: { col_name: '技术问答', id: 'id', display: '1' } })"
                >
                  <el-col :span="20" class="title textOver">{{ item.title }}</el-col>
                  <el-col :span="4" class="date textOver">{{ item.date }}</el-col>
                </li>
              </ul>
              <el-col class="more" :span="24"><el-link :underline="false" @click="morejishu()">查看更多</el-link></el-col>
            </el-col>
          </el-tab-pane>
          <el-tab-pane>
            <span slot="label">行业研究</span>
            <span slot="label" class="dian"></span>
            <el-col :span="24" class="list">
              <ul>
                <li
                  class="zhuantiList"
                  v-for="(item, index) in hyyjList"
                  :key="index"
                  @click="$router.push({ path: '/communication/list', query: { col_name: '行业研究', id: 'id', display: '1' } })"
                >
                  <el-col :span="20" class="title textOver">{{ item.title }}</el-col>
                  <el-col :span="4" class="date textOver">{{ item.date }}</el-col>
                </li>
              </ul>
              <el-col class="more" :span="24"><el-link :underline="false" @click="morehangye()">查看更多</el-link></el-col>
            </el-col>
          </el-tab-pane>
          <el-tab-pane>
            <span slot="label">科技培训</span>
            <el-col :span="24" class="list">
              <ul>
                <li
                  class="zhuantiList"
                  v-for="(item, index) in kjpxList"
                  :key="index"
                  @click="$router.push({ path: '/communication/list', query: { col_name: '科技培训', id: 'id', display: '1' } })"
                >
                  <el-col :span="20" class="title textOver">{{ item.title }}</el-col>
                  <el-col :span="4" class="date textOver">{{ item.date }}</el-col>
                </li>
              </ul>
              <el-col class="more" :span="24"><el-link :underline="false" @click="morekeji()">查看更多</el-link></el-col>
            </el-col>
          </el-tab-pane>
        </el-tabs>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  name: 'zhuanti',
  props: {
    ztytList: null, //专题研讨
    jswdList: null, //技术问答
    hyyjList: null, //行业研究
    kjpxList: null, //科技培训
  },
  components: {},
  data: () => ({}),
  created() {},
  computed: {},
  methods: {
    morezt() {
      this.$router.push({ path: '/communication/list', query: { col_name: '专题研讨', display: '0' } });
    },

    morejishu() {
      this.$router.push({ path: '/communication/list', query: { col_name: '技术问答', display: '0' } });
    },
    morehangye() {
      this.$router.push({ path: '/communication/list', query: { col_name: '行业研究', display: '0' } });
    },
    morekeji() {
      this.$router.push({ path: '/communication/list', query: { col_name: '科技培训', display: '0' } });
    },
  },
};
</script>

<style lang="less" scoped>
ul {
  padding: 0;
  margin: 0;
}
li {
  padding: 0;
  margin: 0;
  color: #999;
}
.info {
  padding: 20px;
  height: 720px;
  overflow: hidden;
}
/deep/.el-tabs--border-card {
  border: none;
  box-shadow: none;
}
/deep/.el-tabs--border-card > .el-tabs__header {
  background-color: transparent;
  border-bottom: none;
  margin: 0 0 10px 0;
}
/deep/.el-tabs--border-card > .el-tabs__header .el-tabs__item.is-active {
  color: #054982;
  border-right-color: transparent;
  border-left-color: transparent;
}
/deep/.el-tabs__item {
  padding: 0px 0px 0 0;
  font-size: 22px;
  font-weight: bold;
}
/deep/.el-tabs--top.el-tabs--border-card > .el-tabs__header .el-tabs__item:nth-child(2) {
  padding-left: 0;
}
/deep/.el-tabs--border-card > .el-tabs__content {
  padding: 0;
}

/deep/.el-tabs--border-card > .el-tabs__header .el-tabs__item:not(.is-disabled):hover {
  color: #054982;
}

.list ul {
  min-height: 30px;
  max-height: 583px;
  overflow: hidden;
  padding: 0 0 0 20px;
}
.list ul li {
  padding: 6px 0 10px 0;
}
.list ul li .date {
  display: inline-block;
  width: 90px;
  text-align: left;
  font-size: 16px;
  color: #60626e;
}
.list ul li .title {
  display: inline-block;
  font-size: 16px;
  color: #60626e;
  width: 610px;
  margin: 0 20px 0 0;
}
.list ul li:hover .date {
  color: #215299;
}
.list ul li:hover .title {
  color: #215299;
}
.more {
  height: 30px;
  line-height: 25px;
  text-align: center;
  background: #f5f5f5;
  margin: 15px 0 0 0;
}
.more .el-link {
  font-size: 16px;
  color: #60626e;
}

.dian {
  display: inline-block;
  width: 5px;
  height: 5px;
  background-color: #054982;
  margin: 0px 10px 5px 10px;
}
</style>
