<template>
  <div id="notice">
    <el-col :span="24" class="maintoplefttitle">
      <div style="border-bottom: 1px solid #ccc;height: 40px;">
        <span></span><span>通知通告</span><span @click="mortongzhi()"><i class="el-icon-more"></i></span>
      </div>
    </el-col>
    <el-col :span="24">
      <el-col
        :span="24"
        class="leftcontext"
        v-for="(item, index) in noticeList"
        :key="index"
        @click.native="$router.push({ path: '/news/listDetail', query: { col_name: '通知通告', id: 'id', display: '1' } })"
      >
        <el-col :span="18" class="title"> <span></span>{{ item.title }} </el-col>
        <el-col :span="6" class="date">{{ item.date }}</el-col>
      </el-col>
    </el-col>
  </div>
</template>

<script>
export default {
  name: 'notice',
  props: {
    noticeList: null,
  },
  components: {},
  data: () => ({}),
  created() {},
  computed: {},
  methods: {
    async mortongzhi() {
      this.$router.push({ path: '/news/listDetail', query: { col_name: '通知通告', display: '0' } });
    },
  },
};
</script>

<style lang="less" scoped>
.context {
  height: 300px;
  background-color: #fff;
  width: 595px;
}

.context .leftcontext {
  padding: 0 20px 0 20px;
}

.main .context .maintoplefttitle {
  padding: 20px;
  // border-bottom: 1px dashed #ccc;
}
.main .context .maintoplefttitle span:first-child {
  display: inline-block;
  width: 4px;
  height: 20px;
  background: #005293;
  margin: 0 10px -3px 0;
}

.main .context .maintoplefttitle span:nth-child(2) {
  font-size: 20px;
  color: #005293;
  padding: 0 10px 0 0;
}
.main .context .maintoplefttitle span:nth-child(3) {
  font-size: 20px;
  color: #005293;
  float: right;
}

.maintopright .leftcontext {
  padding: 0 20px 0 20px;
  font-size: 16px;
}

.maintopright .leftcontext p {
  margin: 0;
  padding: 0;
}

.maintopright .leftcontext title span:first-child {
  font-weight: 1000;
  padding: 5px;
}

.title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 6px 0;
}
.title span:first-child {
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 9px 10px 3px 0;
  background: #ccc;
}

.date {
  float: right;
  color: #777777;
}
</style>
