Browse Source

修正校对拼音数据类型

zq 11 months ago
parent
commit
14b398f4ad

+ 3 - 4
src/views/book/courseware/create/components/base/describe/Describe.vue

@@ -53,7 +53,6 @@ export default {
         }
       },
       deep: true,
-      immediate: true,
     },
   },
   methods: {
@@ -81,9 +80,9 @@ export default {
     // 填充校对后的拼音
     fillCorrectPinyin(selectContent, tonePinyin, i, j, k) {
       this.data.paragraph_list_parameter.pinyin_proofread_word_list.push({
-        paragraph_index: `${i}`,
-        sentence_index: `${j}`,
-        word_index: `${k}`,
+        paragraph_index: i,
+        sentence_index: j,
+        word_index: k,
         word: selectContent,
         pinyin: tonePinyin,
       });

+ 5 - 4
src/views/book/courseware/create/components/base/stem/Stem.vue

@@ -53,7 +53,6 @@ export default {
         }
       },
       deep: true,
-      immediate: true,
     },
   },
   methods: {
@@ -72,6 +71,8 @@ export default {
       this.data.paragraph_list_parameter.text = text.replace(/<[^>]+>/g, '');
       this.data.paragraph_list_parameter.is_first_sentence_first_hz_pinyin_first_char_upper_case =
         this.data.property.is_first_sentence_first_hz_pinyin_first_char_upper_case;
+
+      console.log(this.data.paragraph_list_parameter);
       CrateParsedTextInfo_Pinyin(this.data.paragraph_list_parameter).then((res) => {
         if (res.parsed_text) {
           this.data.paragraph_list = res.parsed_text.paragraph_list;
@@ -81,9 +82,9 @@ export default {
     // 填充校对后的拼音
     fillCorrectPinyin(selectContent, tonePinyin, i, j, k) {
       this.data.paragraph_list_parameter.pinyin_proofread_word_list.push({
-        paragraph_index: `${i}`,
-        sentence_index: `${j}`,
-        word_index: `${k}`,
+        paragraph_index: i,
+        sentence_index: j,
+        word_index: k,
         word: selectContent,
         pinyin: tonePinyin,
       });