|
@@ -65,7 +65,7 @@
|
|
|
|
|
|
<template v-if="item1.showList">
|
|
|
<view v-for="(item2, index2) in item1.list" :key="index2">
|
|
|
- <view class="section" @click="changeItem(index1, item2.chapterExamId, item1.type, index2)">
|
|
|
+ <view class="section" @click="changeItem(index1, item2.chapterExamId, item1.type, index2,item1.majorId)">
|
|
|
<image src="/static/icon/up1.png" class="icon_up" v-if="!item2.showList"></image>
|
|
|
<image src="/static/icon/down1.png" class="icon_up" v-if="item2.showList"></image>
|
|
|
<!-- <u-icon name="arrow-up" color="#999" size="24" v-if="item2.showList"></u-icon>
|
|
@@ -86,7 +86,7 @@
|
|
|
</template>
|
|
|
|
|
|
<template v-if="item1.type == 2">
|
|
|
- <view class="section" @click="changeItem(index1, item1.majorId, item1.type)">
|
|
|
+ <view class="section" @click="changeItem(index1, item1.majorId, item1.type,'',0)">
|
|
|
<image src="/static/icon/up1.png" class="icon_up" v-if="!item1.showList"></image>
|
|
|
<image src="/static/icon/down1.png" class="icon_up" v-if="item1.showList"></image>
|
|
|
<!-- <u-icon name="arrow-up" color="#999" size="24" v-if="item1.showList"></u-icon>
|
|
@@ -226,11 +226,11 @@ export default {
|
|
|
.then(res => {
|
|
|
this.$set(this.bankList[i], 'showList', true);
|
|
|
this.$set(this.bankList[i], 'list', res.data.data);
|
|
|
- this.changeItem(i,this.bankList[i].list[0].chapterExamId,this.bankList[i].type,0)
|
|
|
+ this.changeItem(i,this.bankList[i].list[0].chapterExamId,this.bankList[i].type,0,this.bankList[i].majorId)
|
|
|
});
|
|
|
break;
|
|
|
} else if(this.bankList[i].type == 2) { //第一个章展开下面的节
|
|
|
- this.changeItem(i,this.bankList[i].majorId,this.bankList[i].type,'')
|
|
|
+ this.changeItem(i,this.bankList[i].majorId,this.bankList[i].type,'',0)
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
@@ -350,7 +350,7 @@ export default {
|
|
|
this.$set(this.bankList[index], 'list', res.data.data);
|
|
|
});
|
|
|
},
|
|
|
- changeItem(index1, id, type, index2) {
|
|
|
+ changeItem(index1, id, type, index2,moduleExamId) {
|
|
|
if (type == 1) {
|
|
|
if (this.bankList[index1].list[index2].list) {
|
|
|
this.$set(this.bankList[index1].list[index2], 'showList', !this.bankList[index1].list[index2].showList);
|
|
@@ -359,6 +359,7 @@ export default {
|
|
|
|
|
|
this.$api
|
|
|
.bankExamExamList({
|
|
|
+ moduleExamId:moduleExamId,
|
|
|
chapterExamId: id,
|
|
|
goodsId:this.id
|
|
|
})
|
|
@@ -374,6 +375,7 @@ export default {
|
|
|
|
|
|
this.$api
|
|
|
.bankExamExamList({
|
|
|
+ moduleExamId:moduleExamId,
|
|
|
chapterExamId: id,
|
|
|
goodsId: this.id
|
|
|
})
|