put back export/import function

This commit is contained in:
virusdefender 2018-08-15 08:45:40 +08:00
parent 69a397ac0c
commit c5111ee685
2 changed files with 7 additions and 3 deletions

View File

@ -17,6 +17,8 @@
<template slot="title"><i class="el-icon-fa-bars"></i>{{$t('m.Problem')}}</template>
<el-menu-item index="/problems">{{$t('m.Problem_List')}}</el-menu-item>
<el-menu-item index="/problem/create">{{$t('m.Create_Problem')}}</el-menu-item>
<el-menu-item index="/problem/batch_ops">{{$t('m.Export_Import_Problem')}}</el-menu-item>
</el-submenu>
<el-submenu index="contest">
<template slot="title"><i class="el-icon-fa-trophy"></i>{{$t('m.Contest')}}</template>

View File

@ -1,6 +1,8 @@
<template>
<div>
<panel title="Export Problems">
<div style="padding-bottom: 10px;">
</div>
<panel title="Export Problems (beta)">
<el-table :data="problems"
v-loading="loadingProblems" @selection-change="handleSelectionChange">
<el-table-column
@ -47,7 +49,7 @@
</el-pagination>
</div>
</panel>
<panel title="Import QDUOJ Problems">
<panel title="Import QDUOJ Problems (beta)">
<el-upload
action="/api/admin/import_problem"
name="file"
@ -59,7 +61,7 @@
</el-upload>
</panel>
<panel title="Import FPS Problems">
<panel title="Import FPS Problems (beta)">
<el-upload
action="/api/admin/import_fps"
name="file"