zjf
2023-02-24 3f9bad03f4fbca2d5c5be86e904ae832475634d8
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<template>
  <div class="staff">
    <div
      v-for="(item, index) in staffData"
      :key="index"
      class="staff-data">
      <div class="item-title">{{ item.letter }}</div>
      <div
        v-for="(k, j) in item.list"
        :key="j"
        class="k-list">
        <div class="list-right">
          <div class="k-realname">{{ k.realname.substring(0, 6) }}</div>
          <div class="content">
            <div v-if="k.deptName">
              <img
                src="@/assets/img/structure.png"
                alt="">
              <span>{{ k.deptName }}</span>
            </div>
            <div v-if="k.postName">
              <img
                src="@/assets/img/post.png"
                alt="">
              <span>{{ k.postName }}</span>
            </div>
            <div v-if="k.mobile">
              <img
                src="@/assets/img/mobile.png"
                alt="">
              <span>{{ k.mobile }}</span>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>
 
<script>
export default {
  props: {
    staffData: Array
  },
  data () {
    return {}
  },
  created () {},
  methods: {
    handleClick () {}
  }
}
</script>
 
<style scoped lang="scss">
.staff {
  padding: 0 30px;
  flex: 1;
  overflow: auto;
  margin-bottom: 20px;
  .staff-data {
    margin-top: 15px;
  }
  .item-title {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    color: #777;
    margin-bottom: 13px;
    font-size: 12px;
  }
  .k-realname {
    margin-bottom: 8px;
  }
}
</style>