Skip to content

Commit

Permalink
feat: add 'outputLimit' field in problem (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
jesHrz authored May 9, 2021
1 parent 1573b4b commit c220281
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/views/problem/ProblemListView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,11 @@
<span slot="append">KiB</span>
</Input>
</FormItem>
<FormItem label="Output Limit" required>
<Input v-model.number="problem.outputLimit">
<span slot="append">KiB</span>
</Input>
</FormItem>
<FormItem label="Judge Template" v-if="problemModal">
<Select
transfer
Expand Down Expand Up @@ -241,6 +246,7 @@ export default {
judgeTemplates: this.problem.judgeTemplates,
managerGroups: this.problem.managerGroups,
memoryLimit: parseInt(this.problem.memoryLimit),
outputLimit: parseInt(this.problem.outputLimit),
timeLimit: parseInt(this.problem.timeLimit)
}
api[this.isAddProblem ? 'createProblem' : 'updateProblemInfo'](data)
Expand Down Expand Up @@ -273,6 +279,7 @@ export default {
judgeTemplates: [],
timeLimit: 1000,
memoryLimit: 262144,
outputLimit: 102400,
source: '',
managerGroupDTOList: [],
managerGroups: []
Expand Down

0 comments on commit c220281

Please sign in to comment.