Commit 24347693 authored by 黄奎's avatar 黄奎

页面修改

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