|
|
@@ -337,6 +337,9 @@ export default {
|
|
|
},
|
|
|
ticketListMaxHeight () {
|
|
|
return this.this.category === 'batch' ? '300px' : '500px'
|
|
|
+ },
|
|
|
+ isTeam () {
|
|
|
+ return this.category === 'ticket' && this.$route.meta.type === 'team'
|
|
|
}
|
|
|
},
|
|
|
watch: {
|
|
|
@@ -410,12 +413,11 @@ export default {
|
|
|
ticketTypeName: '',
|
|
|
category: this.ticketType
|
|
|
}
|
|
|
- // 根据售票类型筛选团散票种:typeId=1(散客)筛选0和1,typeId=2(团队)筛选0和2
|
|
|
- if (this.typeId === '1') {
|
|
|
- params.teamIndividualList = [0, 1]
|
|
|
- } else if (this.typeId === '2') {
|
|
|
- params.teamIndividualList = [0, 2]
|
|
|
+ // 根据售票类型筛选团散票种:(散客)筛选0和1,(团队)筛选0和2
|
|
|
+ if (this.ticketType === 'ticket') {
|
|
|
+ params.teamIndividualList = this.isTeam ? [0, 2] : [0, 1]
|
|
|
}
|
|
|
+
|
|
|
getTicketTypeList(params).then(res => {
|
|
|
this.tableData = res.data.records.map(item => {
|
|
|
// 添加拼音首字母
|