Commit 5da09d00 authored by zhengke's avatar zhengke

修改

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