|  | @@ -10,25 +10,47 @@
 | 
	
		
			
				|  |  |          <el-input
 | 
	
		
			
				|  |  |            class="adult-book-input"
 | 
	
		
			
				|  |  |            type="textarea"
 | 
	
		
			
				|  |  | -          autosize
 | 
	
		
			
				|  |  | +          :autosize="{ minRows: 2 }"
 | 
	
		
			
				|  |  |            placeholder="请输入标题"
 | 
	
		
			
				|  |  |            v-model="curQue.title"
 | 
	
		
			
				|  |  |            @blur="onBlur(curQue, 'title')"
 | 
	
		
			
				|  |  |          ></el-input>
 | 
	
		
			
				|  |  |        </div>
 | 
	
		
			
				|  |  | +      <template v-if="type == 'listen_record_single_syllable_chs'">
 | 
	
		
			
				|  |  | +        <div class="adult-book-input-item">
 | 
	
		
			
				|  |  | +          <span class="adult-book-lable">序号:</span>
 | 
	
		
			
				|  |  | +          <el-input
 | 
	
		
			
				|  |  | +            class="adult-book-input"
 | 
	
		
			
				|  |  | +            type="textarea"
 | 
	
		
			
				|  |  | +            :autosize="{ minRows: 2 }"
 | 
	
		
			
				|  |  | +            placeholder="请输入序号"
 | 
	
		
			
				|  |  | +            v-model="curQue.number"
 | 
	
		
			
				|  |  | +            @blur="onBlur(curQue, 'number')"
 | 
	
		
			
				|  |  | +          ></el-input>
 | 
	
		
			
				|  |  | +        </div>
 | 
	
		
			
				|  |  | +        <div class="adult-book-input-item">
 | 
	
		
			
				|  |  | +          <span class="adult-book-lable">音频:</span>
 | 
	
		
			
				|  |  | +          <Upload
 | 
	
		
			
				|  |  | +            :changeFillId="timuchangeMp3"
 | 
	
		
			
				|  |  | +            :datafileList="curQue.mp3_list"
 | 
	
		
			
				|  |  | +            :filleNumber="mp3Number"
 | 
	
		
			
				|  |  | +            :uploadType="'mp3'"
 | 
	
		
			
				|  |  | +          />
 | 
	
		
			
				|  |  | +        </div>
 | 
	
		
			
				|  |  | +      </template>
 | 
	
		
			
				|  |  |        <div
 | 
	
		
			
				|  |  |          class="Big-Book-main"
 | 
	
		
			
				|  |  |          v-for="(item, index) in curQue.option"
 | 
	
		
			
				|  |  |          :key="item + index"
 | 
	
		
			
				|  |  |          style="margin-bottom: 20px"
 | 
	
		
			
				|  |  |        >
 | 
	
		
			
				|  |  | -        <template v-if="this.type == 'text_problem_chs'">
 | 
	
		
			
				|  |  | +        <template v-if="type == 'text_problem_chs'">
 | 
	
		
			
				|  |  |            <div class="adult-book-input-item">
 | 
	
		
			
				|  |  |              <span class="adult-book-lable">序号:</span>
 | 
	
		
			
				|  |  |              <el-input
 | 
	
		
			
				|  |  |                class="adult-book-input"
 | 
	
		
			
				|  |  |                type="textarea"
 | 
	
		
			
				|  |  | -              autosize
 | 
	
		
			
				|  |  | +              :autosize="{ minRows: 2 }"
 | 
	
		
			
				|  |  |                placeholder="请输入序号"
 | 
	
		
			
				|  |  |                v-model="item.number"
 | 
	
		
			
				|  |  |                @blur="onBlur(item, 'number')"
 | 
	
	
		
			
				|  | @@ -44,13 +66,13 @@
 | 
	
		
			
				|  |  |              <SentenceSegwordChs :curQue="item.detail" />
 | 
	
		
			
				|  |  |            </div>
 | 
	
		
			
				|  |  |          </template>
 | 
	
		
			
				|  |  | -        <template v-if="this.type == 'newWord_preview_chs'">
 | 
	
		
			
				|  |  | +        <template v-if="type == 'newWord_preview_chs'">
 | 
	
		
			
				|  |  |            <div class="adult-book-input-item">
 | 
	
		
			
				|  |  |              <span class="adult-book-lable">拼音:</span>
 | 
	
		
			
				|  |  |              <el-input
 | 
	
		
			
				|  |  |                class="adult-book-input"
 | 
	
		
			
				|  |  |                type="textarea"
 | 
	
		
			
				|  |  | -              autosize
 | 
	
		
			
				|  |  | +              :autosize="{ minRows: 2 }"
 | 
	
		
			
				|  |  |                placeholder="请输入拼音"
 | 
	
		
			
				|  |  |                v-model="item.pinyin"
 | 
	
		
			
				|  |  |                @blur="onBlur(item, 'pinyin')"
 | 
	
	
		
			
				|  | @@ -67,7 +89,7 @@
 | 
	
		
			
				|  |  |              <el-input
 | 
	
		
			
				|  |  |                class="adult-book-input"
 | 
	
		
			
				|  |  |                type="textarea"
 | 
	
		
			
				|  |  | -              autosize
 | 
	
		
			
				|  |  | +              :autosize="{ minRows: 2 }"
 | 
	
		
			
				|  |  |                placeholder="请输入生字"
 | 
	
		
			
				|  |  |                v-model="item.con"
 | 
	
		
			
				|  |  |                @blur="onBlur(item, 'con')"
 | 
	
	
		
			
				|  | @@ -80,7 +102,26 @@
 | 
	
		
			
				|  |  |                :datafileList="item.mp3_list"
 | 
	
		
			
				|  |  |                :filleNumber="mp3Number"
 | 
	
		
			
				|  |  |                :uploadType="'mp3'"
 | 
	
		
			
				|  |  | -              :index='index'
 | 
	
		
			
				|  |  | +              :index="index"
 | 
	
		
			
				|  |  | +            />
 | 
	
		
			
				|  |  | +          </div>
 | 
	
		
			
				|  |  | +        </template>
 | 
	
		
			
				|  |  | +        <template v-if="type == 'listen_record_single_syllable_chs'">
 | 
	
		
			
				|  |  | +          <div class="adult-book-input-item">
 | 
	
		
			
				|  |  | +            <span class="adult-book-lable">拼音:</span>
 | 
	
		
			
				|  |  | +            <el-input
 | 
	
		
			
				|  |  | +              class="adult-book-input"
 | 
	
		
			
				|  |  | +              type="textarea"
 | 
	
		
			
				|  |  | +              :autosize="{ minRows: 2 }"
 | 
	
		
			
				|  |  | +              placeholder="请输入拼音"
 | 
	
		
			
				|  |  | +              v-model="item.pinyin"
 | 
	
		
			
				|  |  | +              @blur="onBlur(item, 'pinyin')"
 | 
	
		
			
				|  |  | +            ></el-input>
 | 
	
		
			
				|  |  | +            <img
 | 
	
		
			
				|  |  | +              @click="deleteOptionOne"
 | 
	
		
			
				|  |  | +              class="close"
 | 
	
		
			
				|  |  | +              src="../../../assets/adult/del-close.png"
 | 
	
		
			
				|  |  | +              alt=""
 | 
	
		
			
				|  |  |              />
 | 
	
		
			
				|  |  |            </div>
 | 
	
		
			
				|  |  |          </template>
 | 
	
	
		
			
				|  | @@ -151,6 +192,18 @@ export default {
 | 
	
		
			
				|  |  |            },
 | 
	
		
			
				|  |  |          ],
 | 
	
		
			
				|  |  |        },
 | 
	
		
			
				|  |  | +      data_structure3: {
 | 
	
		
			
				|  |  | +        type: "listen_record_single_syllable_chs",
 | 
	
		
			
				|  |  | +        name: "听录音选择音节",
 | 
	
		
			
				|  |  | +        title: "",
 | 
	
		
			
				|  |  | +        mp3_list: [],
 | 
	
		
			
				|  |  | +        number: "",
 | 
	
		
			
				|  |  | +        option: [
 | 
	
		
			
				|  |  | +          {
 | 
	
		
			
				|  |  | +            pinyin: "", //拼音
 | 
	
		
			
				|  |  | +          },
 | 
	
		
			
				|  |  | +        ],
 | 
	
		
			
				|  |  | +      },
 | 
	
		
			
				|  |  |      };
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    computed: {},
 | 
	
	
		
			
				|  | @@ -171,7 +224,13 @@ export default {
 | 
	
		
			
				|  |  |      // 新增选项
 | 
	
		
			
				|  |  |      addOption() {
 | 
	
		
			
				|  |  |        let obj;
 | 
	
		
			
				|  |  | -      obj = JSON.parse(JSON.stringify(this.data_structure.option[0]));
 | 
	
		
			
				|  |  | +      if (this.type == "newWord_preview_chs") {
 | 
	
		
			
				|  |  | +        obj = JSON.parse(JSON.stringify(this.data_structure2.option[0]));
 | 
	
		
			
				|  |  | +      } else if (this.type == "text_problem_chs") {
 | 
	
		
			
				|  |  | +        obj = JSON.parse(JSON.stringify(this.data_structure.option[0]));
 | 
	
		
			
				|  |  | +      } else if (this.type == "listen_record_single_syllable_chs") {
 | 
	
		
			
				|  |  | +        obj = JSON.parse(JSON.stringify(this.data_structure3.option[0]));
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  |        this.curQue.option.push(obj);
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      initcurQue() {
 | 
	
	
		
			
				|  | @@ -180,10 +239,12 @@ export default {
 | 
	
		
			
				|  |  |          data = JSON.parse(JSON.stringify(this.data_structure2));
 | 
	
		
			
				|  |  |        } else if (this.type == "text_problem_chs") {
 | 
	
		
			
				|  |  |          data = JSON.parse(JSON.stringify(this.data_structure));
 | 
	
		
			
				|  |  | +      } else if (this.type == "listen_record_single_syllable_chs") {
 | 
	
		
			
				|  |  | +        data = JSON.parse(JSON.stringify(this.data_structure3));
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  |        this.changeCurQue(data);
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | -    changeMp3(fileList,item,index) {
 | 
	
		
			
				|  |  | +    changeMp3(fileList, item, index) {
 | 
	
		
			
				|  |  |        const articleImgList = JSON.parse(JSON.stringify(fileList));
 | 
	
		
			
				|  |  |        const articleImgRes = [];
 | 
	
		
			
				|  |  |        articleImgList.forEach((item) => {
 | 
	
	
		
			
				|  | @@ -198,7 +259,25 @@ export default {
 | 
	
		
			
				|  |  |            articleImgRes.push(obj);
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |        });
 | 
	
		
			
				|  |  | -      this.curQue.option[index].mp3_list = JSON.parse(JSON.stringify(articleImgRes));
 | 
	
		
			
				|  |  | +      this.curQue.option[index].mp3_list = JSON.parse(
 | 
	
		
			
				|  |  | +        JSON.stringify(articleImgRes)
 | 
	
		
			
				|  |  | +      );
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +    timuchangeMp3(fileList) {
 | 
	
		
			
				|  |  | +      const articleImgList = JSON.parse(JSON.stringify(fileList));
 | 
	
		
			
				|  |  | +      const articleImgRes = [];
 | 
	
		
			
				|  |  | +      articleImgList.forEach((item) => {
 | 
	
		
			
				|  |  | +        if (item.response) {
 | 
	
		
			
				|  |  | +          const obj = {
 | 
	
		
			
				|  |  | +            name: item.name,
 | 
	
		
			
				|  |  | +            url: item.response.file_info_list[0].file_url,
 | 
	
		
			
				|  |  | +            id: "[FID##" + item.response.file_info_list[0].file_id + "##FID]",
 | 
	
		
			
				|  |  | +            media_duration: item.response.file_info_list[0].media_duration, //音频时长
 | 
	
		
			
				|  |  | +          };
 | 
	
		
			
				|  |  | +          articleImgRes.push(obj);
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +      });
 | 
	
		
			
				|  |  | +      this.curQue.mp3_list = JSON.parse(JSON.stringify(articleImgRes));
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    //生命周期 - 创建完成(可以访问当前this实例)
 |