|
|
@@ -14,6 +14,14 @@
|
|
|
:expand-row-by-click="true"
|
|
|
:pagination="pagination"
|
|
|
>
|
|
|
+ <template #headerCell="{ column}">
|
|
|
+ <template v-if="column.dataIndex === 'examName'">
|
|
|
+ {{ examName + column.title}}
|
|
|
+ </template>
|
|
|
+ <template v-if="column.dataIndex === 'examType'">
|
|
|
+ {{ examName + column.title}}
|
|
|
+ </template>
|
|
|
+ </template>
|
|
|
<template #bodyCell="{ column, record }">
|
|
|
<template v-if="record.examType && column.key === 'examType'">
|
|
|
{{ examTypeName(record.examType) || '--' }}
|
|
|
@@ -96,7 +104,7 @@
|
|
|
return '调查问卷'
|
|
|
break
|
|
|
case '4':
|
|
|
- return '我的作业'
|
|
|
+ return '作业'
|
|
|
break
|
|
|
}
|
|
|
})
|
|
|
@@ -118,13 +126,13 @@
|
|
|
}
|
|
|
]
|
|
|
const taskColumns = ref([
|
|
|
- { title: '问卷名称', dataIndex: 'examName', key: 'examName' },
|
|
|
- { title: '问卷类型', dataIndex: 'examType', key: 'examType', width: 120 },
|
|
|
+ { title: '名称', dataIndex: 'examName', key: 'examName' },
|
|
|
+ { title: '类型', dataIndex: 'examType', key: 'examType', width: 120 },
|
|
|
{ title: '开始时间', dataIndex: 'startTime', key: 'startTime', width: 180 },
|
|
|
{ title: '结束时间', dataIndex: 'endTime', key: 'endTime', width: 180 },
|
|
|
|
|
|
- { title: '状态', dataIndex: 'status', key: 'status', width: 90},
|
|
|
- { title: '操作', key: 'action', align: 'right', width: 120}
|
|
|
+ { title: '状态', dataIndex: 'status', key: 'status', width: 90 },
|
|
|
+ { title: '操作', key: 'action', align: 'right', width: 120 }
|
|
|
])
|
|
|
const statusTextFormatter = (status) => {
|
|
|
if (status === 0) return '未答题'
|