|
@@ -10,6 +10,7 @@ import OSticky from '@/components/o-sticky'
|
|
|
import OSearch from '@/components/o-search'
|
|
|
import OHeader from '@/components/o-header'
|
|
|
import { getImage } from '@/views/accompany/images'
|
|
|
+import { unitData } from './data'
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: 'accompany-music-list',
|
|
@@ -35,7 +36,8 @@ export default defineComponent({
|
|
|
PopoverOpen: false,
|
|
|
list: [] as any,
|
|
|
keyword: '',
|
|
|
- musicSubject: subjectId,
|
|
|
+ // 合奏班默认选中所有声部
|
|
|
+ musicSubject: unitData.courseType === 'INSTRUMENTAL_ENSEMBLE' ? '' : subjectId,
|
|
|
subjectList: [] as any
|
|
|
})
|
|
|
|
|
@@ -68,6 +70,10 @@ export default defineComponent({
|
|
|
}
|
|
|
})
|
|
|
const rows = subjects.data.rows || []
|
|
|
+ data.subjectList.push({
|
|
|
+ text: '全部',
|
|
|
+ value: ''
|
|
|
+ })
|
|
|
rows.forEach((item: any) => {
|
|
|
data.subjectList.push({
|
|
|
text: item.subjectName,
|