Przeglądaj źródła

限制 未选择下拉框数据源无法查询

张忠帅 1 rok temu
rodzic
commit
ba29b2ca73
1 zmienionych plików z 16 dodań i 14 usunięć
  1. 16 14
      wwwroot/mes/rpt/rpt304/rpt_index.html

+ 16 - 14
wwwroot/mes/rpt/rpt304/rpt_index.html

@@ -214,21 +214,23 @@
 
 
         //搜索提交
         //搜索提交
 		function tbSearchSubmit() {
 		function tbSearchSubmit() {
-            $('#DataGridMaster').datagridLoad({
-                title: '',
-                idField: 'SID',
-                queryParams: $('#ffMaster').serializeJson(),
-                url: 'rpt.ashx?m=master&id=' + request('id'),
-                fixWidth: 160,
-                mergeWidth: 100,
-                splitChar: '_',
-                columnMenu: '#btnColumnMenu',
-                columnMoving: true,
-				pagination: true,
-				pagelist: [10000, 50, 100, 50, 1000, 5000],
-                pageSize: 10000
+			if ($('#ffMaster').form("validate")) {
+				$('#DataGridMaster').datagridLoad({
+					title: '',
+					idField: 'SID',
+					queryParams: $('#ffMaster').serializeJson(),
+					url: 'rpt.ashx?m=master&id=' + request('id'),
+					fixWidth: 160,
+					mergeWidth: 100,
+					splitChar: '_',
+					columnMenu: '#btnColumnMenu',
+					columnMoving: true,
+					pagination: true,
+					pagelist: [10000, 50, 100, 50, 1000, 5000],
+					pageSize: 10000
 
 
-            });
+				});
+			};
         }
         }
 
 
 		//导出
 		//导出