浏览代码

flex列单页面bug解决

zhuth 7 年之前
父节点
当前提交
c3a0c9ab02
共有 1 个文件被更改,包括 6 次插入4 次删除
  1. 6 4
      frontend/saas-web/app/util/FormUtil.js

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

@@ -113,10 +113,12 @@ Ext.define('saas.util.FormUtil', {
                                 }
                             });
 
-                            columns.push({
-                                flex: 1,
-                                allowBlank: true
-                            });
+                            if(columns[columns.length - 1].flex != 1) {
+                                columns.push({
+                                    flex: 1,
+                                    allowBlank: true
+                                });
+                            }
 
                             cnames.push(item.detnoColumn);