优化数据结构

main
RogerWork 11 months ago
parent 5d43e56a11
commit 7e83361fc6
  1. 101
      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 = []
@ -151,8 +144,8 @@ onMounted(
</p> </p>
</div> </div>
<el-checkbox-group <el-checkbox-group
v-model="checkedMockConfig" v-model="checkedMockConfig"
@change="" @change=""
> >
<div v-for="(api_items) in mockConfig"> <div v-for="(api_items) in mockConfig">
<el-divider content-position="left"> <el-divider content-position="left">
@ -161,47 +154,47 @@ onMounted(
<el-row justify="start"> <el-row justify="start">
<el-col :span=24/api_items.items.length v-for="api in api_items"> <el-col :span=24/api_items.items.length v-for="api in api_items">
<el-checkbox <el-checkbox
:key="api.key" :key="api.key"
:label="api.key" :label="api.key"
> >
{{api.name}} {{ api.name }}
</el-checkbox> </el-checkbox>
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
</el-checkbox-group> </el-checkbox-group>
<!-- &lt;!&ndash; <el-checkbox-group>&ndash;&gt;--> <!-- &lt;!&ndash; <el-checkbox-group>&ndash;&gt;-->
<!-- <el-row :gutter="0">--> <!-- <el-row :gutter="0">-->
<!-- <el-col :span="8">--> <!-- <el-col :span="8">-->
<!-- <el-checkbox--> <!-- <el-checkbox-->
<!-- v-model="mock_config.download_film_info"--> <!-- v-model="mock_config.download_film_info"-->
<!-- key="download_film_info"--> <!-- key="download_film_info"-->
<!-- label="download_film_info"--> <!-- label="download_film_info"-->
<!-- @change="handle_download_all_Change"--> <!-- @change="handle_download_all_Change"-->
<!-- >--> <!-- >-->
<!-- 影片信息下载接口--> <!-- 影片信息下载接口-->
<!-- </el-checkbox>--> <!-- </el-checkbox>-->
<!-- </el-col>--> <!-- </el-col>-->
<!-- <el-col :span="8">--> <!-- <el-col :span="8">-->
<!-- <el-checkbox--> <!-- <el-checkbox-->
<!-- v-model="mock_config.get_cinema_info"--> <!-- v-model="mock_config.get_cinema_info"-->
<!-- key="get_cinema_info"--> <!-- key="get_cinema_info"-->
<!-- label="get_cinema_info"--> <!-- label="get_cinema_info"-->
<!-- @change="handle_download_all_Change">--> <!-- @change="handle_download_all_Change">-->
<!-- 影院信息下载接口--> <!-- 影院信息下载接口-->
<!-- </el-checkbox>--> <!-- </el-checkbox>-->
<!-- </el-col>--> <!-- </el-col>-->
<!-- <el-col :span="8">--> <!-- <el-col :span="8">-->
<!-- <el-checkbox--> <!-- <el-checkbox-->
<!-- v-model="mock_config.get_screen_info"--> <!-- v-model="mock_config.get_screen_info"-->
<!-- key="get_screen_info"--> <!-- key="get_screen_info"-->
<!-- label="get_screen_info"--> <!-- label="get_screen_info"-->
<!-- @change="handle_download_all_Change">--> <!-- @change="handle_download_all_Change">-->
<!-- 影厅信息下载接口--> <!-- 影厅信息下载接口-->
<!-- </el-checkbox>--> <!-- </el-checkbox>-->
<!-- </el-col>--> <!-- </el-col>-->
<!-- </el-row>--> <!-- </el-row>-->
<!-- </el-checkbox-group>--> <!-- </el-checkbox-group>-->

Loading…
Cancel
Save