|  | @@ -15,7 +15,11 @@ import {
 | 
	
		
			
				|  |  |  import AddTeaching, {
 | 
	
		
			
				|  |  |    BOOK_DATA
 | 
	
		
			
				|  |  |  } from '/src/views/natural-resources/model/add-teaching';
 | 
	
		
			
				|  |  | -import { lessonCoursewarePage, lessonCoursewareRemove } from '../../../api';
 | 
	
		
			
				|  |  | +import {
 | 
	
		
			
				|  |  | +  lessonCoursewarePage,
 | 
	
		
			
				|  |  | +  lessonCoursewareRemove,
 | 
	
		
			
				|  |  | +  musicTagTree
 | 
	
		
			
				|  |  | +} from '../../../api';
 | 
	
		
			
				|  |  |  import iconUploadBg from '../images/icon-upload-bg.svg';
 | 
	
		
			
				|  |  |  import { useCatchStore } from '/src/store/modules/catchData';
 | 
	
		
			
				|  |  |  import { useThrottleFn } from '@vueuse/core';
 | 
	
	
		
			
				|  | @@ -31,11 +35,12 @@ export default defineComponent({
 | 
	
		
			
				|  |  |        loading: false,
 | 
	
		
			
				|  |  |        list: [] as any[],
 | 
	
		
			
				|  |  |        teachingStatus: false,
 | 
	
		
			
				|  |  | +      musicTagList: [] as any[],
 | 
	
		
			
				|  |  |        selectItem: {} as any,
 | 
	
		
			
				|  |  |        bookVersionId: null,
 | 
	
		
			
				|  |  |        keyword: null,
 | 
	
		
			
				|  |  | -      currentGradeNum: null,
 | 
	
		
			
				|  |  | -      bookType: null
 | 
	
		
			
				|  |  | +      currentGradeNum: null
 | 
	
		
			
				|  |  | +      // bookType: null
 | 
	
		
			
				|  |  |      });
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      const getLessonCourseware = async () => {
 | 
	
	
		
			
				|  | @@ -48,8 +53,8 @@ export default defineComponent({
 | 
	
		
			
				|  |  |            enableFlag: 1,
 | 
	
		
			
				|  |  |            bookVersionId: forms.bookVersionId,
 | 
	
		
			
				|  |  |            keyword: forms.keyword,
 | 
	
		
			
				|  |  | -          currentGradeNum: forms.currentGradeNum,
 | 
	
		
			
				|  |  | -          bookType: forms.bookType
 | 
	
		
			
				|  |  | +          currentGradeNum: forms.currentGradeNum
 | 
	
		
			
				|  |  | +          // bookType: forms.bookType
 | 
	
		
			
				|  |  |          });
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          forms.list = data.rows;
 | 
	
	
		
			
				|  | @@ -86,14 +91,26 @@ export default defineComponent({
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      onMounted(async () => {
 | 
	
		
			
				|  |  |        // 获取教材分类列表
 | 
	
		
			
				|  |  | -      await catchStore.getMusicSheetCategory();
 | 
	
		
			
				|  |  | +      try {
 | 
	
		
			
				|  |  | +        const { data } = await musicTagTree({});
 | 
	
		
			
				|  |  | +        console.log(data);
 | 
	
		
			
				|  |  | +        const temp = data || [];
 | 
	
		
			
				|  |  | +        temp.forEach((item: any) => {
 | 
	
		
			
				|  |  | +          forms.musicTagList.push({
 | 
	
		
			
				|  |  | +            id: item.id,
 | 
	
		
			
				|  |  | +            name: item.name
 | 
	
		
			
				|  |  | +          });
 | 
	
		
			
				|  |  | +        });
 | 
	
		
			
				|  |  | +      } catch {
 | 
	
		
			
				|  |  | +        //
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  |        getLessonCourseware();
 | 
	
		
			
				|  |  |      });
 | 
	
		
			
				|  |  |      return () => (
 | 
	
		
			
				|  |  |        <div class={styles.selectLessonware}>
 | 
	
		
			
				|  |  |          <div class={styles.attendClassSearch}>
 | 
	
		
			
				|  |  |            <NInput
 | 
	
		
			
				|  |  | -            placeholder="请输入班级名称"
 | 
	
		
			
				|  |  | +            placeholder="请输入教材名称"
 | 
	
		
			
				|  |  |              clearable
 | 
	
		
			
				|  |  |              v-model:value={forms.keyword}
 | 
	
		
			
				|  |  |              onKeyup={(e: KeyboardEvent) => {
 | 
	
	
		
			
				|  | @@ -113,10 +130,7 @@ export default defineComponent({
 | 
	
		
			
				|  |  |            <NSelect
 | 
	
		
			
				|  |  |              placeholder="全部版本"
 | 
	
		
			
				|  |  |              clearable
 | 
	
		
			
				|  |  | -            options={[
 | 
	
		
			
				|  |  | -              { id: null, name: '全部版本' },
 | 
	
		
			
				|  |  | -              ...catchStore.getMusicCategories
 | 
	
		
			
				|  |  | -            ]}
 | 
	
		
			
				|  |  | +            options={[{ id: null, name: '全部版本' }, ...forms.musicTagList]}
 | 
	
		
			
				|  |  |              labelField="name"
 | 
	
		
			
				|  |  |              valueField="id"
 | 
	
		
			
				|  |  |              v-model:value={forms.bookVersionId}
 | 
	
	
		
			
				|  | @@ -132,7 +146,7 @@ export default defineComponent({
 | 
	
		
			
				|  |  |              filterable
 | 
	
		
			
				|  |  |              onUpdate:value={() => throttledFn()}
 | 
	
		
			
				|  |  |            />
 | 
	
		
			
				|  |  | -          <NSelect
 | 
	
		
			
				|  |  | +          {/* <NSelect
 | 
	
		
			
				|  |  |              placeholder="全部册别"
 | 
	
		
			
				|  |  |              options={
 | 
	
		
			
				|  |  |                [
 | 
	
	
		
			
				|  | @@ -143,7 +157,7 @@ export default defineComponent({
 | 
	
		
			
				|  |  |              v-model:value={forms.bookType}
 | 
	
		
			
				|  |  |              clearable
 | 
	
		
			
				|  |  |              onUpdate:value={() => throttledFn()}
 | 
	
		
			
				|  |  | -          />
 | 
	
		
			
				|  |  | +          /> */}
 | 
	
		
			
				|  |  |          </div>
 | 
	
		
			
				|  |  |          <NScrollbar class={styles.classList}>
 | 
	
		
			
				|  |  |            <NSpin show={forms.loading} class={styles.content}>
 |