Browse Source

字段必填标识

zhuth 7 years ago
parent
commit
4864770963
1 changed files with 3 additions and 2 deletions
  1. 3 2
      frontend/saas-web/app/util/FormUtil.js

+ 3 - 2
frontend/saas-web/app/util/FormUtil.js

@@ -54,9 +54,10 @@ Ext.define('saas.util.FormUtil', {
 
                         // 设置必填
                         if(item.allowBlank==false){
-                            //item.fieldLabel = "<font color=\"red\" style=\"position:relative; top:2px;right:2px; font-weight: bolder;\">*</font>"+item.fieldLabel;
+                            // TODO 需要判断类型
+                            item.beforeLabelTextTpl = "<font color=\"red\" style=\"position:relative; top:2px;right:2px; font-weight: bolder;\">*</font>";
                         }
-                        
+
                         // 如果是从表为其绑定store
                         if(item.xtype == 'detailGridField') {
                             item.bind = {