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

页面修改

parent c5325aab
<style> <style>
.examForm .q-table__bottom{ .examForm .q-table__bottom {
min-height: 10px; min-height: 10px;
} }
</style> </style>
<template> <template>
<div class="page-content examForm"> <div class="page-content examForm">
...@@ -49,6 +50,10 @@ ...@@ -49,6 +50,10 @@
</div> </div>
</template> </template>
<script> <script>
import {
submitExamApply,
deletePublishExam
} from "../../api/teacher/index";
export default { export default {
meta: { meta: {
title: "考试管理" title: "考试管理"
...@@ -59,7 +64,7 @@ ...@@ -59,7 +64,7 @@
default: null default: null
}, },
loading: { loading: {
type:Boolean, type: Boolean,
default: null default: null
} }
}, },
...@@ -124,12 +129,67 @@ ...@@ -124,12 +129,67 @@
}, },
} }
}, },
created() { 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');
}
})
}, },
mounted() { //修改考试相关
publishExam(item) {
this.OpenNewUrl("/exam/paperPublish", {
Id: item.Id,
});
},
//查看考生列表
seeExamineeList(item) {
this.OpenNewUrl("/exam/examineeManager", {
Id: item.Id,
});
}, },
methods: {
} }
} }
......
<style> <style>
</style> </style>
<!--试卷库管理--> <!--考试管理-->
<template> <template>
<div class="page-body"> <div class="page-body">
<div class="page-search row items-center"> <div class="page-search row items-center">
...@@ -14,27 +14,24 @@ ...@@ -14,27 +14,24 @@
<div class="page-option"></div> <div class="page-option"></div>
</div> </div>
<div class="page-content"> <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" <q-pagination class="full-width justify-end" v-model="msg.pageIndex" color="primary" :max="pageCount"
:input="true" @input="changePage" /> :input="true" @input="changePage" />
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import { import {
queryPublishExamPage, queryPublishExamPage,
submitExamApply,
deletePublishExam
} from "../../api/teacher/index"; } from "../../api/teacher/index";
//获取校区列表 import exampublishlist from "../../components/exam/exampublishlist"
import examForm from "../../components/exam/exam-form"
export default { export default {
components: { components: {
examForm exampublishlist
}, },
meta: { meta: {
title: "考管理", title: "考管理",
}, },
data() { data() {
return { return {
...@@ -48,9 +45,6 @@ ...@@ -48,9 +45,6 @@
pageCount: 0, pageCount: 0,
loading: false, loading: false,
dataList: [], dataList: [],
expandKeys: [],
isShowExamFolder: false, //是否显示新增文件夹
examObj: {}, //弹窗对象
}; };
}, },
created() {}, created() {},
...@@ -58,67 +52,6 @@ ...@@ -58,67 +52,6 @@
this.getList(); this.getList();
}, },
methods: { 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) { changePage(val) {
this.msg.pageIndex = val; this.msg.pageIndex = val;
...@@ -143,8 +76,8 @@ ...@@ -143,8 +76,8 @@
this.getList(); this.getList();
}, },
//关闭弹窗 //关闭弹窗
closeExamForm() { closeExamPublishForm() {
this.isShowExamFolder = false;
}, },
}, },
}; };
......
<style> <style>
</style> </style>
<!--试卷库管理--> <!--考试管理-->
<template> <template>
<div class="page-body"> <div class="page-body">
<div class="page-search row items-center"> <div class="page-search row items-center">
...@@ -14,7 +14,8 @@ ...@@ -14,7 +14,8 @@
<div class="page-option"></div> <div class="page-option"></div>
</div> </div>
<div class="page-content"> <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" <q-pagination class="full-width justify-end" v-model="msg.pageIndex" color="primary" :max="pageCount"
:input="true" @input="changePage" /> :input="true" @input="changePage" />
</div> </div>
...@@ -23,17 +24,14 @@ ...@@ -23,17 +24,14 @@
<script> <script>
import { import {
queryPublishExamPage, queryPublishExamPage,
submitExamApply,
deletePublishExam
} from "../../api/teacher/index"; } from "../../api/teacher/index";
//获取校区列表 import exampublishlist from "../../components/exam/exampublishlist"
import examForm from "../../components/exam/exam-form"
export default { export default {
components: { components: {
examForm exampublishlist
}, },
meta: { meta: {
title: "考管理", title: "考管理",
}, },
data() { data() {
return { return {
...@@ -47,9 +45,6 @@ ...@@ -47,9 +45,6 @@
pageCount: 0, pageCount: 0,
loading: false, loading: false,
dataList: [], dataList: [],
expandKeys: [],
isShowExamFolder: false, //是否显示新增文件夹
examObj: {}, //弹窗对象
}; };
}, },
created() {}, created() {},
...@@ -57,67 +52,6 @@ ...@@ -57,67 +52,6 @@
this.getList(); this.getList();
}, },
methods: { 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) { changePage(val) {
this.msg.pageIndex = val; this.msg.pageIndex = val;
...@@ -142,8 +76,8 @@ ...@@ -142,8 +76,8 @@
this.getList(); this.getList();
}, },
//关闭弹窗 //关闭弹窗
closeExamForm() { closeExamPublishForm() {
this.isShowExamFolder = false;
}, },
}, },
}; };
......
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