|
@@ -26,13 +26,13 @@
|
|
|
{{ record.examName }}
|
|
{{ record.examName }}
|
|
|
</template>
|
|
</template>
|
|
|
<template v-if="column.key === 'examType'">
|
|
<template v-if="column.key === 'examType'">
|
|
|
- {{ examTypeName(record.examType)||'--' }}
|
|
|
|
|
|
|
+ {{ examTypeName(record.examType) || '--' }}
|
|
|
</template>
|
|
</template>
|
|
|
<template v-if="column.key === 'startTime'">
|
|
<template v-if="column.key === 'startTime'">
|
|
|
- {{ formatDateTime(record.startTime)||'--' }}
|
|
|
|
|
|
|
+ {{ formatDateTime(record.startTime) || '--' }}
|
|
|
</template>
|
|
</template>
|
|
|
<template v-if="column.key === 'endTime'">
|
|
<template v-if="column.key === 'endTime'">
|
|
|
- {{ formatDateTime(record.endTime)||'--' }}
|
|
|
|
|
|
|
+ {{ formatDateTime(record.endTime) || '--' }}
|
|
|
</template>
|
|
</template>
|
|
|
<template v-if="column.key === 'status'">
|
|
<template v-if="column.key === 'status'">
|
|
|
<a-tag :color="statusTagFormatter(record.status)" size="small">
|
|
<a-tag :color="statusTagFormatter(record.status)" size="small">
|
|
@@ -41,14 +41,14 @@
|
|
|
</template>
|
|
</template>
|
|
|
<template v-if="column.key === 'action'">
|
|
<template v-if="column.key === 'action'">
|
|
|
<router-link
|
|
<router-link
|
|
|
- v-if="record.status === 0"
|
|
|
|
|
|
|
+ v-if="record.status == 0"
|
|
|
:to="{ path: '/student/do', query: { id: record.paperId } }"
|
|
:to="{ path: '/student/do', query: { id: record.paperId } }"
|
|
|
target="_blank"
|
|
target="_blank"
|
|
|
>
|
|
>
|
|
|
<a-button type="link" size="small">填写{{ examName }}</a-button>
|
|
<a-button type="link" size="small">填写{{ examName }}</a-button>
|
|
|
</router-link>
|
|
</router-link>
|
|
|
<router-link
|
|
<router-link
|
|
|
- v-if="record.status === 2"
|
|
|
|
|
|
|
+ v-if="record.examType != 3 && record.status == 2"
|
|
|
:to="{ path: '/student/read', query: { id: record.answerId } }"
|
|
:to="{ path: '/student/read', query: { id: record.answerId } }"
|
|
|
target="_blank"
|
|
target="_blank"
|
|
|
>
|
|
>
|
|
@@ -64,12 +64,23 @@
|
|
|
{{ paperTypeEnum(record.paperType) }}
|
|
{{ paperTypeEnum(record.paperType) }}
|
|
|
</template>
|
|
</template>
|
|
|
<template v-if="column.key === 'subjectId'">
|
|
<template v-if="column.key === 'subjectId'">
|
|
|
- {{ subjectName(record.subjectId)|| '--' }}
|
|
|
|
|
|
|
+ {{ subjectName(record.subjectId) || '--' }}
|
|
|
</template>
|
|
</template>
|
|
|
<template v-if="column.key === 'action'">
|
|
<template v-if="column.key === 'action'">
|
|
|
- <router-link :to="{ path: '/student/do', query: { id: record.id } }" target="_blank">
|
|
|
|
|
|
|
+ <router-link
|
|
|
|
|
+ v-if="!record.status"
|
|
|
|
|
+ :to="{ path: '/student/do', query: { id: record.id } }"
|
|
|
|
|
+ target="_blank"
|
|
|
|
|
+ >
|
|
|
<a-button type="link" size="small">开始答题</a-button>
|
|
<a-button type="link" size="small">开始答题</a-button>
|
|
|
</router-link>
|
|
</router-link>
|
|
|
|
|
+ <router-link
|
|
|
|
|
+ v-if="record.status == 2"
|
|
|
|
|
+ :to="{ path: '/student/read', query: { id: record.answerId } }"
|
|
|
|
|
+ target="_blank"
|
|
|
|
|
+ >
|
|
|
|
|
+ <a-button type="link" size="small">查看结果</a-button>
|
|
|
|
|
+ </router-link>
|
|
|
</template>
|
|
</template>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|