Explorar el Código

多个从表只有第一个从表有默认空行的bug

zhuth hace 7 años
padre
commit
b44fcb174a
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      frontend/saas-web/app/view/core/form/FormPanel.js

+ 1 - 1
frontend/saas-web/app/view/core/form/FormPanel.js

@@ -324,7 +324,7 @@ Ext.define('saas.view.core.form.FormPanel', {
 
 
         for (var i = 0; i < detailGrids.length; i++) {
         for (var i = 0; i < detailGrids.length; i++) {
             var detailData = formData['detail' + i] || [];
             var detailData = formData['detail' + i] || [];
-            me.setDetailData(detailData);
+            me.setDetailData(detailData, i);
         }
         }
     },
     },