index.vue
2.2 KB
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
<template>
<view>
<view class="ListItem" @click="openPop">
<view class="ListItem-1">
<view class="ListItem-1-i" v-if="type !== EVALUATIONTYPE.POPULATION">
<image class="ListItem-1-i-i" src="@/static/images/admin/icon16.png" mode="widthFix"></image>
<text class="ListItem-1-i-t">{{ info.pid }}</text>
</view>
<view class="ListItem-1-i">
<image class="ListItem-1-i-i" src="@/static/images/admin/icon17.png" mode="widthFix"></image>
<text class="ListItem-1-i-t">{{ info.uid }}</text>
</view>
<view class="ListItem-1-i" v-if="type === EVALUATIONTYPE.HEADMASTER || type === EVALUATIONTYPE.ASSISTANTTEACHER">
<image class="ListItem-1-i-i" src="@/static/images/admin/icon9.png" mode="widthFix"></image>
<text class="ListItem-1-i-t">{{ info.class_id }}</text>
</view>
<view class="ListItem-1-i">
<image class="ListItem-1-i-i" src="@/static/images/admin/icon19.png" mode="widthFix"></image>
<text class="ListItem-1-i-t">{{ info.star }}</text>
</view>
</view>
<view class="ListItem-2">
{{ info.create_time }}
</view>
</view>
<info-pop ref="infoRef" :type="type"></info-pop>
</view>
</template>
<script>
import InfoPop from "../InfoPop/index.vue"
import { EVALUATIONTYPE } from "../../emit.js"
export default {
name: 'ListItem',
props: {
info: {
type: Object,
default: () => {
return {}
}
},
type: {
type: [String, Number],
default: ''
}
},
components: {
InfoPop
},
data() {
return {
EVALUATIONTYPE
}
},
methods: {
openPop() {
this.$refs.infoRef.open(this.info)
}
}
}
</script>
<style lang="scss" scoped>
.ListItem{
border-radius: 15rpx;
background: #FFFFFF;
padding: 0 30rpx;
margin-bottom: 20rpx;
.ListItem-1{
border-bottom: 1rpx #EEEEEE solid;
padding-top: 28rpx;
.ListItem-1-i{
display: flex;
align-items: center;
margin-bottom: 28rpx;
.ListItem-1-i-i{
height: 30rpx;
width: 30rpx;
flex-shrink: 0;
}
.ListItem-1-i-t{
color: #323232;
font-size: 28rpx;
margin-left: 20rpx;
}
}
}
.ListItem-2{
line-height: 60rpx;
font-size: 26rpx;
color: #A1A0AB;
}
}
</style>