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

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: '问卷名称', title: '问卷名称',
align: "center", align: "center",
dataIndex: 'title' dataIndex: 'title',
width: 200
}, },
{ {
title: '学生', title: '学生',
align: "center", align: "center",
dataIndex: 'userName' dataIndex: 'userName',
width: 100
}, },
{ {
title: '得分', title: '得分',
align: "center", align: "center",
dataIndex: 'score' dataIndex: 'score',
width: 80
}, },
{ {
title: '总分数', title: '总分数',
align: "center", align: "center",
dataIndex: 'totalScore' dataIndex: 'totalScore',
width: 80
}, },
{ {
title: '答卷时间', title: '答卷时间',
align: "center", align: "center",
dataIndex: 'openTime' dataIndex: 'openTime',
width: 150
}, },
{ {
title: '交卷时间', title: '交卷时间',
align: "center", align: "center",
dataIndex: 'commitTime' dataIndex: 'commitTime',
width: 150
}, },
{ {
title: '答卷用时', title: '答卷用时',
align: "center", align: "center",
dataIndex: 'answerSfm' dataIndex: 'answerSfm',
width: 80
}, },
{ {
title: '学期学年', title: '学期学年',
align: "center", align: "center",
dataIndex: 'xqxn' dataIndex: 'xqxn',
width: 80
}, },
{ {
title: '课程名称', title: '课程名称',
align: "center", align: "center",
dataIndex: 'kcmc' dataIndex: 'kcmc',
width: 200
}, },
{ {
title: '开始时间', title: '开始时间',
align: "center", align: "center",
dataIndex: 'startTime' dataIndex: 'startTime',
width: 150
}, },
{ {
title: '结束时间', title: '结束时间',
align: "center", align: "center",
dataIndex: 'endTime' dataIndex: 'endTime',
width: 150
}, },
{ {
title: '问卷描述', title: '问卷描述',
align: "center", align: "center",
dataIndex: 'content' dataIndex: 'content',
width: 200
}, },
]; ];

View File

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

View File

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