|
@@ -2,7 +2,7 @@
|
|
|
<template>
|
|
|
<div class="Big-Book-SentenceModule" v-if="curQueItem">
|
|
|
<div class="Big-Book-top">
|
|
|
- <span>序号</span>
|
|
|
+ <span class="NPC-lable-80">序号</span>
|
|
|
<el-input
|
|
|
type="textarea"
|
|
|
autosize
|
|
@@ -22,15 +22,37 @@
|
|
|
<div class="NPC-sentence-Segword">
|
|
|
<SentenceSegwordChs :curQue="curQueItem.detail" />
|
|
|
</div>
|
|
|
- <div class="Big-Book-top">
|
|
|
- <span>答案</span>
|
|
|
- <el-input
|
|
|
- type="textarea"
|
|
|
- autosize
|
|
|
- placeholder="请输入答案"
|
|
|
- v-model="curQueItem.answer"
|
|
|
- @blur="onBlur(curQueItem, 'answer')"
|
|
|
- ></el-input>
|
|
|
+ <div class="Big-Book-top" v-if="type == 'sentence_input'">
|
|
|
+ <span class="NPC-lable-80">答案</span>
|
|
|
+ <div
|
|
|
+ class="NPC-sentence-input-box"
|
|
|
+ v-for="(ansItem, ansIndex) in curQueItem.answer"
|
|
|
+ :key="'answer' + ansIndex"
|
|
|
+ >
|
|
|
+ <el-input
|
|
|
+ class="NPC-sentence-input"
|
|
|
+ type="textarea"
|
|
|
+ autosize
|
|
|
+ placeholder="请输入答案"
|
|
|
+ v-model="curQueItem.answer[ansIndex]"
|
|
|
+ @blur="onBlurIndex(ansIndex, 'answer')"
|
|
|
+ ></el-input>
|
|
|
+ <i class="el-icon-circle-close"></i>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="Big-Book-top" style="padding-left: 100px">
|
|
|
+ <el-button size="mini" type="primary" icon="el-icon-plus"
|
|
|
+ >添加答案</el-button
|
|
|
+ >
|
|
|
+ </div>
|
|
|
+ <div class="Big-Book-top" v-if="type == 'sentence_judge'">
|
|
|
+ <span class="NPC-lable-80">判断:</span>
|
|
|
+ <el-radio v-model="curQueItem.judge" :label="true">正确</el-radio>
|
|
|
+ <el-radio v-model="curQueItem.judge" :label="false">错误</el-radio>
|
|
|
+ </div>
|
|
|
+ <div class="Big-Book-top" v-if="type == 'sentence_record'">
|
|
|
+ <span class="NPC-lable-80">录音组件:</span>
|
|
|
+ <img src="../../../assets/adult/mini.png" alt="" />
|
|
|
</div>
|
|
|
<div class="Big-Book-top" v-if="type == 'recordHZ_inputPY_chs'">
|
|
|
<span>录音</span>
|
|
@@ -44,7 +66,7 @@
|
|
|
<img src="../../../assets/adult/pro-plus.png" alt="" />
|
|
|
</div>
|
|
|
<div class="Big-Book-top" v-if="type == 'inputItem_chs'">
|
|
|
- <span>音频</span>
|
|
|
+ <span class="NPC-lable-80">音频</span>
|
|
|
<Upload
|
|
|
:changeFillId="changeMp3"
|
|
|
:datafileList="fileCon.mp3_list"
|
|
@@ -118,7 +140,6 @@ export default {
|
|
|
},
|
|
|
// 修改正确答案
|
|
|
changeIsAnswer(type) {
|
|
|
- debugger;
|
|
|
this.changAnswer(this.index, type);
|
|
|
},
|
|
|
// 点击生成拼音
|
|
@@ -243,6 +264,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
&-SentenceModule {
|
|
|
// display: flex;
|
|
|
// justify-content: flex-start;
|
|
@@ -274,6 +296,11 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+.NPC-sentence-input-box {
|
|
|
+ display: flex;
|
|
|
+ justify-content: flex-start;
|
|
|
+ align-items: flex-start;
|
|
|
+}
|
|
|
</style>
|
|
|
<style lang="scss">
|
|
|
.Big-Book-SentenceModule {
|
|
@@ -288,4 +315,14 @@ export default {
|
|
|
// margin-right: 15px;
|
|
|
}
|
|
|
}
|
|
|
+.NPC-sentence-input-box {
|
|
|
+ .NPC-sentence-input {
|
|
|
+ margin-right: 10px;
|
|
|
+ }
|
|
|
+ > i {
|
|
|
+ width: 24px;
|
|
|
+ height: 24px;
|
|
|
+ cursor: pointer;
|
|
|
+ }
|
|
|
+}
|
|
|
</style>
|