优化数据结构

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

@ -29,36 +29,29 @@ const select_ip = ref('')
const checkAll = ref(false)
const isIndeterminate = ref(false)
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(
[
{
label: '数据下载',
items: [
{
key: 'download_film_info',
name: '影片信息下载接口'
}, {
key: 'get_cinema_info',
name: '影院信息下载接口'
}, {
key: 'get_screen_info',
name: '影厅信息下载接口'
}
]
items: [{key: 'download_film_info', name: '影片信息下载接口'},
{key: 'get_cinema_info', name: '影院信息下载接口'},
{key: 'get_screen_info', name: '影厅信息下载接口'}]
}, {
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: '超时票务审核',
items: ['get_overtime_ticket_status']
items: [{key: 'get_overtime_ticket_status', name: '超时票务受理情况查询接口'},]
}, {
label: '数据查询',
items: ['valid_error']
items: [{key: 'valid_error', name: '数据清洗错误查询接口'},]
}
]
)
])
async function get_cinema_items() {
cinema_items = []
@ -164,44 +157,44 @@ onMounted(
:key="api.key"
:label="api.key"
>
{{api.name}}
{{ api.name }}
</el-checkbox>
</el-col>
</el-row>
</div>
</el-checkbox-group>
<!-- &lt;!&ndash; <el-checkbox-group>&ndash;&gt;-->
<!-- <el-row :gutter="0">-->
<!-- <el-col :span="8">-->
<!-- <el-checkbox-->
<!-- v-model="mock_config.download_film_info"-->
<!-- key="download_film_info"-->
<!-- label="download_film_info"-->
<!-- @change="handle_download_all_Change"-->
<!-- >-->
<!-- 影片信息下载接口-->
<!-- </el-checkbox>-->
<!-- </el-col>-->
<!-- <el-col :span="8">-->
<!-- <el-checkbox-->
<!-- v-model="mock_config.get_cinema_info"-->
<!-- key="get_cinema_info"-->
<!-- label="get_cinema_info"-->
<!-- @change="handle_download_all_Change">-->
<!-- 影院信息下载接口-->
<!-- </el-checkbox>-->
<!-- </el-col>-->
<!-- <el-col :span="8">-->
<!-- <el-checkbox-->
<!-- v-model="mock_config.get_screen_info"-->
<!-- key="get_screen_info"-->
<!-- label="get_screen_info"-->
<!-- @change="handle_download_all_Change">-->
<!-- 影厅信息下载接口-->
<!-- </el-checkbox>-->
<!-- </el-col>-->
<!-- </el-row>-->
<!-- &lt;!&ndash; <el-checkbox-group>&ndash;&gt;-->
<!-- <el-row :gutter="0">-->
<!-- <el-col :span="8">-->
<!-- <el-checkbox-->
<!-- v-model="mock_config.download_film_info"-->
<!-- key="download_film_info"-->
<!-- label="download_film_info"-->
<!-- @change="handle_download_all_Change"-->
<!-- >-->
<!-- 影片信息下载接口-->
<!-- </el-checkbox>-->
<!-- </el-col>-->
<!-- <el-col :span="8">-->
<!-- <el-checkbox-->
<!-- v-model="mock_config.get_cinema_info"-->
<!-- key="get_cinema_info"-->
<!-- label="get_cinema_info"-->
<!-- @change="handle_download_all_Change">-->
<!-- 影院信息下载接口-->
<!-- </el-checkbox>-->
<!-- </el-col>-->
<!-- <el-col :span="8">-->
<!-- <el-checkbox-->
<!-- v-model="mock_config.get_screen_info"-->
<!-- key="get_screen_info"-->
<!-- label="get_screen_info"-->
<!-- @change="handle_download_all_Change">-->
<!-- 影厅信息下载接口-->
<!-- </el-checkbox>-->
<!-- </el-col>-->
<!-- </el-row>-->
<!-- </el-checkbox-group>-->

Loading…
Cancel
Save