Commit 7d4c051a authored by 黄奎's avatar 黄奎

新增页面

parent f11d82b7
......@@ -5,11 +5,11 @@ import request from '../../utils/request'
* @param {JSON参数} data
*/
export function GetStuPageList(data) {
return request({
url: '/TeacherClass/GetClassStudent',
method: 'post',
data
})
return request({
url: '/TeacherClass/GetClassStudent',
method: 'post',
data
})
}
/**
......@@ -17,11 +17,11 @@ export function GetStuPageList(data) {
* @param {JSON参数} data
*/
export function setStopClassApply(data) {
return request({
url: '/StopStudentClass/SetStudentStopClass',
method: 'post',
data
})
return request({
url: '/StopStudentClass/SetStudentStopClass',
method: 'post',
data
})
}
/**
......@@ -29,11 +29,11 @@ export function setStopClassApply(data) {
* @param {JSON参数} data
*/
export function getNotClassStudentList(data) {
return request({
url: '/TeacherClass/GetNotClassStudentList',
method: 'post',
data
})
return request({
url: '/TeacherClass/GetNotClassStudentList',
method: 'post',
data
})
}
......@@ -42,9 +42,22 @@ export function getNotClassStudentList(data) {
* @param {JSON参数} data
*/
export function setStuInviteApply(data) {
return request({
url: 'TempInvitationClass/SetStudentTempInvitation',
method: 'post',
data
})
}
\ No newline at end of file
return request({
url: 'TempInvitationClass/SetStudentTempInvitation',
method: 'post',
data
})
}
/**
* 获取学员考试列表
* @param {JSON参数} data
*/
export function queryGuestExaminationPublishPage(data) {
return request({
url: 'AppletIndex/GetGuestExaminationPublishPage',
method: 'post',
data
})
}
<style>
.OtherCourseNum {
display: inline-block;
width: 25px;
height: 25px;
text-align: center;
line-height: 25px;
border: 1px solid #2961fe;
border-radius: 50%;
cursor: pointer;
color: #2961fe;
}
.OtherCourseNum {
display: inline-block;
width: 25px;
height: 25px;
text-align: center;
line-height: 25px;
border: 1px solid #2961fe;
border-radius: 50%;
cursor: pointer;
color: #2961fe;
}
.OCourseTable {
width: 400px;
text-align: center;
}
.OCourseTable {
width: 400px;
text-align: center;
}
.OCourseTable tr td {
height: 40px;
}
.OCourseTable tr td {
height: 40px;
}
.OCourseTable tr th {
height: 40px;
background-color: rgb(238, 238, 239);
}
.OCourseTable tr th {
height: 40px;
background-color: rgb(238, 238, 239);
}
.Exam_PaperName {
width: 300px;
display: inline;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.Exam_PaperName {
width: 300px;
display: inline;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.Exam_PaperName i {
font-size: 18px;
}
.Exam_PaperName i {
font-size: 18px;
}
</style>
<!--试卷库管理-->
<template>
......@@ -43,31 +44,16 @@
<div class="page-search row items-center">
<div class="col row wrap q-mr-lg q-col-gutter-md">
<div class="col-3">
<q-input
@change="getList"
clearable
filled
v-model="msg.PaperName"
@clear="getList"
maxlength="20"
label="输入试卷名称"
/>
<q-input @change="getList" clearable filled v-model="msg.PaperName" @clear="getList" maxlength="20"
label="输入试卷名称" />
</div>
</div>
<div class="page-option"></div>
</div>
<div class="page-content">
<q-table
:pagination="msg"
:loading="loading"
no-data-label="暂无相关数据"
flat
class="sticky-column-table sticky-right-column-table"
separator="none"
:data="dataList"
:columns="columns"
row-key="name"
>
<q-table :pagination="msg" :loading="loading" no-data-label="暂无相关数据" flat
class="sticky-column-table sticky-right-column-table" separator="none" :data="dataList" :columns="columns"
row-key="name">
<template v-slot:top="props">
<div class="col-2 q-table__title">考试管理</div>
<q-space />
......@@ -78,33 +64,14 @@
</q-td>
</template>
<template v-slot:bottom>
<q-pagination
class="full-width justify-end"
v-model="msg.pageIndex"
color="primary"
:max="pageCount"
:input="true"
@input="changePage"
/>
<q-pagination class="full-width justify-end" v-model="msg.pageIndex" color="primary" :max="pageCount"
:input="true" @input="changePage" />
</template>
<template v-slot:body-cell-optioned="props">
<q-td :props="props">
<q-btn
flat
size="xs"
color="accent"
style="font-weight: 400"
label="修改"
@click="publishExam(props.row)"
/>
<q-btn
flat
size="xs"
color="accent"
style="font-weight: 400"
label="考生管理"
@click="seeExamineeList(props.row)"
/>
<q-btn flat size="xs" color="accent" style="font-weight: 400" label="修改" @click="publishExam(props.row)" />
<q-btn flat size="xs" color="accent" style="font-weight: 400" label="考生管理"
@click="seeExamineeList(props.row)" />
</q-td>
</template>
</q-table>
......@@ -112,125 +79,140 @@
</div>
</template>
<script>
import { queryPublishExamPage } from "../../api/teacher/index";
//获取校区列表
export default {
components: {},
meta: {
title: "考卷管理",
},
data() {
return {
data: [],
msg: {
pageIndex: 1,
pageSize: 10,
rowsPerPage: 10,
PaperName: "", //试卷名称
},
columns: [
{
name: "Id",
label: "编号",
field: "Id",
align: "left",
},
{
name: "PaperName",
label: "试卷名称",
field: "PaperName",
align: "left",
},
{
name: "CreateByName",
label: "创建人",
field: "CreateByName",
align: "left",
},
{
name: "StudentCount",
label: "考生人数",
field: "StudentCount",
align: "left",
},
{
name: "StartTime",
label: "考试时间",
field: "StartTime",
align: "left",
},
{
name: "ExamTimes",
label: "考试时长",
field: "ExamTimes",
align: "left",
},
{
name: "optioned",
label: "操作",
field: "Id",
},
],
pageCount: 0,
loading: false,
dataList: [],
expandKeys: [],
isShowExamFolder: false, //是否显示新增文件夹
examObj: {}, //弹窗对象
};
},
created() {},
mounted() {
this.getList();
},
methods: {
//修改考试相关
publishExam(item) {
this.OpenNewUrl("/exam/paperPublish", {
Id: item.Id,
});
import {
queryPublishExamPage
} from "../../api/teacher/index";
//获取校区列表
export default {
components: {},
meta: {
title: "考卷管理",
},
//创建试卷
CreatePaper() {
this.OpenNewUrl("/exam/paperCreate", {});
},
//查看考生列表
seeExamineeList(item) {
this.OpenNewUrl("/exam/examineeManager", {
Id: item.Id,
});
data() {
return {
data: [],
msg: {
pageIndex: 1,
pageSize: 10,
rowsPerPage: 10,
PaperName: "", //试卷名称
},
columns: [{
name: "Id",
label: "编号",
field: "Id",
align: "left",
},
{
name: "PaperName",
label: "试卷名称",
field: "PaperName",
align: "left",
},
{
name: "CreateByName",
label: "创建人",
field: "CreateByName",
align: "left",
},
{
name: "StudentCount",
label: "考生人数",
field: "StudentCount",
align: "left",
},
{
name: "StartTime",
label: "考试时间",
field: "StartTime",
align: "left",
},
{
name: "ExamTimes",
label: "考试时长",
field: "ExamTimes",
align: "left",
},
{
name: "ReviewerName",
label: "审核人",
field: "ReviewerName",
align: "left",
},
{
name: "ExamineStatusStr",
label: "审核状态",
field: "ExamineStatusStr",
align: "left",
},
{
name: "optioned",
label: "操作",
field: "Id",
},
],
pageCount: 0,
loading: false,
dataList: [],
expandKeys: [],
isShowExamFolder: false, //是否显示新增文件夹
examObj: {}, //弹窗对象
};
},
//翻页
changePage(val) {
this.msg.pageIndex = val;
created() {},
mounted() {
this.getList();
},
//获取菜单分页列表
getList() {
this.loading = true;
this.dataList = [];
queryPublishExamPage(this.msg)
.then((res) => {
this.loading = false;
this.dataList = res.Data.PageData;
this.pageCount = res.Data.PageCount;
})
.catch(() => {
this.loading = false;
methods: {
//修改考试相关
publishExam(item) {
this.OpenNewUrl("/exam/paperPublish", {
Id: item.Id,
});
},
//刷新页面
refreshPage() {
this.getList();
},
},
//创建试卷
CreatePaper() {
this.OpenNewUrl("/exam/paperCreate", {});
},
//查看考生列表
seeExamineeList(item) {
this.OpenNewUrl("/exam/examineeManager", {
Id: item.Id,
});
},
//翻页
changePage(val) {
this.msg.pageIndex = val;
this.getList();
},
//获取菜单分页列表
getList() {
this.loading = true;
this.dataList = [];
queryPublishExamPage(this.msg)
.then((res) => {
this.loading = false;
this.dataList = res.Data.PageData;
this.pageCount = res.Data.PageCount;
})
.catch(() => {
this.loading = false;
});
},
//刷新页面
refreshPage() {
this.getList();
},
//关闭弹窗
closeExamForm() {
this.isShowExamFolder = false;
//关闭弹窗
closeExamForm() {
this.isShowExamFolder = false;
},
},
},
};
};
</script>
<style lang="sass">
@import url('~assets/css/table.sass')
@import url('~assets/css/table.sass')
</style>
<style>
.OtherCourseNum {
display: inline-block;
width: 25px;
height: 25px;
text-align: center;
line-height: 25px;
border: 1px solid #2961fe;
border-radius: 50%;
cursor: pointer;
color: #2961fe;
}
.OCourseTable {
width: 400px;
text-align: center;
}
.OCourseTable tr td {
height: 40px;
}
.OCourseTable tr th {
height: 40px;
background-color: rgb(238, 238, 239);
}
.Exam_PaperName {
width: 300px;
display: inline;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.Exam_PaperName i {
font-size: 18px;
}
</style>
<!--试卷库管理-->
<template>
<div class="page-body">
<div class="page-search row items-center">
<div class="col row wrap q-mr-lg q-col-gutter-md">
<div class="col-3">
<q-input @change="getList" clearable filled v-model="msg.PaperName" @clear="getList" maxlength="20"
label="输入试卷名称" />
</div>
</div>
<div class="page-option"></div>
</div>
<div class="page-content">
<q-table :pagination="msg" :loading="loading" no-data-label="暂无相关数据" flat
class="sticky-column-table sticky-right-column-table" separator="none" :data="dataList" :columns="columns"
row-key="name">
<template v-slot:top="props">
<div class="col-2 q-table__title">考试管理</div>
<q-space />
</template>
<template v-slot:body-cell-StartTime="props">
<q-td :props="props">
{{ props.row.StartTime }} -- {{ props.row.EndTime }}
</q-td>
</template>
<template v-slot:bottom>
<q-pagination class="full-width justify-end" v-model="msg.pageIndex" color="primary" :max="pageCount"
:input="true" @input="changePage" />
</template>
<template v-slot:body-cell-optioned="props">
<q-td :props="props">
</q-td>
</template>
</q-table>
</div>
</div>
</template>
<script>
import {
queryGuestExaminationPublishPage
} from "../../api/teacher/student";
//获取校区列表
export default {
components: {},
meta: {
title: "我的考试",
},
data() {
return {
data: [],
msg: {
pageIndex: 1,
pageSize: 10,
rowsPerPage: 10,
ExamStatus: 2, //
GuestId: 60,
},
columns: [{
name: "Id",
label: "编号",
field: "Id",
align: "left",
},
{
name: "PaperName",
label: "试卷名称",
field: "PaperName",
align: "left",
},
{
name: "ExamStartTime",
label: "考试时间",
field: "ExamStartTime",
align: "left",
},
{
name: "ExamTimes",
label: "考试时长",
field: "ExamTimes",
align: "left",
},
{
name: "optioned",
label: "操作",
field: "Id",
},
],
pageCount: 0,
loading: false,
dataList: [],
examObj: {}, //弹窗对象
};
},
created() {},
mounted() {
this.getList();
},
methods: {
//翻页
changePage(val) {
this.msg.pageIndex = val;
this.getList();
},
//获取菜单分页列表
getList() {
this.loading = true;
this.dataList = [];
queryGuestExaminationPublishPage(this.msg)
.then((res) => {
this.loading = false;
this.dataList = res.Data.PageData;
this.pageCount = res.Data.PageCount;
})
.catch(() => {
this.loading = false;
});
},
//刷新页面
refreshPage() {
this.getList();
},
},
};
</script>
<style lang="sass">
@import url('~assets/css/table.sass')
</style>
......@@ -1082,6 +1082,11 @@ const routes = [{
component: () =>
import("pages/exam/examineeManager")
},
{
path: "/student/myexam", //考生-试卷列表
component: () =>
import("pages/student/myexam")
},
{
path: "/teacher/testdatabase", //题库查询
component: () =>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment