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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<template>
<div class="ul-wrapper height100">
<div class="panel-table">
<ul class="title-wrapper">
<li v-for="(item, index) in tList" :key="index">
{{ item }}
</li>
</ul>
<ul class="panel-table-content">
<li v-for="(item, index) in data.slice(0, 5)" :key="index">
<span>
<img :src="getImg(index + 1)" alt="" v-if="index < 3" />
<p v-else>{{ index + 1 }}</p>
</span>
<span>{{ item.organName }}</span>
<span>{{ item.frequencyCnt }}</span>
</li>
</ul>
</div>
<div class="panel-table">
<ul class="title-wrapper">
<li v-for="(item, index) in tList" :key="index">
{{ item }}
</li>
</ul>
<ul class="panel-table-content">
<li v-for="(item, index) in data.slice(5, 10)" :key="index">
<span>
{{ 6 + index }}
</span>
<span>{{ item.organName }}</span>
<span>{{ item.frequencyCnt }}</span>
</li>
</ul>
</div>
</div>
</template>
<script>
export default {
data() {
return {};
},
props: {
tList: {
type: Array,
default: [],
},
data: {
type: Array,
default: () => {
return [];
},
},
},
methods: {
getImg(s) {
return require("@/assets/overview/rank0" + s + ".png");
},
},
};
</script>
<style lang="less" scoped>
.ul-wrapper {
display: flex;
padding: 15px 20px 40px;
.panel-table {
width: 50%;
&:first-child {
padding-right: 10px;
}
&:last-child {
padding-left: 10px;
}
.title-wrapper {
display: flex;
height: 48px;
line-height: 48px;
li {
text-align: center;
width: 40%;
&:first-child {
width: 20%;
}
}
}
.panel-table-content {
height: calc(100% - 56px);
li {
width: 100%;
height: 20%;
line-height: 1;
max-height: 48px;
background-color: @party-bg-gray;
margin-bottom: 4px;
border-radius: 2px;
display: flex;
align-items: center;
span {
text-align: center;
width: 40%;
display: inline-block;
&:first-child {
width: 20%;
}
}
img {
width: 18px;
vertical-align: middle;
}
}
}
}
}
</style>