Blame view

antis-ncc-admin/src/components/VisualPortal/HEmail/index.vue 1.04 KB
03207d5d   wwk   1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
  <template>
    <el-card shadow="never" class="portal-todoList-box">
      <div slot="header" class="portal-common-title">
        <span>{{title}}</span>
      </div>
      <div class="portal-todoList-box-body">
        <template v-if="list.length">
          <router-link class="item" to="/extend/email" v-for="(item, i) in list" :key="i">
            <span class="name">{{item.fullName}}</span>
            <span class="time">{{item.creatorTime | toDateText()}}</span>
          </router-link>
        </template>
        <div class="portal-common-noData" v-else>
          <img src="@/assets/images/portal-nodata.png" alt="" class="noData-img">
          <p class="noData-txt">暂无数据</p>
        </div>
      </div>
    </el-card>
  </template>
  <script>
  import { getEmail } from '@/api/home'
  export default {
    props: {
      title: { type: String, default: '' }
    },
    data() {
      return {
        list: []
      }
    },
    created() {
      this.getData()
    },
    methods: {
      getData() {
        getEmail().then(res => {
          this.list = res.data.list.slice(0, 7)
        })
      }
    }
  }
  </script>