<template>
  <div id="cause">
    <el-row>
      <el-col :span="24">
        <el-tabs v-model="activeName" @tab-click="handleClick">
          <el-tab-pane label="吉林省事业单位招聘" name="first">
            <el-col :span="24" v-for="(item, index) in enterList" :key="index" class="enterList">
              <el-col :span="20" class="title textOver">
                <el-link :underline="false">{{ item.title }}</el-link>
              </el-col>
              <el-col :span="4" class="time">
                {{ item.time }}
              </el-col>
            </el-col>
          </el-tab-pane>
          <el-tab-pane label="吉林省教师招聘" name="second">
            <el-col :span="24" v-for="(item, index) in teacherList" :key="index" class="teacherList">
              <el-col :span="20" class="title textOver">
                <el-link :underline="false">{{ item.title }}</el-link>
              </el-col>
              <el-col :span="4" class="time">
                {{ item.time }}
              </el-col>
            </el-col>
          </el-tab-pane>
        </el-tabs>
        <el-link :inderline="false" class="moreLink" :style="`color:${Color}`">MORE<i class="el-icon-video-play"></i> </el-link>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  name: 'cause',
  props: {
    enterList: null,
    teacherList: null,
  },
  components: {},
  data: () => ({
    activeName: 'first',
    Color: '#850000',
  }),
  created() {},
  computed: {},
  methods: {
    handleClick(tab, event) {
      // eslint-disable-next-line no-console
      console.log(tab, event);
    },
  },
};
</script>

<style lang="less" scoped>
.moreLink {
  position: absolute;
  top: 10px;
  right: 10px;
  color: #850000;
}
/deep/.el-tabs__nav {
  left: 20px;
}
/deep/.el-tabs__header {
  margin: 0;
}
.talksList {
  padding: 12px 10px;
  border-bottom: 1px dashed #ccc;
}
.talksList .title .el-link {
  font-size: 18px;
}
.textOver {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.enterList {
  padding: 10px;
  border-bottom: 1px dashed #ccc;
}
.enterList .title .el-link {
  font-size: 18px;
}
.enterList .time {
  font-size: 18px;
  text-align: right;
}
.teacherList {
  padding: 10px;
  border-bottom: 1px dashed #ccc;
}
.teacherList .title .el-link {
  font-size: 18px;
}
.teacherList .time {
  font-size: 18px;
  text-align: right;
}
</style>
