Commit 5aeddba1 authored by 罗超's avatar 罗超

Merge branch 'master' of http://gitlab.oytour.com/luochao/confucius into master

parents 482c70d9 ee0d65c5
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
<div class="matchingQuestion"> <div class="matchingQuestion">
<span class="team_tit" style="margin-top:20px;padding-bottom:0;">第1组:</span> <span class="team_tit" style="margin-top:20px;padding-bottom:0;">第1组:</span>
<table v-if="data&&data.length>0" class="common_TiTable"> <table v-if="data&&data.length>0" class="common_TiTable">
<tr v-for="(item,index) in data[0]"> <tr v-for="(item,index) in data[0]" :key="index">
<td style="width:40px;text-align:center;padding-top:10px;"> <td style="width:40px;text-align:center;padding-top:10px;">
{{item.Name}} {{item.Name}}
</td> </td>
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
</table> </table>
<span class="team_tit">第2组:</span> <span class="team_tit">第2组:</span>
<table v-if="data&&data.length>1" class="common_TiTable"> <table v-if="data&&data.length>1" class="common_TiTable">
<tr v-for="(item,index) in data[1]"> <tr v-for="(item,index) in data[1]" :key="index">
<td style="width:40px;text-align:center;padding-top:10px;"> <td style="width:40px;text-align:center;padding-top:10px;">
{{item.Name}} {{item.Name}}
</td> </td>
...@@ -90,7 +90,7 @@ ...@@ -90,7 +90,7 @@
</table> </table>
<span class="team_tit">答案</span> <span class="team_tit">答案</span>
<table v-if="data&&data.length>2" style="padding-left:13px;"> <table v-if="data&&data.length>2" style="padding-left:13px;">
<tr v-for="(item,index) in data[0]"> <tr v-for="(item,index) in data[0]" :key="index">
<td style="width:30px;"> <td style="width:30px;">
{{item.Name}} {{item.Name}}
</td> </td>
......
...@@ -72,8 +72,8 @@ ...@@ -72,8 +72,8 @@
</tr> </tr>
<tr v-if="isShowStudentAnswer"> <tr v-if="isShowStudentAnswer">
<td colspan="2"> <td colspan="2">
<span style="font-weight:bold;">答案:</span> <span style="font-weight:bold;">答案:</span>
<span> <span style="font-weight:bold;">
{{data.StundetAnswer}} {{data.StundetAnswer}}
</span> </span>
</td> </td>
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
<th colspan="2">第二组</th> <th colspan="2">第二组</th>
</tr> </tr>
</thead> </thead>
<tr v-for="(item,index) in data.QuestionContentObj[0]"> <tr v-for="(item,index) in data.QuestionContentObj[0]" :key="index">
<td style="width:40px;text-align:center;padding-top:10px;"> <td style="width:40px;text-align:center;padding-top:10px;">
{{item.Name}} {{item.Name}}
</td> </td>
...@@ -79,7 +79,7 @@ ...@@ -79,7 +79,7 @@
</tr> </tr>
<tfoot> <tfoot>
<tr v-if="isShowStudentAnswer"> <tr v-if="isShowStudentAnswer">
<td colspan="3"> <td colspan="3" style="font-weight:bold">
考生答案:{{data.StundetAnswer}} 考生答案:{{data.StundetAnswer}}
</td> </td>
</tr> </tr>
......
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
</tbody> </tbody>
<tfoot v-if="isShowStudentAnswer"> <tfoot v-if="isShowStudentAnswer">
<tr> <tr>
<td colspan="2"> <td colspan="2" style="font-weight:bold;">
考生答案:{{data.StundetAnswer}} 考生答案:{{data.StundetAnswer}}
</td> </td>
</tr> </tr>
......
...@@ -73,8 +73,8 @@ ...@@ -73,8 +73,8 @@
</tr> </tr>
<tr v-if="isShowStudentAnswer"> <tr v-if="isShowStudentAnswer">
<td> <td>
<span style="font-weight:bold;">答案:</span> <span style="font-weight:bold;">答案:</span>
<span> <span style="font-weight:bold;">
{{data.StundetAnswer}} {{data.StundetAnswer}}
</span> </span>
</td> </td>
......
...@@ -140,17 +140,17 @@ ...@@ -140,17 +140,17 @@
//跳转到考试详情 //跳转到考试详情
gotoExamTest(item) { gotoExamTest(item) {
var qMsg = { var qMsg = {
Id: item.Id,
GuestId: item.GuestId, GuestId: item.GuestId,
PaperId: item.PaperId, PaperId: item.PaperId,
PublishId:item.PublishId,
}; };
this.OpenNewUrl('/exam/examtest', qMsg); this.OpenNewUrl('/exam/examtest', qMsg);
}, },
gotoExamTestReview(item) { gotoExamTestReview(item) {
var qMsg = { var qMsg = {
Id: item.Id,
GuestId: item.GuestId, GuestId: item.GuestId,
PaperId: item.PaperId, PaperId: item.PaperId,
PublishId:item.PublishId,
}; };
this.OpenNewUrl('/exam/examtestreview', qMsg); this.OpenNewUrl('/exam/examtestreview', qMsg);
} }
......
...@@ -360,9 +360,9 @@ ...@@ -360,9 +360,9 @@
data() { data() {
return { return {
msg: { msg: {
Id: 0,
GuestId: 0, GuestId: 0,
PaperId: 0 PaperId: 0,
PublishId: 0,
}, },
//试卷对象 //试卷对象
DataObj: { DataObj: {
...@@ -381,15 +381,15 @@ ...@@ -381,15 +381,15 @@
}, },
created() { created() {
if (this.$route.query) { 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) { if (this.$route.query.GuestId && this.$route.query.GuestId > 0) {
this.msg.GuestId = this.$route.query.GuestId; this.msg.GuestId = this.$route.query.GuestId;
} }
if (this.$route.query.PaperId && this.$route.query.PaperId > 0) { if (this.$route.query.PaperId && this.$route.query.PaperId > 0) {
this.msg.PaperId = this.$route.query.PaperId; this.msg.PaperId = this.$route.query.PaperId;
} }
if (this.$route.query.PublishId && this.$route.query.PublishId > 0) {
this.msg.PublishId = this.$route.query.PublishId;
}
} }
}, },
mounted() { mounted() {
......
...@@ -366,6 +366,7 @@ ...@@ -366,6 +366,7 @@
Id: 0, Id: 0,
GuestId: 0, GuestId: 0,
PaperId: 0, PaperId: 0,
PublishId: 0,
isShowAnswer: true, isShowAnswer: true,
}, },
//试卷对象 //试卷对象
...@@ -394,6 +395,9 @@ ...@@ -394,6 +395,9 @@
if (this.$route.query.PaperId && this.$route.query.PaperId > 0) { if (this.$route.query.PaperId && this.$route.query.PaperId > 0) {
this.msg.PaperId = this.$route.query.PaperId; this.msg.PaperId = this.$route.query.PaperId;
} }
if (this.$route.query.PublishId && this.$route.query.PublishId > 0) {
this.msg.PublishId = this.$route.query.PublishId;
}
} }
}, },
mounted() { mounted() {
...@@ -433,6 +437,7 @@ ...@@ -433,6 +437,7 @@
GetPaperInfo() { GetPaperInfo() {
queryPaperDetails(this.msg).then(res => { queryPaperDetails(this.msg).then(res => {
var tempData = res.Data; var tempData = res.Data;
console.log("tempData",tempData);
if (res.Code == 1) { if (res.Code == 1) {
this.DataObj.PaperId = tempData.Paper.PaperId; this.DataObj.PaperId = tempData.Paper.PaperId;
this.DataObj.PaperName = tempData.Paper.PaperName; this.DataObj.PaperName = tempData.Paper.PaperName;
......
...@@ -83,7 +83,7 @@ ...@@ -83,7 +83,7 @@
return false; return false;
} }
} }
UploadViittoFile('korea', files, res => { UploadViittoFile('korea/Test/Upload', files, res => {
console.log(res) console.log(res)
if (res.Code == 1) { if (res.Code == 1) {
res.data = this.data; res.data = this.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