|
|
|
@ -149,7 +149,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<tz-footer />
|
|
|
|
|
<tz-dialog msg="确认后开始考试,答题时间为1个小时,是否现在开始答题?" :ok.sync="confirm" :visiable="dlgVisiable" />
|
|
|
|
|
<tz-dialog :msg="'确认后开始考试,答题时间为'+ limiteTime +'个小时,是否现在开始答题?'" :ok.sync="confirm" :visiable="dlgVisiable" />
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<script>
|
|
|
|
@ -162,6 +162,7 @@ import { getInfo } from '@/utils/auth'
|
|
|
|
|
export default {
|
|
|
|
|
data(){
|
|
|
|
|
return {
|
|
|
|
|
limiteTime: 1,
|
|
|
|
|
singleInfo: {
|
|
|
|
|
size: 0,
|
|
|
|
|
score: 0,
|
|
|
|
@ -417,6 +418,9 @@ export default {
|
|
|
|
|
if(this.$route.query){
|
|
|
|
|
this.compId = this.$route.query.id
|
|
|
|
|
this.stageId = this.$route.query.stageId
|
|
|
|
|
examApi.getTask({compId:this.compId,stageId: this.stageId}).then((res)=>{
|
|
|
|
|
this.limiteTime = res.data.examDuration
|
|
|
|
|
})
|
|
|
|
|
examApi.get({compId: this.compId}).then(res=>{
|
|
|
|
|
if(res.code == 200){
|
|
|
|
|
this.competition = res.data
|
|
|
|
|