Quellcode durchsuchen

从表只校验dirty数据

zhuth vor 7 Jahren
Ursprung
Commit
19695d332a
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      frontend/saas-web/app/view/core/form/field/DetailGridField.js

+ 2 - 2
frontend/saas-web/app/view/core/form/field/DetailGridField.js

@@ -27,7 +27,7 @@ Ext.define('saas.view.core.form.field.DetailGridField', {
     showIndex: true,
     configUrl: '',
     editable: true,
-    allowEmpty: false, // 校验时只校验dirty数据
+    allowEmpty: false, // 表格为空时校验合法
     showCount: true, // 显示合计栏
 
     initComponent: function() {
@@ -326,7 +326,7 @@ Ext.define('saas.view.core.form.field.DetailGridField', {
         var me = this,
         allowEmpty = me.allowEmpty;
         columns = me.columns,
-        data = allowEmpty ? me.getDirtyData() : me.getAllData(),
+        data = me.getDirtyData(),
         valid = allowEmpty;
 
         // 判断列必填