|  | @@ -14,16 +14,11 @@
 | 
	
		
			
				|  |  |        <div class="content">
 | 
	
		
			
				|  |  |          <label class="title-little">题目:</label>
 | 
	
		
			
				|  |  |          <ul>
 | 
	
		
			
				|  |  | -          <li
 | 
	
		
			
				|  |  | -            v-for="(item, i) in data.option_list"
 | 
	
		
			
				|  |  | -            :key="i"
 | 
	
		
			
				|  |  | -            v-loading="loading_list[i] ? loading_list[i].loadings : false"
 | 
	
		
			
				|  |  | -            class="content-item"
 | 
	
		
			
				|  |  | -          >
 | 
	
		
			
				|  |  | +          <li v-for="(item, i) in data.option_list" :key="i" class="content-item">
 | 
	
		
			
				|  |  |              <span class="question-number" title="双击切换序号类型" @dblclick="changeOptionType(data)">
 | 
	
		
			
				|  |  |                {{ computedQuestionNumber(i, data.option_number_show_mode) }}
 | 
	
		
			
				|  |  |              </span>
 | 
	
		
			
				|  |  | -            <el-input v-model="item.content" :placeholder="'输入汉字或词汇'" @blur="handleChineseStrokes(item, i)" />
 | 
	
		
			
				|  |  | +            <el-input v-model="item.content" :placeholder="'输入汉字或词汇'" />
 | 
	
		
			
				|  |  |              <el-input
 | 
	
		
			
				|  |  |                v-model="item.pinyin"
 | 
	
		
			
				|  |  |                :placeholder="'拼音间用空格隔开'"
 | 
	
	
		
			
				|  | @@ -143,15 +138,12 @@ export default {
 | 
	
		
			
				|  |  |        loading_list: [
 | 
	
		
			
				|  |  |          {
 | 
	
		
			
				|  |  |            loading: false,
 | 
	
		
			
				|  |  | -          loadings: false,
 | 
	
		
			
				|  |  |          },
 | 
	
		
			
				|  |  |          {
 | 
	
		
			
				|  |  |            loading: false,
 | 
	
		
			
				|  |  | -          loadings: false,
 | 
	
		
			
				|  |  |          },
 | 
	
		
			
				|  |  |          {
 | 
	
		
			
				|  |  |            loading: false,
 | 
	
		
			
				|  |  | -          loadings: false,
 | 
	
		
			
				|  |  |          },
 | 
	
		
			
				|  |  |        ],
 | 
	
		
			
				|  |  |        matically_pinyin_obj: {}, // 存放转成声调的拼音
 | 
	
	
		
			
				|  | @@ -164,7 +156,6 @@ export default {
 | 
	
		
			
				|  |  |          for (let i = 0; i < val; i++) {
 | 
	
		
			
				|  |  |            let obj = {
 | 
	
		
			
				|  |  |              loading: false,
 | 
	
		
			
				|  |  | -            loadings: false,
 | 
	
		
			
				|  |  |            };
 | 
	
		
			
				|  |  |            this.loading_list.push(obj);
 | 
	
		
			
				|  |  |          }
 | 
	
	
		
			
				|  | @@ -179,7 +170,6 @@ export default {
 | 
	
		
			
				|  |  |        this.data.option_list.push(getOption());
 | 
	
		
			
				|  |  |        this.loading_list.push({
 | 
	
		
			
				|  |  |          loading: false,
 | 
	
		
			
				|  |  | -        loadings: false,
 | 
	
		
			
				|  |  |        });
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      uploads(file_id, index) {
 | 
	
	
		
			
				|  | @@ -225,37 +215,7 @@ export default {
 | 
	
		
			
				|  |  |            });
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | -    // 生成汉字
 | 
	
		
			
				|  |  | -    handleChineseStrokes(item, i) {
 | 
	
		
			
				|  |  | -      if (item.content.trim()) {
 | 
	
		
			
				|  |  | -        this.loading_list[i].loadings = true;
 | 
	
		
			
				|  |  | -        let content_arr = item.content.trim().split('');
 | 
	
		
			
				|  |  | -        let content_arrs = [];
 | 
	
		
			
				|  |  | -        let content_arr_strokes = [];
 | 
	
		
			
				|  |  | -        content_arr.forEach((itemc) => {
 | 
	
		
			
				|  |  | -          if (itemc.trim()) {
 | 
	
		
			
				|  |  | -            content_arrs.push(itemc.trim());
 | 
	
		
			
				|  |  | -          }
 | 
	
		
			
				|  |  | -        });
 | 
	
		
			
				|  |  | -        content_arrs.forEach((itemc, indexc) => {
 | 
	
		
			
				|  |  | -          content_arr_strokes.push(null);
 | 
	
		
			
				|  |  | -          let MethodName = 'hz_resource_manager-GetHZStrokesContent';
 | 
	
		
			
				|  |  | -          let data = {
 | 
	
		
			
				|  |  | -            hz: itemc,
 | 
	
		
			
				|  |  | -          };
 | 
	
		
			
				|  |  | -          GetStaticResources(MethodName, data).then((res) => {
 | 
	
		
			
				|  |  | -            let obj = {
 | 
	
		
			
				|  |  | -              hz: itemc.trim(),
 | 
	
		
			
				|  |  | -              strokes: res,
 | 
	
		
			
				|  |  | -            };
 | 
	
		
			
				|  |  | -            content_arr_strokes[indexc] = obj;
 | 
	
		
			
				|  |  | -          });
 | 
	
		
			
				|  |  | -        });
 | 
	
		
			
				|  |  | -        this.loading_list[i].loadings = false;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -        item.hz_strokes_list = content_arr_strokes;
 | 
	
		
			
				|  |  | -      }
 | 
	
		
			
				|  |  | -    },
 | 
	
		
			
				|  |  |      // 切割拼音
 | 
	
		
			
				|  |  |      handleSplitPy(item) {
 | 
	
		
			
				|  |  |        let index = item.pinyin.search(/0|1|2|3|4/);
 | 
	
	
		
			
				|  | @@ -344,12 +304,8 @@ export default {
 | 
	
		
			
				|  |  |              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);
 | 
	
		
			
				|  |  |          });
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  |      },
 |