Browse Source

bugfix: 8507

reaper 4 years ago
parent
commit
6ebad72d0c
1 changed files with 11 additions and 11 deletions
  1. 11 11
      src/components/knowledgeExtra/AddAssess/index.vue

+ 11 - 11
src/components/knowledgeExtra/AddAssess/index.vue

@@ -324,18 +324,18 @@ it .ql-editor,
             :rules="rules.fwbContent"
           >
             <!-- klScaleParent[${tableIndex}].klScaleSaveGroup[${scope.$index}].content -->
+            <!-- @change="
+                onEditorChange(
+                  $event,
+                  `klScaleParent[${tableIndex}].klScaleSaveGroup[0].content`
+                )
+              " -->
             <quillEditor
               :id="`klScaleParent[${tableIndex}].klScaleSaveGroup[0].content`"
               v-model="table.klScaleSaveGroup[0].content"
               :options="editorOption"
               class="ql-editor"
               ref="scalequillEditor"
-              @change="
-                onEditorChange(
-                  $event,
-                  `klScaleParent[${tableIndex}].klScaleSaveGroup[0].content`
-                )
-              "
             ></quillEditor>
           </el-form-item>
         </div>
@@ -586,11 +586,11 @@ export default {
         }
       );
     },
-    onEditorChange(e, ref) {
-      e.quill.deleteText(1000, 4);
-      console.log(e.quill.getLength());
-      this.$refs.scaleFormRef.clearValidate(ref);
-    },
+    // onEditorChange(e, ref) {
+    //   e.quill.deleteText(1000, 4);
+    //   console.log(e.quill.getLength());
+    //   this.$refs.scaleFormRef.clearValidate(ref);
+    // },
     assessCommitTest() {
       console.dir(this.formtParams());
     },