Browse Source

反审核字段全部变成可编辑问题处理

rainco 7 years ago
parent
commit
a6ba1f620e
1 changed files with 5 additions and 1 deletions
  1. 5 1
      frontend/saas-web/app/view/core/form/FormPanel.js

+ 5 - 1
frontend/saas-web/app/view/core/form/FormPanel.js

@@ -379,6 +379,10 @@ Ext.define('saas.view.core.form.FormPanel', {
                 return;
             }
 
+            if(item.readOnly){
+                item.defaultReadOnly = item.readOnly;
+            }
+
             if (bind) {
                 if (!Ext.isString(bind)) {
                     Ext.apply(bind, {
@@ -433,7 +437,7 @@ Ext.define('saas.view.core.form.FormPanel', {
 
         Ext.Array.each(items, function(item) {
             if(typeof item.setReadOnly  == 'function') {
-               item.setReadOnly (item.readOnly || !able);
+               item.setReadOnly (item.defaultReadOnly || !able);
             }
         });
     },