matchInfo-projectList.vue
3.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
95
96
<template>
<div class="collapsebox">
<div class="pd20">
<table class="table" cellspacing="0" cellpadding="0" v-if="list.length > 0">
<tr v-if="language==0">
<th>组别编号</th>
<th>组别名称</th>
<th>舞种</th>
<th>舞种明细</th>
<th>参赛性别</th>
<th>参赛年龄</th>
<th>服务费(元)</th>
</tr>
<tr v-else>
<th>Group code</th>
<th>Group</th>
<th>Dance Style</th>
<th>Dance Detail</th>
<th>Sex</th>
<th>Age</th>
<th>Registration Fee</th>
</tr>
<tr v-for="(p,index) in list" :key="index">
<td>{{ p.code }}</td>
<td>{{ p.name }}</td>
<td>{{ p.danceType }}</td>
<td>{{ p.danceTypeDetailStr }}</td>
<td>{{ p.playTypeStr }}</td>
<td>
<!-- {{ isNational }}-->
<div v-if="isNational">
<span v-if="p.ageGroup == '0'" >{{ language==0?'不限制':'Unlimited' }}</span>
<span v-if="p.ageGroup == '1'" >Juvenile I</span>
<span v-if="p.ageGroup == '2'" >Juvenile II</span>
<span v-if="p.ageGroup == '3'" >Juv1& II (comb.)</span>
<span v-if="p.ageGroup == '4'" >Junior I</span>
<span v-if="p.ageGroup == '5'" >Junior II</span>
<span v-if="p.ageGroup == '6'" >Juv I & II (comb.)</span>
<span v-if="p.ageGroup == '7'" >Youth</span>
<span v-if="p.ageGroup == '8'" >Under 21</span>
<span v-if="p.ageGroup == '9'" >Adult</span>
<span v-if="p.ageGroup == '10'" >Senior I</span>
<span v-if="p.ageGroup == '11'" >Senior II</span>
<span v-if="p.ageGroup == '12'" >Senior III</span>
<span v-if="p.ageGroup == '13'" >Senior IV</span>
<span v-if="p.ageGroup == '14'" >Senior V</span>
</div>
<div v-else>
<div>{{ p.birthPeriod }}</div>
<div>{{p.birthPeriodSecond}}</div>
</div>
<!-- <div>{{ p.birthAgeGroup }};{{p.birthAgeSecondGroup}}</div>-->
</td>
<td>{{ language==0?'¥':'€' }}{{ p.serviceFee }}</td>
</tr>
</table>
</div>
<el-empty :image="`/img/order_no.png`" :image-size="228" v-if="list.length == 0" description=""/>
</div>
</template>
<script setup>
import {useStorage} from "@vueuse/core/index"
const language= useStorage('language',0)
const props = defineProps({
list: {
type: Array,
required: true,
default:[]
},
isNational: {
type: Boolean,
required: false,
default: false
},
})
</script>
<style scoped lang="scss">
.table{width: 100%;border-left: 1px solid #e1e1e1;border-top:1px solid #e1e1e1;
th{background: #eee;padding: 6px 10px;
border-right: 1px solid #e1e1e1;
border-bottom:1px solid #e1e1e1;
font-size: 15px;
}
td{padding: 6px 10px;border-right: 1px solid #e1e1e1;font-size: 15px;
border-bottom:1px solid #e1e1e1;vertical-align: middle;text-align: center;
span{margin-right: 10px}
span::after{content: ','}
span:last-child::after{content: ''}
}
}
</style>