| 
					
				 | 
			
			
				@@ -1,6 +1,28 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 <!--  --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 <template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   <div class="seg-word-config"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <div class="adult-book-input-item" v-if="curQue" style="margin-top:10px"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <span class="adult-book-lable">字的大小:</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <el-radio-group v-model="curQue.resetFontsize" @input="changeResetFontsize"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <el-radio label="12px">12px</el-radio> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <el-radio label="16px">16px</el-radio> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <el-radio label="20px">20px</el-radio> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <el-radio label="24px">24px</el-radio> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <el-radio label="28px">28px</el-radio> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </el-radio-group> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <div class="adult-book-input-item" v-if="curQue"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <span class="adult-book-lable">字体:</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <el-radio-group v-model="curQue.resetFontfamily" @input="changeResetFontfamily"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              <el-radio 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                v-for="(item, index) in fontFamilyList" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                :key="'fontFamilyList' + index" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                :label="item.value" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                <span>{{ item.name }}</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              </el-radio> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            </el-radio-group> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <el-table :data="data" border style="width: 75%"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <el-table-column prop="chs" label="词" width="120"> </el-table-column> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <el-table-column label="拼音" width="220"> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -65,7 +87,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <span class="adult-book-lable">设置下划线:</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <el-checkbox v-model="scope.row.underLine">显示下划线</el-checkbox> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          <div class="adult-book-input-item" v-if="type!='dialogue_answer_chs'"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <div class="adult-book-input-item" v-if="type!='dialogue_answer_chs'&&type!='sentence_input_chs'&&type!='sentence_judge_chs'&&type!='sentence_record_chs'&&type!='sentence_input_record_chs'&&type!='sentence_listen_read_chs'"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <span class="adult-book-lable">设置间距:</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <el-checkbox-group v-model="scope.row.wordPadding"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               <el-checkbox 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -88,7 +110,7 @@ import "@/utils/pinyin_dict_withtone"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import "@/utils/pinyinUtil"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   components: {}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  props: ["data", "type"], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  props: ["data", "type", "curQue"], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   data() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     return { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       colorList: [ 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -138,11 +160,30 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       let result = pinyinUtil.getPinyin(item.chs); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       item.pinyin = result; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    changeResetFontsize(value){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.data.forEach(item => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            item.fontSize = value 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    changeResetFontfamily(value){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.data.forEach(item => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            item.fontFamily = value 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   //生命周期 - 创建完成(可以访问当前this实例) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   created() {}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   //生命周期 - 挂载完成(可以访问DOM元素) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  mounted() {}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  mounted() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    if(this.curQue){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (!this.curQue.hasOwnProperty("resetFontsize")) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.$set(this.curQue, "resetFontsize", ''); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (!this.curQue.hasOwnProperty("resetFontfamily")) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.$set(this.curQue, "resetFontfamily", 'FZJCGFKTK'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   beforeCreate() {}, //生命周期 - 创建之前 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   beforeMount() {}, //生命周期 - 挂载之前 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   beforeUpdate() {}, //生命周期 - 更新之前 
			 |