Bladeren bron

!19 修复批量生成代码拼接问题
修复批量生成代码拼接问题

sunkaichun 6 jaren geleden
bovenliggende
commit
08f200022a
1 gewijzigde bestanden met toevoegingen van 5 en 5 verwijderingen
  1. 5 5
      src/main/resources/static/js/appjs/common/generator/list.js

+ 5 - 5
src/main/resources/static/js/appjs/common/generator/list.js

@@ -83,11 +83,11 @@ function batchCode() {
 	var tables = '';
 	// 遍历所有选择的行数据,取每条数据对应的ID
 	$.each(rows, function(i, row) {
-		if(tables){
-			tables = row['tableName'];
-		}else{
-			tables = tables + ',' + rows['tableName'];
-		}
+        if(tables){
+            tables = tables + ',' + row['tableName'];
+        }else{
+            tables = row['tableName'];
+        }
 	});
 	location.href = prefix + "/batchCode?tables=" + tables;
 }