|
|
@@ -24,35 +24,35 @@
|
|
|
bordered
|
|
|
style="margin-top: 16px"
|
|
|
>
|
|
|
- <a-table-column title="Id" dataIndex="id" key="id" width="100" />
|
|
|
+ <!-- <a-table-column title="Id" dataIndex="id" key="id" width="100" /> -->
|
|
|
<a-table-column title="问卷名称" dataIndex="examName" key="examName" />
|
|
|
- <a-table-column title="问卷状态" dataIndex="examStatus" key="examStatus" width="120">
|
|
|
+ <a-table-column title="问卷状态" dataIndex="examStatus" key="examStatus">
|
|
|
<template #default="{ record }">
|
|
|
<a-tag :color="record.examStatus === 0 ? 'default' : record.examStatus === 1 ? 'processing' : 'success'">
|
|
|
{{ record.examStatus === 0 ? '未开始' : record.examStatus === 1 ? '已开始' : '已结束' }}
|
|
|
</a-tag>
|
|
|
</template>
|
|
|
</a-table-column>
|
|
|
- <a-table-column title="开始时间" dataIndex="startTime" key="startTime" width="160">
|
|
|
+ <a-table-column title="开始时间" dataIndex="startTime" key="startTime">
|
|
|
<template #default="{ record }">
|
|
|
{{ formatDateTime(record.startTime) }}
|
|
|
</template>
|
|
|
</a-table-column>
|
|
|
- <a-table-column title="结束时间" dataIndex="endTime" key="endTime" width="160">
|
|
|
+ <a-table-column title="结束时间" dataIndex="endTime" key="endTime">
|
|
|
<template #default="{ record }">
|
|
|
{{ formatDateTime(record.endTime) }}
|
|
|
</template>
|
|
|
</a-table-column>
|
|
|
- <a-table-column title="创建时间" dataIndex="createTime" key="createTime" width="160">
|
|
|
+ <a-table-column title="创建时间" dataIndex="createTime" key="createTime">
|
|
|
<template #default="{ record }">
|
|
|
{{ formatDateTime(record.createTime) }}
|
|
|
</template>
|
|
|
</a-table-column>
|
|
|
- <a-table-column title="操作" key="action" align="center" width="160">
|
|
|
+ <a-table-column title="操作" key="action" align="center" :width="220">
|
|
|
<template #default="{ record }">
|
|
|
<a-button size="small" @click="editTask(record)">编辑</a-button>
|
|
|
<a-button size="small" danger style="margin-left: 8px" @click="deleteTask(record)">删除</a-button>
|
|
|
- <a-button size="small" type="primary" style="margin-left: 8px" @click="statistic(record)">统计分析</a-button>
|
|
|
+ <a-button size="small" style="margin-left: 8px" @click="statistic(record)">答案统计</a-button>
|
|
|
</template>
|
|
|
</a-table-column>
|
|
|
</a-table>
|
|
|
@@ -160,7 +160,7 @@
|
|
|
|
|
|
const editTask = (record) => {
|
|
|
drawerVisible.value = true
|
|
|
- drawerTitle.value = '编辑考试'
|
|
|
+ drawerTitle.value = '编辑问卷'
|
|
|
editId.value = record.id
|
|
|
}
|
|
|
|
|
|
@@ -183,7 +183,7 @@
|
|
|
}
|
|
|
const createTask = () => {
|
|
|
drawerVisible.value = true
|
|
|
- drawerTitle.value = '创建考试'
|
|
|
+ drawerTitle.value = '创建问卷'
|
|
|
editId.value = null
|
|
|
}
|
|
|
const onEditSuccess = () => {
|
|
|
@@ -200,7 +200,7 @@
|
|
|
}
|
|
|
const statistic = async (record) => {
|
|
|
statisticVisible.value = true
|
|
|
- statisticTitle.value = '统计分析'
|
|
|
+ statisticTitle.value = '答案统计'
|
|
|
console.log('paperName=', record)
|
|
|
statisticExamName.value = record.examName
|
|
|
statisticPaperId.value = record.paperId
|