| 
					
				 | 
			
			
				@@ -30,7 +30,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <el-input v-model="item.content" :placeholder="'输入汉字或词汇'" @blur="handleChineseStrokes(item, i)" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <el-input 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               v-model="item.pinyin" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              :placeholder="data.property.learn_type === 'dictation' ? '拼音间用空格隔开' : '输入拼音'" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              :placeholder="'拼音间用空格隔开'" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               @blur="handleSplitPy(item)" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               @change="changePinyin(item)" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             /> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -154,6 +154,7 @@ import UploadAudio from '../common/UploadAudio.vue'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import SoundRecord from '../common/SoundRecord.vue'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { GetStaticResources } from '@/api/app'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { changeOptionType, handleInputNumber } from '@/views/exercise_questions/data/common'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import { getRandomNumber } from '@/utils/index'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   chineseData, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -319,6 +320,36 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         item.audio_file_id = ''; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * 智能识别 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * @param {String} text 识别数据 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    recognition(text) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      let arr = text 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        .split(/[\r\n]/) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        .map((item) => item.trim()) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        .filter((item) => item); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      if (arr.length > 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.data.stem = arr[0]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.data.option_list = []; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        arr.slice(1).map((content, index) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          let content_item = content.split('&&'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.data.option_list.push({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            content: content_item[0] ? content_item[0] : '', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            mark: getRandomNumber(), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            audio_file_id: '', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            pinyin: content_item[1] ? content_item[1] : '', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            pinyin_item_list: [], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            definition: content_item[2] ? content_item[2] : '', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            collocation: content_item[3] ? content_item[3] : '', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            hz_strokes_list: [], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.handleSplitPy(this.data.option_list[index]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.handleChineseStrokes(this.data.option_list[index], index); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 }; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 </script> 
			 |