Commit 85ed244e authored by 黄奎's avatar 黄奎

页面修改

parent e6da0cef
...@@ -31,6 +31,9 @@ ...@@ -31,6 +31,9 @@
<tr> <tr>
<td colspan="2">正确答案:{{data.Answer}}</td> <td colspan="2">正确答案:{{data.Answer}}</td>
</tr> </tr>
<tr v-if="data.StundetAnswer">
<td colspan="2">考生答案:{{data.StundetAnswer}}</td>
</tr>
<tr> <tr>
<td colspan="2">解析:<span v-html="data.AnswerParse"></span></td> <td colspan="2">解析:<span v-html="data.AnswerParse"></span></td>
</tr> </tr>
......
...@@ -139,11 +139,19 @@ ...@@ -139,11 +139,19 @@
}, },
//跳转到考试详情 //跳转到考试详情
gotoExamTest(item) { gotoExamTest(item) {
var qMsg = {}; var qMsg = {
Id: item.Id,
GuestId: item.GuestId,
PaperId: item.PaperId,
};
this.OpenNewUrl('/exam/examtest', qMsg); this.OpenNewUrl('/exam/examtest', qMsg);
}, },
gotoExamTestReview(item) { gotoExamTestReview(item) {
var qMsg = {}; var qMsg = {
Id: item.Id,
GuestId: item.GuestId,
PaperId: item.PaperId,
};
this.OpenNewUrl('/exam/examtestreview', qMsg); this.OpenNewUrl('/exam/examtestreview', qMsg);
} }
}, },
......
...@@ -352,7 +352,7 @@ ...@@ -352,7 +352,7 @@
vSharingchoose vSharingchoose
}, },
meta: { meta: {
title: "试卷详情" title: "学员考试"
}, },
watch: { watch: {
...@@ -360,9 +360,9 @@ ...@@ -360,9 +360,9 @@
data() { data() {
return { return {
msg: { msg: {
Id: 1, Id: 0,
GuestId: 60, GuestId: 0,
PaperId: 5 PaperId: 0
}, },
//试卷对象 //试卷对象
DataObj: { DataObj: {
...@@ -380,7 +380,17 @@ ...@@ -380,7 +380,17 @@
} }
}, },
created() { created() {
if (this.$route.query) {
if (this.$route.query.Id && this.$route.query.Id > 0) {
this.msg.Id = this.$route.query.Id;
}
if (this.$route.query.GuestId && this.$route.query.GuestId > 0) {
this.msg.GuestId = this.$route.query.GuestId;
}
if (this.$route.query.PaperId && this.$route.query.PaperId > 0) {
this.msg.PaperId = this.$route.query.PaperId;
}
}
}, },
mounted() { mounted() {
this.GetPaperInfo() this.GetPaperInfo()
...@@ -472,4 +482,5 @@ ...@@ -472,4 +482,5 @@
} }
} }
} }
</script>
\ No newline at end of file </script>
...@@ -353,7 +353,7 @@ ...@@ -353,7 +353,7 @@
vSharingchoose vSharingchoose
}, },
meta: { meta: {
title: "试卷详情" title: "阅卷"
}, },
watch: { watch: {
...@@ -361,9 +361,10 @@ ...@@ -361,9 +361,10 @@
data() { data() {
return { return {
msg: { msg: {
Id: 1, Id: 0,
GuestId: 60, GuestId: 0,
PaperId: 5 PaperId: 0,
isShowAnswer:true,
}, },
//试卷对象 //试卷对象
DataObj: { DataObj: {
...@@ -374,14 +375,24 @@ ...@@ -374,14 +375,24 @@
GroupList: [], //试卷答题分类 GroupList: [], //试卷答题分类
}, },
PaperConfig: {}, //试卷配置 PaperConfig: {}, //试卷配置
isShowAnswer: false, //是否显示答案 isShowAnswer: true, //是否显示答案
isOperate: true, //是否可操作 isOperate: false, //是否可操作
examScore: 0, //总分, examScore: 0, //总分,
examNum: 0, //总题量 examNum: 0, //总题量
} }
}, },
created() { created() {
if (this.$route.query) {
if (this.$route.query.Id && this.$route.query.Id > 0) {
this.msg.Id = this.$route.query.Id;
}
if (this.$route.query.GuestId && this.$route.query.GuestId > 0) {
this.msg.GuestId = this.$route.query.GuestId;
}
if (this.$route.query.PaperId && this.$route.query.PaperId > 0) {
this.msg.PaperId = this.$route.query.PaperId;
}
}
}, },
mounted() { mounted() {
this.GetPaperInfo() this.GetPaperInfo()
...@@ -473,4 +484,5 @@ ...@@ -473,4 +484,5 @@
} }
} }
} }
</script>
\ No newline at end of file </script>
...@@ -97,7 +97,7 @@ ...@@ -97,7 +97,7 @@
}, },
data() { data() {
return { return {
ActionStr: "/Class/InitData", ActionStr: "/AppletLogin/Login",
parameterList: [{ parameterList: [{
Name: "", Name: "",
Value: "" Value: ""
...@@ -156,7 +156,10 @@ ...@@ -156,7 +156,10 @@
tempStr = "{" + tempStr.substring(1, tempStr.length) + "}"; tempStr = "{" + tempStr.substring(1, tempStr.length) + "}";
data = JSON.parse(tempStr); data = JSON.parse(tempStr);
} }
data = {
Account: "13551126755",
Password: "123456"
};
var tempMsg = { var tempMsg = {
Msg: data Msg: data
}; };
......
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