|
@@ -84,7 +84,7 @@
|
|
|
<!-- <van-sticky>
|
|
|
<m-header name="作业曲目" :backUrl="backUrl" />
|
|
|
</van-sticky> -->
|
|
|
- <accompaniment-modal @onSelectMusic="onSelectMusic" style="margin-bottom: 0.8rem;" :searchSubjectId="tabActive" />
|
|
|
+ <accompaniment-modal @onSelectMusic="onSelectMusic" ref="accompaniment" style="margin-bottom: 0.8rem;" :searchSubjectId="tabActive" />
|
|
|
<div class="button-group-popup">
|
|
|
<span class="btn" @click="accompanimentStatus = false">关闭</span>
|
|
|
</div>
|
|
@@ -153,6 +153,7 @@ export default {
|
|
|
expiryDate: null, // 作业截止日期
|
|
|
accompanimentStatus: false, // 伴奏弹窗
|
|
|
tabActive: 0,
|
|
|
+ tabOriginActive: 0,
|
|
|
tabActiveList: {}, // 选中当前信息
|
|
|
tabActiveIndex: 0,
|
|
|
params: {
|
|
@@ -219,12 +220,17 @@ export default {
|
|
|
this.dataList = tempData
|
|
|
// 默认选中第1条数据
|
|
|
this.tabActive = deepClone(params.subjectIdList[0])
|
|
|
+ this.tabOriginActive = deepClone(params.subjectIdList[0])
|
|
|
this.dataSubjectList = deepClone(params.subjectList)
|
|
|
this.params = params
|
|
|
})
|
|
|
},
|
|
|
methods: {
|
|
|
onSelectAccompany(item, index) {
|
|
|
+ if(this.tabActive != this.tabOriginActive && this.$refs.accompaniment) {
|
|
|
+ this.tabOriginActive = JSON.parse(JSON.stringify(this.tabActive))
|
|
|
+ this.$refs.accompaniment.onSearch()
|
|
|
+ }
|
|
|
this.accompanimentStatus = true
|
|
|
this.tabActiveList = item
|
|
|
this.tabActiveIndex = index
|