huqi 5 лет назад
Родитель
Сommit
c7e8aa1ee1
1 измененных файлов с 7 добавлено и 1 удалено
  1. 7 1
      o2web/source/x_component_process_Xform/Documenteditor.js

+ 7 - 1
o2web/source/x_component_process_Xform/Documenteditor.js

@@ -659,7 +659,12 @@ MWF.xApplication.process.Xform.Documenteditor = MWF.APPDocumenteditor =  new Cla
     reSetEdit: function(control){
         //未进行数据绑定时,可允许编辑
         if (!control) var control = this.getEditControl();
-        if (!!this.json.subjectValueData && this.json.subjectValueType=="data") this.layout_subject.set("contenteditable", control.subject);
+        if (!this.json.subjectValueData && this.json.subjectValueType=="data"){
+            this.layout_subject.set("contenteditable", control.subject);
+            this.layout_subject.addEvent("blur", function(){
+                this.getData();
+            }.bind(this))
+        }
 
         // this.layout_subject.addEvent("keydown", function(e){
         //     debugger;
@@ -1938,6 +1943,7 @@ debugger;
     },
     getData: function(){
         //if (this.editMode){
+        debugger;
         if (this.layout_copies) this.data.copies = this.layout_copies.get("text");
         if (this.layout_secret) this.data.secret = this.layout_secret.get("text");
         if (this.layout_priority) this.data.priority = this.layout_priority.get("text");