Commit b42d6a4e authored by 黄奎's avatar 黄奎

页面修改

parent 0dd8bd46
...@@ -229,6 +229,31 @@ export function queryPublishExamPage(data) { ...@@ -229,6 +229,31 @@ export function queryPublishExamPage(data) {
}) })
} }
/**
* 提交考试审核
* @param {JSON参数} data
*/
export function submitExamApply(data) {
return request({
url: '/Exam/SubmitExamApply',
method: 'post',
data
})
}
/**
* 删除考卷
* @param {JSON参数} data
*/
export function deletePublishExam(data) {
return request({
url: '/Exam/RemovePublishExam',
method: 'post',
data
})
}
/** /**
* 根据编号获取考卷发布信息 * 根据编号获取考卷发布信息
* @param {JSON参数} data * @param {JSON参数} data
......
...@@ -70,8 +70,26 @@ ...@@ -70,8 +70,26 @@
<template v-slot:body-cell-optioned="props"> <template v-slot:body-cell-optioned="props">
<q-td :props="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="publishExam(props.row)" />
<q-btn flat size="xs" color="accent" style="font-weight: 400" label="考生管理" <q-btn-dropdown flat size="xs" color="dark" label="更多" style="margin-left: 10px">
@click="seeExamineeList(props.row)" /> <q-list>
<q-item clickable v-close-popup @click="submitExamAudit(props.row)"
v-if="props.row.ExamineStatus==0||props.row.ExamineStatus==3||props.row.ExamineStatus==4">
<q-item-section>
<q-item-label>{{props.row.ExamineStatus==0?'提交审核':"重新提交审核"}}</q-item-label>
</q-item-section>
</q-item>
<q-item clickable v-close-popup @click="seeExamineeList(props.row)">
<q-item-section>
<q-item-label>考生管理</q-item-label>
</q-item-section>
</q-item>
<q-item clickable v-close-popup @click="deleteExamPublish(props.row)" v-if="props.row.ExamineStatus!=2">
<q-item-section>
<q-item-label>删除</q-item-label>
</q-item-section>
</q-item>
</q-list>
</q-btn-dropdown>
</q-td> </q-td>
</template> </template>
</q-table> </q-table>
...@@ -80,7 +98,9 @@ ...@@ -80,7 +98,9 @@
</template> </template>
<script> <script>
import { import {
queryPublishExamPage queryPublishExamPage,
submitExamApply,
deletePublishExam
} from "../../api/teacher/index"; } from "../../api/teacher/index";
//获取校区列表 //获取校区列表
export default { export default {
...@@ -164,6 +184,51 @@ ...@@ -164,6 +184,51 @@
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) { publishExam(item) {
this.OpenNewUrl("/exam/paperPublish", { this.OpenNewUrl("/exam/paperPublish", {
...@@ -203,7 +268,6 @@ ...@@ -203,7 +268,6 @@
refreshPage() { refreshPage() {
this.getList(); this.getList();
}, },
//关闭弹窗 //关闭弹窗
closeExamForm() { closeExamForm() {
this.isShowExamFolder = false; 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