Commit 8455a39e authored by zhengke's avatar zhengke

修改

parent 8ce8cbc9
...@@ -94,6 +94,7 @@ import { submitPaper } from "../../api/exam"; ...@@ -94,6 +94,7 @@ import { submitPaper } from "../../api/exam";
export default { export default {
props: { props: {
paperData: Object, paperData: Object,
ExamStuId: Number
}, },
setup(props, ctx) { setup(props, ctx) {
let Gid = uni.getStorageSync("userInfo").Id; let Gid = uni.getStorageSync("userInfo").Id;
...@@ -118,7 +119,7 @@ export default { ...@@ -118,7 +119,7 @@ export default {
async savePaper() { async savePaper() {
let obj = JSON.parse(JSON.stringify(props.paperData.Paper)); let obj = JSON.parse(JSON.stringify(props.paperData.Paper));
delete obj.Group_Id; delete obj.Group_Id;
console.log("答题卡", obj); obj.Exam_Student_Id = props.ExamStuId
let res = await submitPaper(obj); let res = await submitPaper(obj);
if (res) { if (res) {
console.log(119, res); console.log(119, res);
......
...@@ -284,6 +284,7 @@ ...@@ -284,6 +284,7 @@
<view class="answer-con" v-if="isShowAnswer"> <view class="answer-con" v-if="isShowAnswer">
<Answer <Answer
:paperData="peaperDetail" :paperData="peaperDetail"
:ExamStuId="Exam_Student_Id"
@hideAnswer="hideAnswerSheet" @hideAnswer="hideAnswerSheet"
@chooseTopic="jumpTopic" @chooseTopic="jumpTopic"
ref="answer" ref="answer"
...@@ -358,11 +359,12 @@ export default { ...@@ -358,11 +359,12 @@ export default {
time: 1 * 60 * 60 * 1000, time: 1 * 60 * 60 * 1000,
statusBarHeight: 0, statusBarHeight: 0,
// msg: { GuestId: Gid, PaperId: 6, Id: 3 }, // msg: { GuestId: Gid, PaperId: 6, Id: 3 },
msg: { GuestId: Gid, PaperId: 0, PublishId: 0 ,Exam_Student_Id: 0}, msg: { GuestId: Gid, PaperId: 0, PublishId: 0 },
peaperDetail: {}, peaperDetail: {},
changeIndex: 0, //大题序号 changeIndex: 0, //大题序号
isLast: false, //用于判断是否从后往前翻 isLast: false, //用于判断是否从后往前翻
isShowAnswer: false, //是否显示答题卡 isShowAnswer: false, //是否显示答题卡
Exam_Student_Id:0
}); });
let methods = { let methods = {
changeNumToHan, changeNumToHan,
...@@ -431,9 +433,16 @@ export default { ...@@ -431,9 +433,16 @@ export default {
}; };
}, },
onLoad(options) { onLoad(options) {
this.msg.PaperId = options.PaperId; console.log(options,'options');
this.msg.PublishId = options.Id; if(options.PaperId){
this.msg.Exam_Student_Id = options.Exam_Student_Id; this.msg.PaperId = options.PaperId;
}
if(options.Id){
this.msg.PublishId = options.Id;
}
if(options.Exam_Student_Id){
this.Exam_Student_Id = options.Exam_Student_Id;
}
this.getPaperDetail(); this.getPaperDetail();
}, },
}; };
......
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