|
@@ -337,7 +337,7 @@ export default defineComponent({
|
|
|
musicSheetAccompanimentUrls: '' as any,
|
|
|
musicSheetAccompanimentUrlList: [] as any,
|
|
|
instrumentData: [],
|
|
|
- instrumentList: [],
|
|
|
+ instrumentList: [] as any,
|
|
|
instrumentIdNameMap: new Map() as any,
|
|
|
subjectList: [] as any,
|
|
|
showMusicSheetOwnerDialog: false, //所属人弹框
|
|
@@ -1577,6 +1577,24 @@ export default defineComponent({
|
|
|
clearable
|
|
|
placeholder="请选择可用声部"
|
|
|
maxTagCount={2}
|
|
|
+ onUpdateValue={async (val: any) => {
|
|
|
+ state.instrumentList = []
|
|
|
+ let tempMusicalInstrumentIdList = [] as any
|
|
|
+ const {data} = await musicalInstrumentPage({page: 1, rows: 999, subjectIds: val});
|
|
|
+ data.rows.map((item: any) => {
|
|
|
+ tempMusicalInstrumentIdList.push(item.id + '')
|
|
|
+ state.instrumentList.push(
|
|
|
+ {
|
|
|
+ label: item.name,
|
|
|
+ value: item.id + '',
|
|
|
+ disabled: !item.enableFlag
|
|
|
+ }
|
|
|
+ )
|
|
|
+ })
|
|
|
+ forms.musicalInstrumentIdList = forms.musicalInstrumentIdList.filter((item: any) => {
|
|
|
+ return tempMusicalInstrumentIdList.includes(item)
|
|
|
+ })
|
|
|
+ }}
|
|
|
/>
|
|
|
</NFormItemGi>
|
|
|
<NFormItemGi
|