|
@@ -54,9 +54,10 @@ Ext.define('saas.util.FormUtil', {
|
|
|
|
|
|
|
|
// 设置必填
|
|
// 设置必填
|
|
|
if(item.allowBlank==false){
|
|
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
|
|
// 如果是从表为其绑定store
|
|
|
if(item.xtype == 'detailGridField') {
|
|
if(item.xtype == 'detailGridField') {
|
|
|
item.bind = {
|
|
item.bind = {
|