Browse Source

'有界面设置时附件类型校验报错'

zhuth 6 years ago
parent
commit
33f18dbf76
1 changed files with 5 additions and 6 deletions
  1. 5 6
      frontend/saas-web/app/util/FormUtil.js

+ 5 - 6
frontend/saas-web/app/util/FormUtil.js

@@ -216,12 +216,11 @@ Ext.define('saas.util.FormUtil', {
                             }
                         }
                     });
-                    
-                }
-                //附件名称的自定义字段 使用附件类型
-                if(item.fieldLabel == '附件' && item.name.indexOf('_text')>-1){
-                    item.xtype = 'mfilefield'
-                    form.renderMF = item.name
+                    //附件名称的自定义字段 使用附件类型
+                    if(item.fieldLabel == '附件' && item.name.indexOf('_text')>-1){
+                        item.xtype = 'mfilefield'
+                        form.renderMF = item.name
+                    }
                 }
             });