|
@@ -163,34 +163,34 @@
|
|
|
>删除</i
|
|
|
>
|
|
|
</div>
|
|
|
- <div style="margin-bottom: 10px">
|
|
|
- 指定开放学员,有购买一下商品:<el-button
|
|
|
- type="info"
|
|
|
- :size="size"
|
|
|
- @click="activeGoods(index, indexs)"
|
|
|
- >选择商品</el-button
|
|
|
- >
|
|
|
- </div>
|
|
|
- <ul class="goodslist_style">
|
|
|
- <li
|
|
|
- v-for="(
|
|
|
- ititem, itindex
|
|
|
- ) in items.mockMajorSubjectGoodsList"
|
|
|
- :key="itindex"
|
|
|
- >
|
|
|
- {{ ititem.goodsCode }}-{{ ititem.goodsName }}-<span
|
|
|
- style="color: red"
|
|
|
- >¥{{ ititem.price }}</span
|
|
|
- ><i
|
|
|
- class="deleteStyle"
|
|
|
- style="margin-left: 10px"
|
|
|
- @click="
|
|
|
- items.mockMajorSubjectGoodsList.splice(itindex, 1)
|
|
|
- "
|
|
|
- >删除</i
|
|
|
+ <template v-if="!listData.mockActivity">
|
|
|
+ <div style="margin-bottom: 10px">
|
|
|
+ 指定开放学员,有购买一下商品:<el-button
|
|
|
+ type="info"
|
|
|
+ :size="size"
|
|
|
+ @click="activeGoods(index, indexs)"
|
|
|
+ >选择商品</el-button
|
|
|
+ >
|
|
|
+ </div>
|
|
|
+ <ul class="goodslist_style">
|
|
|
+ <li
|
|
|
+ v-for="(ititem, itindex) in items.mockMajorSubjectGoodsList"
|
|
|
+ :key="itindex"
|
|
|
>
|
|
|
- </li>
|
|
|
- </ul>
|
|
|
+ {{ ititem.goodsCode }}-{{ ititem.goodsName }}-<span
|
|
|
+ style="color: red"
|
|
|
+ >¥{{ ititem.price }}</span
|
|
|
+ ><i
|
|
|
+ class="deleteStyle"
|
|
|
+ style="margin-left: 10px"
|
|
|
+ @click="
|
|
|
+ items.mockMajorSubjectGoodsList.splice(itindex, 1)
|
|
|
+ "
|
|
|
+ >删除</i
|
|
|
+ >
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ </template>
|
|
|
</div>
|
|
|
</li>
|
|
|
</ul>
|
|
@@ -239,9 +239,7 @@ export default {
|
|
|
i < this.infoData[index].mockMajorSubjectList.length;
|
|
|
i++
|
|
|
) {
|
|
|
- if (
|
|
|
- this.infoData[index].mockMajorSubjectList[i].subjectId === id
|
|
|
- ) {
|
|
|
+ if (this.infoData[index].mockMajorSubjectList[i].subjectId === id) {
|
|
|
status = true;
|
|
|
break;
|
|
|
}
|
|
@@ -282,7 +280,7 @@ export default {
|
|
|
* 获取初始模考专业列表
|
|
|
*/
|
|
|
getBybusinfoPage(data) {
|
|
|
- console.log(data)
|
|
|
+ console.log(data);
|
|
|
this.infoData = data;
|
|
|
},
|
|
|
/**
|
|
@@ -420,8 +418,7 @@ export default {
|
|
|
educationTypeId: this.listData.educationTypeId,
|
|
|
businessId: this.listData.businessId,
|
|
|
examId: this.infoData[index].mockMajorSubjectList[indexs].examId,
|
|
|
- examName:
|
|
|
- this.infoData[index].mockMajorSubjectList[indexs].examName,
|
|
|
+ examName: this.infoData[index].mockMajorSubjectList[indexs].examName,
|
|
|
});
|
|
|
},
|
|
|
/**
|
|
@@ -446,8 +443,7 @@ export default {
|
|
|
this.$refs.activeSection.openBoxGoods(index, indexs, {
|
|
|
educationTypeId: this.listData.educationTypeId,
|
|
|
businessId: this.listData.businessId,
|
|
|
- sectionId:
|
|
|
- this.infoData[index].mockMajorSubjectList[indexs].sectionId,
|
|
|
+ sectionId: this.infoData[index].mockMajorSubjectList[indexs].sectionId,
|
|
|
sectionName:
|
|
|
this.infoData[index].mockMajorSubjectList[indexs].sectionName,
|
|
|
});
|