问卷星:试卷页面调整、学生答卷结果查询

This commit is contained in:
曹磊 2024-05-10 21:22:52 +08:00
parent f42ec6eeca
commit aa2e2bcfcc
3 changed files with 27 additions and 18 deletions

View File

@ -7,62 +7,74 @@ export const columns: BasicColumn[] = [
{
title: '问卷名称',
align: "center",
dataIndex: 'title'
dataIndex: 'title',
width: 200
},
{
title: '学生',
align: "center",
dataIndex: 'userName'
dataIndex: 'userName',
width: 100
},
{
title: '得分',
align: "center",
dataIndex: 'score'
dataIndex: 'score',
width: 80
},
{
title: '总分数',
align: "center",
dataIndex: 'totalScore'
dataIndex: 'totalScore',
width: 80
},
{
title: '答卷时间',
align: "center",
dataIndex: 'openTime'
dataIndex: 'openTime',
width: 150
},
{
title: '交卷时间',
align: "center",
dataIndex: 'commitTime'
dataIndex: 'commitTime',
width: 150
},
{
title: '答卷用时',
align: "center",
dataIndex: 'answerSfm'
dataIndex: 'answerSfm',
width: 80
},
{
title: '学期学年',
align: "center",
dataIndex: 'xqxn'
dataIndex: 'xqxn',
width: 80
},
{
title: '课程名称',
align: "center",
dataIndex: 'kcmc'
dataIndex: 'kcmc',
width: 200
},
{
title: '开始时间',
align: "center",
dataIndex: 'startTime'
dataIndex: 'startTime',
width: 150
},
{
title: '结束时间',
align: "center",
dataIndex: 'endTime'
dataIndex: 'endTime',
width: 150
},
{
title: '问卷描述',
align: "center",
dataIndex: 'content'
dataIndex: 'content',
width: 200
},
];

View File

@ -2,9 +2,6 @@
<div>
<!--引用表格-->
<BasicTable @register="registerTable" >
<!--插槽:table标题-->
<template #tableTitle>
</template>
<!--操作栏-->
<template #action="{ record }">
<TableAction :actions="getTableAction(record)"/>
@ -30,7 +27,7 @@ import {ref, reactive, defineExpose, unref} from 'vue';
//table
const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({
tableProps: {
title: '学生问卷信息',
title: '',
api: list,
columns,
canResize:false,

View File

@ -9,7 +9,7 @@
import WjxWjxxTmlbDjjgsList from './WjxWjxxTmlbDjjgsList.vue'
const title = ref<string>('');
const width = ref<string>('80%');
const width = ref<string>('90%');
const visible = ref<boolean>(false);
const disableSubmit = ref<boolean>(false);
const registerForm = ref();
@ -20,7 +20,7 @@
* @param record
*/
function edit(record) {
title.value = disableSubmit.value ? '答卷结果' : '编辑';
title.value = disableSubmit.value ? '学生答卷结果列表' : '编辑';
visible.value = true;
nextTick(() => {
registerForm.value.init(record);