优化数据结构

main
RogerWork 11 months ago
parent 5d43e56a11
commit 7e83361fc6
  1. 29
      src/views/mock/index.vue

@ -29,36 +29,29 @@ const select_ip = ref('')
const checkAll = ref(false) const checkAll = ref(false)
const isIndeterminate = ref(false) const isIndeterminate = ref(false)
const checkedMockConfig = ref([]) const checkedMockConfig = ref([])
const mockConfigItems = ['download_film_info', 'get_cinema_info', 'get_screen_info'] const mockConfigItems = ['download_film_info', 'get_cinema_info', 'get_screen_info', 'report_ticket',
'report_film_schedule', 'upload_screen_seat_info', 'get_overtime_ticket_status', 'valid_error']
const mockConfig = ref( const mockConfig = ref(
[ [
{ {
label: '数据下载', label: '数据下载',
items: [ items: [{key: 'download_film_info', name: '影片信息下载接口'},
{ {key: 'get_cinema_info', name: '影院信息下载接口'},
key: 'download_film_info', {key: 'get_screen_info', name: '影厅信息下载接口'}]
name: '影片信息下载接口'
}, {
key: 'get_cinema_info',
name: '影院信息下载接口'
}, {
key: 'get_screen_info',
name: '影厅信息下载接口'
}
]
}, { }, {
label: '数据上报', label: '数据上报',
items: ['report_ticket', 'report_film_schedule', 'upload_screen_seat_info'] items: [{key: 'report_ticket', name: '票房数据上报接口'},
{key: 'report_film_schedule', name: '排片数据上报接口'},
{key: 'upload_screen_seat_info', name: '座位信息上报接口'}]
}, { }, {
label: '超时票务审核', label: '超时票务审核',
items: ['get_overtime_ticket_status'] items: [{key: 'get_overtime_ticket_status', name: '超时票务受理情况查询接口'},]
}, { }, {
label: '数据查询', label: '数据查询',
items: ['valid_error'] items: [{key: 'valid_error', name: '数据清洗错误查询接口'},]
} }
] ])
)
async function get_cinema_items() { async function get_cinema_items() {
cinema_items = [] cinema_items = []

Loading…
Cancel
Save