Browse Source

Merge branch 'master' of http://221.216.211.14:3000/GCLS/GCLS_Page_Book_Component_NPC

natasha 3 năm trước cách đây
mục cha
commit
78df597a63
1 tập tin đã thay đổi với 16 bổ sung0 xóa
  1. 16 0
      src/components/Adult/inputModules/PurePreview.vue

+ 16 - 0
src/components/Adult/inputModules/PurePreview.vue

@@ -135,6 +135,13 @@
                 />
               </div>
             </template>
+            <div class="adult-book-input-item">
+              <span class="adult-book-lable">配置:</span>
+              <el-radio-group v-model="item.type" @change="forupdata">
+                <el-radio label="mh">描红</el-radio>
+                <el-radio label="lm">临摹</el-radio>
+              </el-radio-group>
+            </div>
           </template>
         </div>
       </template>
@@ -278,6 +285,7 @@ export default {
             con: "", //生字
             en: "",
             pinyin: "", //拼音
+            type: "lm",
           },
         ],
         numberList: {
@@ -337,6 +345,9 @@ export default {
   watch: {},
   //方法集合
   methods: {
+    forupdata() {
+      this.$forceUpdate();
+    },
     // 添加音节
     addyinjie(index) {
       let obj = JSON.parse(JSON.stringify(this.data_structure3[0].option[0]));
@@ -507,6 +518,11 @@ export default {
           ],
         };
         this.$set(this.curQue, "numberList", obj);
+        this.curQue.option.forEach((item) => {
+          if (!item.type) {
+            item.type = "lm";
+          }
+        });
       }
     }
   },