Эх сурвалжийг харах

flex列单页面bug解决

zhuth 7 жил өмнө
parent
commit
c3a0c9ab02

+ 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);