Commit 6269570a authored by 黄奎's avatar 黄奎

页面修改

parent c5325aab
<style>
.examForm .q-table__bottom{
min-height: 10px;
}
.examForm .q-table__bottom {
min-height: 10px;
}
</style>
<template>
<div class="page-content examForm">
......@@ -49,6 +50,10 @@
</div>
</template>
<script>
import {
submitExamApply,
deletePublishExam
} from "../../api/teacher/index";
export default {
meta: {
title: "考试管理"
......@@ -59,7 +64,7 @@
default: null
},
loading: {
type:Boolean,
type: Boolean,
default: null
}
},
......@@ -124,12 +129,67 @@
},
}
},
created() {
},
mounted() {
},
created() {},
mounted() {},
methods: {
//删除考卷
deleteExamPublish(item) {
var delMsg = {
Id: item.Id
};
var tipMsg = "是否要删除【" + item.PaperName + "】试卷?删除后将无法恢复!";
this.$q.dialog({
title: '提示信息',
message: tipMsg,
cancel: true,
persistent: true,
ok: "确定",
cancel: "取消",
}).onOk(() => {
deletePublishExam(delMsg).then(res => {
if (res.Code == 1) {
this.$q.notify({
icon: 'iconfont icon-chenggong',
color: 'accent',
timeout: 2000,
message: '操作成功!',
position: 'top'
})
this.$emit('success');
}
});
})
},
//提交申请
submitExamAudit(item) {
var msg = {
Id: item.Id
};
submitExamApply(msg).then(res => {
if (res.Code == 1) {
this.$q.notify({
icon: 'iconfont icon-chenggong',
color: 'accent',
timeout: 2000,
message: '操作成功!',
position: 'top'
})
this.$emit('success');
}
})
},
//修改考试相关
publishExam(item) {
this.OpenNewUrl("/exam/paperPublish", {
Id: item.Id,
});
},
//查看考生列表
seeExamineeList(item) {
this.OpenNewUrl("/exam/examineeManager", {
Id: item.Id,
});
},
}
}
......
<style>
</style>
<!--试卷库管理-->
<!--考试管理-->
<template>
<div class="page-body">
<div class="page-search row items-center">
......@@ -14,27 +14,24 @@
<div class="page-option"></div>
</div>
<div class="page-content">
<examForm :dataList="dataList" :loading="loading"></examForm>
<exampublishlist :dataList="dataList" :loading="loading" @close="closeExamPublishForm" @success="refreshPage">
</exampublishlist>
<q-pagination class="full-width justify-end" v-model="msg.pageIndex" color="primary" :max="pageCount"
:input="true" @input="changePage" />
</div>
</div>
</template>
<script>
import {
queryPublishExamPage,
submitExamApply,
deletePublishExam
} from "../../api/teacher/index";
//获取校区列表
import examForm from "../../components/exam/exam-form"
import exampublishlist from "../../components/exam/exampublishlist"
export default {
components: {
examForm
exampublishlist
},
meta: {
title: "考管理",
title: "考管理",
},
data() {
return {
......@@ -48,9 +45,6 @@
pageCount: 0,
loading: false,
dataList: [],
expandKeys: [],
isShowExamFolder: false, //是否显示新增文件夹
examObj: {}, //弹窗对象
};
},
created() {},
......@@ -58,67 +52,6 @@
this.getList();
},
methods: {
//删除考卷
deleteExamPublish(item) {
var delMsg = {
Id: item.Id
};
var tipMsg = "是否要删除【" + item.PaperName + "】试卷?删除后将无法恢复!";
this.$q.dialog({
title: '提示信息',
message: tipMsg,
cancel: true,
persistent: true,
ok: "确定",
cancel: "取消",
}).onOk(() => {
deletePublishExam(delMsg).then(res => {
if (res.Code == 1) {
this.$q.notify({
icon: 'iconfont icon-chenggong',
color: 'accent',
timeout: 2000,
message: '操作成功!',
position: 'top'
})
this.refreshPage();
}
});
})
},
submitExamAudit(item) {
var msg = {
Id: item.Id
};
submitExamApply(msg).then(res => {
if (res.Code == 1) {
this.$q.notify({
icon: 'iconfont icon-chenggong',
color: 'accent',
timeout: 2000,
message: '操作成功!',
position: 'top'
})
this.refreshPage();
}
})
},
//修改考试相关
publishExam(item) {
this.OpenNewUrl("/exam/paperPublish", {
Id: item.Id,
});
},
//创建试卷
CreatePaper() {
this.OpenNewUrl("/exam/paperCreate", {});
},
//查看考生列表
seeExamineeList(item) {
this.OpenNewUrl("/exam/examineeManager", {
Id: item.Id,
});
},
//翻页
changePage(val) {
this.msg.pageIndex = val;
......@@ -143,8 +76,8 @@
this.getList();
},
//关闭弹窗
closeExamForm() {
this.isShowExamFolder = false;
closeExamPublishForm() {
},
},
};
......
<style>
</style>
<!--试卷库管理-->
<!--考试管理-->
<template>
<div class="page-body">
<div class="page-search row items-center">
......@@ -14,7 +14,8 @@
<div class="page-option"></div>
</div>
<div class="page-content">
<examForm :dataList="dataList" :loading="loading"></examForm>
<exampublishlist :dataList="dataList" :loading="loading" @close="closeExamPublishForm" @success="refreshPage">
</exampublishlist>
<q-pagination class="full-width justify-end" v-model="msg.pageIndex" color="primary" :max="pageCount"
:input="true" @input="changePage" />
</div>
......@@ -23,17 +24,14 @@
<script>
import {
queryPublishExamPage,
submitExamApply,
deletePublishExam
} from "../../api/teacher/index";
//获取校区列表
import examForm from "../../components/exam/exam-form"
import exampublishlist from "../../components/exam/exampublishlist"
export default {
components: {
examForm
exampublishlist
},
meta: {
title: "考管理",
title: "考管理",
},
data() {
return {
......@@ -47,9 +45,6 @@
pageCount: 0,
loading: false,
dataList: [],
expandKeys: [],
isShowExamFolder: false, //是否显示新增文件夹
examObj: {}, //弹窗对象
};
},
created() {},
......@@ -57,67 +52,6 @@
this.getList();
},
methods: {
//删除考卷
deleteExamPublish(item) {
var delMsg = {
Id: item.Id
};
var tipMsg = "是否要删除【" + item.PaperName + "】试卷?删除后将无法恢复!";
this.$q.dialog({
title: '提示信息',
message: tipMsg,
cancel: true,
persistent: true,
ok: "确定",
cancel: "取消",
}).onOk(() => {
deletePublishExam(delMsg).then(res => {
if (res.Code == 1) {
this.$q.notify({
icon: 'iconfont icon-chenggong',
color: 'accent',
timeout: 2000,
message: '操作成功!',
position: 'top'
})
this.refreshPage();
}
});
})
},
submitExamAudit(item) {
var msg = {
Id: item.Id
};
submitExamApply(msg).then(res => {
if (res.Code == 1) {
this.$q.notify({
icon: 'iconfont icon-chenggong',
color: 'accent',
timeout: 2000,
message: '操作成功!',
position: 'top'
})
this.refreshPage();
}
})
},
//修改考试相关
publishExam(item) {
this.OpenNewUrl("/exam/paperPublish", {
Id: item.Id,
});
},
//创建试卷
CreatePaper() {
this.OpenNewUrl("/exam/paperCreate", {});
},
//查看考生列表
seeExamineeList(item) {
this.OpenNewUrl("/exam/examineeManager", {
Id: item.Id,
});
},
//翻页
changePage(val) {
this.msg.pageIndex = val;
......@@ -142,8 +76,8 @@
this.getList();
},
//关闭弹窗
closeExamForm() {
this.isShowExamFolder = false;
closeExamPublishForm() {
},
},
};
......
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