|
|
@ -23,13 +23,12 @@ Vue.component('submission-item', { |
|
|
|
props: ['data', 'config', 'showRejudge', 'progress', 'compiling'], |
|
|
|
props: ['data', 'config', 'showRejudge', 'progress', 'compiling'], |
|
|
|
computed: { |
|
|
|
computed: { |
|
|
|
statusString() { |
|
|
|
statusString() { |
|
|
|
if (this.compiling) return 'Compiling'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const data = this.data; |
|
|
|
const data = this.data; |
|
|
|
|
|
|
|
|
|
|
|
if (data.result) { |
|
|
|
if (data.result) { |
|
|
|
return data.result.result; |
|
|
|
return data.result.result; |
|
|
|
} else if (data.running) { |
|
|
|
} else if (data.running) { |
|
|
|
|
|
|
|
if (this.compiling) return 'Compiling'; |
|
|
|
return 'Running'; |
|
|
|
return 'Running'; |
|
|
|
} else return 'Waiting'; |
|
|
|
} else return 'Waiting'; |
|
|
|
}, |
|
|
|
}, |
|
|
|