|
@@ -25,10 +25,12 @@ export default defineComponent({
|
|
|
setup(props, { emit }) {
|
|
|
const catchStore = useCatchStore();
|
|
|
const musics = ref('');
|
|
|
+ const subjects = ref('');
|
|
|
const forms = reactive({
|
|
|
name: '',
|
|
|
// grade: null as any,
|
|
|
bookVersionId: '' as any,
|
|
|
+ subjectId: null as any,
|
|
|
// musicSheetCategoriesId: null,
|
|
|
musicalInstrumentId: ''
|
|
|
});
|
|
@@ -122,11 +124,16 @@ export default defineComponent({
|
|
|
/>
|
|
|
)}
|
|
|
<CCascader
|
|
|
- v-model:value={forms.musicalInstrumentId}
|
|
|
+ v-model:value={subjects.value}
|
|
|
placement="bottom-end"
|
|
|
placeholder="全部声部"
|
|
|
options={tagSubjectList.value}
|
|
|
- onUpdate:value={() => {
|
|
|
+ // onUpdate:value={() => {
|
|
|
+ // onSearch();
|
|
|
+ // }}
|
|
|
+ onMoreId={(val: any) => {
|
|
|
+ forms.musicalInstrumentId = val.childId;
|
|
|
+ forms.subjectId = val.parentId;
|
|
|
onSearch();
|
|
|
}}
|
|
|
/>
|