Commit 24347693 authored by 黄奎's avatar 黄奎

页面修改

parent 529d229b
......@@ -314,8 +314,7 @@
methods: {
//是否可修改
isEdit(item) {
if(this.currentUserInfo.Id==1)
{
if (this.currentUserInfo.Id == 1) {
return true;
}
return this.currentUserInfo.Id == item.CreateBy &&
......
......@@ -304,12 +304,13 @@
<!--完型填空-->
<v-cloze v-if="dItem.QuestionTypeKey=='cloze'" :questionObj="dItem" :isShowAnswer="isShowAnswer"
:isOperate="isOperate">></v-cloze>
:isOperate="isOperate" :isShowScore="isShowScore"></v-cloze>
<!--阅读理解、听力题-->
<v-readingcomprehensio
v-if="dItem.QuestionTypeKey=='reading-comprehensio'||dItem.QuestionTypeKey=='listening'"
:questionObj="dItem" :isShowAnswer="isShowAnswer" :isOperate="isOperate"></v-readingcomprehensio>
:questionObj="dItem" :isShowAnswer="isShowAnswer" :isOperate="isOperate" :isShowScore="isShowScore">
</v-readingcomprehensio>
<!--共用选择题-->
<v-sharingchoose v-if="dItem.QuestionTypeKey=='sharing-choose'" :questionObj="dItem"
......@@ -375,6 +376,7 @@
PaperConfig: {}, //试卷配置
isShowAnswer: false, //是否显示答案
isOperate: true, //是否可操作
isShowScore: true, //是否显示完型填空、阅读理解、听力,小题分数
examScore: 0, //总分,
examNum: 0, //总题量
}
......@@ -461,23 +463,44 @@
},
//返回
goBack() {
var qMsg = {
Id: this.msg.PublishId
};
this.$router.push({
path: '/exam/examlist'
})
path: '/exam/examineeManager',
query: qMsg
});
},
//学生提交考试
submitExamPaper() {
stuSubmitExamPaper(this.DataObj).then(res => {
if (res.Code == 1) {
this.$q.notify({
icon: 'iconfont icon-chenggong',
color: 'accent',
timeout: 2000,
message: '操作成功!',
position: 'top'
})
this.GetPaperInfo();
}
var that = this;
var message = "是否要提交考试?提交后将不能修改!";
this.$q.dialog({
title: '提示信息',
message: message,
cancel: true,
persistent: true,
ok: "确定",
cancel: "取消",
}).onOk(() => {
stuSubmitExamPaper(that.DataObj).then(res => {
if (res.Code == 1) {
that.$q.notify({
icon: 'iconfont icon-chenggong',
color: 'accent',
timeout: 2000,
message: '提交考试成功!请等候老师阅卷...',
position: 'top'
});
var qMsg = {
Id: that.msg.PublishId
};
that.$router.push({
path: '/exam/examineeManager',
query: qMsg
});
}
})
})
}
}
......
......@@ -316,13 +316,13 @@
<!--完型填空-->
<v-cloze v-if="dItem.QuestionTypeKey=='cloze'" :questionObj="dItem" :isShowAnswer="isShowAnswer"
:isShowStudentAnswer="isShowStudentAnswer" @getScore="calcPaper"></v-cloze>
:isShowStudentAnswer="isShowStudentAnswer" @getScore="calcPaper" :isShowScore="isShowScore"></v-cloze>
<!--阅读理解、听力题-->
<v-readingcomprehensio
v-if="dItem.QuestionTypeKey=='reading-comprehensio'||dItem.QuestionTypeKey=='listening'"
:questionObj="dItem" :isShowAnswer="isShowAnswer" :isShowStudentAnswer="isShowStudentAnswer"
@getScore="calcPaper">
@getScore="calcPaper" :isShowScore="isShowScore">
</v-readingcomprehensio>
<!--共用选择题-->
......@@ -390,7 +390,8 @@
},
PaperConfig: {}, //试卷配置
isShowAnswer: true, //是否显示答案
isShowStudentAnswer: true, //是否显示学生答案
isShowStudentAnswer: true, //是否显示学生答案,
isShowScore:true,//是否显示完型填空、阅读理解、听力,小题分数
studentScore: 0, //学生总得分
examScore: 0, //总分,
examNum: 0, //总题量
......
......@@ -316,13 +316,13 @@
<!--完型填空-->
<v-cloze v-if="dItem.QuestionTypeKey=='cloze'" :questionObj="dItem" :isShowAnswer="isShowAnswer"
:isShowStudentAnswer="isShowStudentAnswer" @getScore="calcPaper"></v-cloze>
:isShowStudentAnswer="isShowStudentAnswer" @getScore="calcPaper" :isShowScore="isShowScore"></v-cloze>
<!--阅读理解、听力题-->
<v-readingcomprehensio
v-if="dItem.QuestionTypeKey=='reading-comprehensio'||dItem.QuestionTypeKey=='listening'"
:questionObj="dItem" :isShowAnswer="isShowAnswer" :isShowStudentAnswer="isShowStudentAnswer"
@getScore="calcPaper">
@getScore="calcPaper" :isShowScore="isShowScore">
</v-readingcomprehensio>
<!--共用选择题-->
......@@ -391,6 +391,7 @@
PaperConfig: {}, //试卷配置
isShowAnswer: true, //是否显示答案
isShowStudentAnswer: true, //是否显示学生答案
isShowScore: true, //是否显示完型填空、阅读理解、听力,小题分数
studentScore: 0, //学生总得分
examScore: 0, //总分,
examNum: 0, //总题量
......@@ -480,23 +481,44 @@
},
//返回
goBack() {
var qMsg = {
Id: this.msg.PublishId
};
this.$router.push({
path: '/exam/examlist'
})
path: '/exam/examineeManager',
query: qMsg
});
},
//老师提交阅卷
submitTeacherScoring() {
saveTeacherScoring(this.DataObj).then(res => {
if (res.Code == 1) {
this.$q.notify({
icon: 'iconfont icon-chenggong',
color: 'accent',
timeout: 2000,
message: '操作成功!',
position: 'top'
})
this.GetPaperInfo();
}
var that = this;
var message = "是否要提交阅卷?提交后将不能修改!";
this.$q.dialog({
title: '提示信息',
message: message,
cancel: true,
persistent: true,
ok: "确定",
cancel: "取消",
}).onOk(() => {
saveTeacherScoring(that.DataObj).then(res => {
if (res.Code == 1) {
this.$q.notify({
icon: 'iconfont icon-chenggong',
color: 'accent',
timeout: 2000,
message: '阅卷成功!',
position: 'top'
})
var qMsg = {
Id: that.msg.PublishId
};
that.$router.push({
path: '/exam/examineeManager',
query: qMsg
});
}
})
})
}
}
......
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