Commit 5da09d00 authored by zhengke's avatar zhengke

修改

parent 3fe967b4
......@@ -97,6 +97,13 @@ export default {
},
onchange(e){
data.ExamIndex = e.detail.current+1;
console.log(data.ExamIndex,'index1');
console.log(data.data.DetailsList.length,'index2');
if(data.ExamIndex==data.data.DetailsList.length){
console.log('进入')
//this.$emit('getIndex');
}
}
};
onMounted(()=>{
......
......@@ -27,8 +27,9 @@
<view v-for="(item, index) in peaperDetail.Paper.GroupList" :key="index">
<SingleChoice
:paperData="item"
@getIndex="getIndex()"
:sort="index"
v-if="item.QuestionTypeKey === 'single-number'" />
v-if="item.QuestionTypeKey === 'single-number'&&index===changeIndex" />
<MultipleChoice
:paperData="item"
v-if="item.QuestionTypeKey === 'multiple'"
......@@ -98,8 +99,10 @@ export default {
let data = reactive({
time: 2 * 60 * 60 * 1000,
statusBarHeight: 0,
msg: { GuestId: Gid, PaperId: 6, Id: 3 },
// msg: { GuestId: Gid, PaperId: 6, Id: 3 },
msg: { GuestId: Gid, PaperId: 24, Id: 0 },
peaperDetail: {},
changeIndex:0,
});
let methods = {
jumpPage() {
......@@ -120,6 +123,9 @@ export default {
console.log(90, res.Data.Paper.GroupList);
}
},
getIndex(){
this.changeIndex++
}
};
onMounted(() => {
getSystemInfo((res) => {
......
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