canghailong 6 месяцев назад
Родитель
Сommit
49c1b0cc0b
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      src/views/student/paper/index.vue

+ 4 - 4
src/views/student/paper/index.vue

@@ -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">
@@ -64,7 +64,7 @@
 									{{ 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 :to="{ path: '/student/do', query: { id: record.id } }" target="_blank">