|  | @@ -3,6 +3,15 @@
 | 
											
												
													
														|  |      <template #content>
 |  |      <template #content>
 | 
											
												
													
														|  |        <!-- eslint-disable max-len -->
 |  |        <!-- eslint-disable max-len -->
 | 
											
												
													
														|  |        <div class="fill-wrapper">
 |  |        <div class="fill-wrapper">
 | 
											
												
													
														|  | 
 |  | +        <div class="fun-type">
 | 
											
												
													
														|  | 
 |  | +          <a
 | 
											
												
													
														|  | 
 |  | +            v-for="{ value, label } in funList"
 | 
											
												
													
														|  | 
 |  | +            :key="value"
 | 
											
												
													
														|  | 
 |  | +            :class="[data.property.fun_type === value ? 'active' : '']"
 | 
											
												
													
														|  | 
 |  | +            @click="data.property.fun_type = value"
 | 
											
												
													
														|  | 
 |  | +            >{{ label }}</a
 | 
											
												
													
														|  | 
 |  | +          >
 | 
											
												
													
														|  | 
 |  | +        </div>
 | 
											
												
													
														|  |          <div class="content-box">
 |  |          <div class="content-box">
 | 
											
												
													
														|  |            <el-input
 |  |            <el-input
 | 
											
												
													
														|  |              v-if="data.property.audio_generation_method === 'auto'"
 |  |              v-if="data.property.audio_generation_method === 'auto'"
 | 
											
										
											
												
													
														|  | @@ -23,8 +32,7 @@
 | 
											
												
													
														|  |              style="width: 200px"
 |  |              style="width: 200px"
 | 
											
												
													
														|  |            />
 |  |            />
 | 
											
												
													
														|  |          </div>
 |  |          </div>
 | 
											
												
													
														|  | -        <span v-if="data.property.fun_type === 'input'"
 |  | 
 | 
											
												
													
														|  | -class="tips"
 |  | 
 | 
											
												
													
														|  | 
 |  | +        <span v-if="data.property.fun_type === 'input'" class="tips"
 | 
											
												
													
														|  |            >在需要加空的内容处插入 3 个或以上的下划线“_”。</span
 |  |            >在需要加空的内容处插入 3 个或以上的下划线“_”。</span
 | 
											
												
													
														|  |          >
 |  |          >
 | 
											
												
													
														|  |          <div v-if="data.audio_file_id">
 |  |          <div v-if="data.audio_file_id">
 | 
											
										
											
												
													
														|  | @@ -72,7 +80,7 @@ import ModuleMixin from '../../common/ModuleMixin';
 | 
											
												
													
														|  |  import SoundRecord from '@/views/book/courseware/create/components/question/fill/components/SoundRecord.vue';
 |  |  import SoundRecord from '@/views/book/courseware/create/components/question/fill/components/SoundRecord.vue';
 | 
											
												
													
														|  |  import UploadAudio from '@/views/book/courseware/create/components/question/fill/components/UploadAudio.vue';
 |  |  import UploadAudio from '@/views/book/courseware/create/components/question/fill/components/UploadAudio.vue';
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | -import { getPinyinBaseData } from '@/views/book/courseware/data/pinyinBase';
 |  | 
 | 
											
												
													
														|  | 
 |  | +import { getPinyinBaseData, funList } from '@/views/book/courseware/data/pinyinBase';
 | 
											
												
													
														|  |  import { addTone, handleToneValue } from '@/views/book/courseware/data/common';
 |  |  import { addTone, handleToneValue } from '@/views/book/courseware/data/common';
 | 
											
												
													
														|  |  import { getRandomNumber } from '@/utils';
 |  |  import { getRandomNumber } from '@/utils';
 | 
											
												
													
														|  |  import { GetStaticResources } from '@/api/app';
 |  |  import { GetStaticResources } from '@/api/app';
 | 
											
										
											
												
													
														|  | @@ -90,6 +98,7 @@ export default {
 | 
											
												
													
														|  |        matically_pinyin_obj: {}, // 存放转成声调的拼音
 |  |        matically_pinyin_obj: {}, // 存放转成声调的拼音
 | 
											
												
													
														|  |        matically_pinyin_str: {}, // 存放转成声调的字符串
 |  |        matically_pinyin_str: {}, // 存放转成声调的字符串
 | 
											
												
													
														|  |        res_arr: [],
 |  |        res_arr: [],
 | 
											
												
													
														|  | 
 |  | +      funList,
 | 
											
												
													
														|  |      };
 |  |      };
 | 
											
												
													
														|  |    },
 |  |    },
 | 
											
												
													
														|  |    watch: {
 |  |    watch: {
 | 
											
										
											
												
													
														|  | @@ -306,6 +315,30 @@ export default {
 | 
											
												
													
														|  |      width: 100%;
 |  |      width: 100%;
 | 
											
												
													
														|  |    }
 |  |    }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | 
 |  | +  .fun-type {
 | 
											
												
													
														|  | 
 |  | +    display: flex;
 | 
											
												
													
														|  | 
 |  | +    gap: 5px;
 | 
											
												
													
														|  | 
 |  | +    width: 100%;
 | 
											
												
													
														|  | 
 |  | +    padding-bottom: 10px;
 | 
											
												
													
														|  | 
 |  | +    border-bottom: 1px solid #e5e6eb;
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +    a {
 | 
											
												
													
														|  | 
 |  | +      padding: 5px 10px;
 | 
											
												
													
														|  | 
 |  | +      font-weight: normal;
 | 
											
												
													
														|  | 
 |  | +      color: #1d2129;
 | 
											
												
													
														|  | 
 |  | +      cursor: pointer;
 | 
											
												
													
														|  | 
 |  | +      background: #f2f3f5;
 | 
											
												
													
														|  | 
 |  | +      border: 1px solid #f2f3f5;
 | 
											
												
													
														|  | 
 |  | +      border-radius: 2px;
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +      &.active {
 | 
											
												
													
														|  | 
 |  | +        color: #165dff;
 | 
											
												
													
														|  | 
 |  | +        background: #e7eeff;
 | 
											
												
													
														|  | 
 |  | +        border-color: #165dff;
 | 
											
												
													
														|  | 
 |  | +      }
 | 
											
												
													
														|  | 
 |  | +    }
 | 
											
												
													
														|  | 
 |  | +  }
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  |    .tips {
 |  |    .tips {
 | 
											
												
													
														|  |      font-size: 12px;
 |  |      font-size: 12px;
 | 
											
												
													
														|  |      color: #999;
 |  |      color: #999;
 |