tiny work

This commit is contained in:
zema1 2017-11-23 22:01:50 +08:00
parent 77ac91d7a5
commit e4ffd574ff
3 changed files with 4 additions and 4 deletions

View File

@ -55,7 +55,7 @@
</el-table-column>
<el-table-column
fixed="right"
label="option">
label="Options">
<template slot-scope="scope">
<icon-btn name="Delete" icon="trash" @click.native="deleteJudgeServer(scope.row.hostname)"></icon-btn>
</template>

View File

@ -88,7 +88,7 @@
{{row[1]}}
</template>
</el-table-column>
<el-table-column label="email">
<el-table-column label="Email">
<template slot-scope="{row}">
{{row[2]}}
</template>

View File

@ -62,7 +62,7 @@
<div v-else-if="problem.my_status === 0">
<Alert type="success" show-icon>You have solved the problem</Alert>
</div>
<div v-else-if="this.contestID && !OIContestRealTimePermission">
<div v-else-if="this.contestID && !OIContestRealTimePermission && submissionExists">
<Alert type="success" show-icon>You have submitted a solution.</Alert>
</div>
<div class="status" v-if="contestEnded">
@ -262,7 +262,6 @@
api[func](this.problemID, this.contestID).then(res => {
this.$Loading.finish()
api.submissionExists(res.data.data.id).then(res => {
console.log(res.data.data)
this.submissionExists = res.data.data
})
this.problem = res.data.data
@ -365,6 +364,7 @@
this.submissionId = res.data.data && res.data.data.submission_id
//
this.submitting = false
this.submissionExists = true
if (!detailsVisible) {
this.$Modal.success({
title: 'Success',