考试列表改为试卷列表,课程分类搜索

This commit is contained in:
zhangyc
2022-12-13 14:14:19 +08:00
parent 405b1b1c02
commit 171ad0af18
8 changed files with 77 additions and 36 deletions

View File

@@ -162,43 +162,47 @@ export default {
const tableDataFunc = () => {
{
const columns = [
{
title: "序号",
dataIndex: "paperId",
key: "paperId",
width: 90,
align: "center",
className: "h head",
},
// {
// title: "序号",
// dataIndex: "paperId",
// key: "paperId",
// width: 90,
// align: "center",
// className: "h head",
// },
{
title: "试卷名称",
dataIndex: "testName",
key: "testName",
width: 110,
width: "40%",
align: "center",
className: "h head",
ellipsis: true,
},
{
title: "随机模式",
dataIndex: "paperMode",
key: "paperMode",
width: 110,
width: "20%",
align: "center",
className: "h",
ellipsis: true,
},
{
title: "创建人",
dataIndex: "sysCreateBy",
key: "sysCreateBy",
width: 90,
width: "20%",
align: "center",
className: "h",
ellipsis: true,
},
{
title: "最近更新时间",
dataIndex: "sysUpdateTime",
key: "sysUpdateTime",
width: 150,
ellipsis: true,
width: "20%",
align: "center",
className: "h",
},
@@ -248,7 +252,7 @@ export default {
published: true,
};
api
.queryExaminationList(obj)
.queryExaminationPaperList(obj)
.then((data) => {
// getTableDate(res.data.data);
//** 表格repaint */
@@ -257,10 +261,10 @@ export default {
let obj = {
key: index + 1,
sysCreateBy: value.sysCreateBy,
paperId: index + 1,
paperId:value.id,
testName: value.testName,
paperMode: value.randomMode ? "" : "",
sysUpdateTime: value.sysUpdateTime,
paperMode: value.paperMode==1?"固定试卷":"随机",
sysUpdateTime:value.sysUpdateTime,
id:value.id,
};
array.push(obj);

View File

@@ -73,7 +73,7 @@ function validateProName() {
display: inline-block;
width: 99%;
min-width: 0;
padding: 0px 17px;
padding: 0px 8px;
color: rgba(0, 0, 0, 0.85);
font-size: 14px;
line-height: 1.5715;