tanghc 3 years ago
parent
commit
11ba5bac03

+ 4 - 0
changelog.md

@@ -1,5 +1,9 @@
 # changelog
 
+## 1.3.1
+
+- 修复筛选表格后全选选中所有数据BUG
+
 ## 1.3.0
 
 - 支持C#变量,可生成C#文件

+ 5 - 1
front/src/views/generate/index.vue

@@ -196,10 +196,12 @@ export default {
   },
   methods: {
     tableRowClassName: function ({row, index}) {
+      row.hidden = false
       if (this.tableSearch.length === 0) {
         return ''
       }
       if (!(row.tableName && row.tableName.indexOf(this.tableSearch) > -1)) {
+        row.hidden = true
         return 'hidden-row';
       }
       return ''
@@ -225,7 +227,9 @@ export default {
       this.datasourceDlgShow = true
     },
     onTableListSelect(selectedRows) {
-      this.clientParam.tableNames = selectedRows.map(row => row.tableName)
+      this.clientParam.tableNames = selectedRows
+        .filter(row => row.hidden === undefined || row.hidden === false)
+        .map(row => row.tableName)
     },
     onTemplateListSelect(selectedRows) {
       this.clientParam.templateConfigIdList = selectedRows.map(row => row.id)

+ 1 - 1
gen/pom.xml

@@ -10,7 +10,7 @@
     </parent>
     <groupId>com.gitee.codegen</groupId>
     <artifactId>gen</artifactId>
-    <version>1.3.0</version>
+    <version>1.3.1</version>
     <description>一款代码生成器</description>
 
     <properties>

File diff suppressed because it is too large
+ 1 - 1
gen/src/main/resources/public/index.html


File diff suppressed because it is too large
+ 1 - 1
gen/src/main/resources/public/static/js/chunk-5fb3a2ba.87c9def0.js