<template>
  <div id="jobinfo">
    <el-col :span="24" @click.native="$router.push({ path: '/jobinfoDetail', query: { id: data.id } })">
      <el-col :span="20" class="title">
        <p class="textOver"><span class="dian"></span>{{ data.title }}</p>
        <p class="textOver"><span class="dian"></span>发布方:{{ data.corpname }}</p>
        <p class="textOver"><span class="dian"></span>发布站点:{{ data.schname }}</p>
      </el-col>
      <el-col :span="4" class="date">{{ data.time }}</el-col>
    </el-col>
  </div>
</template>

<script>
export default {
  name: 'jobinfo',
  props: {
    data: null,
  },
  components: {},
  data: () => ({}),
  created() {},
  computed: {},
  methods: {},
};
</script>

<style lang="less" scoped>
p {
  padding: 0;
  margin: 0;
}
.textOver {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dian {
  display: inline-block;
  width: 4px;
  height: 4px;
  background-color: #4f4f4f;
  border-radius: 90px;
  margin: 5px 8px;
}
.title {
  padding: 10px 0;
}
.title p {
  font-size: 16px;
  color: #4f4f4f;
}
.date {
  font-size: 14px;
  color: #323131;
  text-align: right;
  padding: 10px 0;
}
</style>
