|
@@ -222,7 +222,7 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
-import { getTicketTypeList, getTicketTypeByDate, getTicketTypeSort, saveTicketTypeSort } from '@/api/ticketType'
|
|
|
|
|
|
|
+import { getTicketTypeList, getTicketTypeByDate, saveTicketTypeSort } from '@/api/ticketType'
|
|
|
import draggable from 'vuedraggable'
|
|
import draggable from 'vuedraggable'
|
|
|
import { getBatchList } from '@/api/batch'
|
|
import { getBatchList } from '@/api/batch'
|
|
|
import moment from 'moment'
|
|
import moment from 'moment'
|
|
@@ -432,6 +432,7 @@ export default {
|
|
|
isSale: 1,
|
|
isSale: 1,
|
|
|
pageSize: 1000,
|
|
pageSize: 1000,
|
|
|
ticketTypeName: '',
|
|
ticketTypeName: '',
|
|
|
|
|
+ orderBy: true,
|
|
|
category: this.ticketType
|
|
category: this.ticketType
|
|
|
}
|
|
}
|
|
|
// 根据售票类型筛选团散票种:(散客)筛选0和1,(团队)筛选0和2
|
|
// 根据售票类型筛选团散票种:(散客)筛选0和1,(团队)筛选0和2
|
|
@@ -643,10 +644,10 @@ export default {
|
|
|
this.sortDialogVisible = true
|
|
this.sortDialogVisible = true
|
|
|
this.sortLoading = true
|
|
this.sortLoading = true
|
|
|
try {
|
|
try {
|
|
|
- const sortRes = await getTicketTypeSort(this.sortType)
|
|
|
|
|
- const sortData = sortRes?.data || []
|
|
|
|
|
|
|
+ // const sortRes = await getTicketTypeSort(this.sortType)
|
|
|
|
|
+ // const sortData = sortRes?.data || []
|
|
|
// 用排序接口的顺序排列 tableData
|
|
// 用排序接口的顺序排列 tableData
|
|
|
- const sortMap = new Map(sortData.map(s => [s.ticketTypeId, s.sort]))
|
|
|
|
|
|
|
+ const sortMap = new Map(this.tableData.map(s => [s.ticketTypeId, s.sort]))
|
|
|
this.sortList = [...this.tableData]
|
|
this.sortList = [...this.tableData]
|
|
|
.map(item => ({
|
|
.map(item => ({
|
|
|
ticketTypeId: item.id,
|
|
ticketTypeId: item.id,
|