From 4f113d1862ee978e7d0756f31af79ad73b1dc6d7 Mon Sep 17 00:00:00 2001
From: Junjie <540245094@qq.com>
Date: 星期四, 12 九月 2024 16:33:39 +0800
Subject: [PATCH] #

---
 zy-asrs-framework/src/main/java/com/zy/asrs/framework/generators/VueGenerator.java |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/zy-asrs-framework/src/main/java/com/zy/asrs/framework/generators/VueGenerator.java b/zy-asrs-framework/src/main/java/com/zy/asrs/framework/generators/VueGenerator.java
index 8a3488f..e04e49e 100644
--- a/zy-asrs-framework/src/main/java/com/zy/asrs/framework/generators/VueGenerator.java
+++ b/zy-asrs-framework/src/main/java/com/zy/asrs/framework/generators/VueGenerator.java
@@ -783,15 +783,18 @@
             sb.append("        {\n")
                     .append("            title: formatMessage('db.").append(table).append(".").append(column.getName()).append("', '").append(column.getComment()).append("'),").append("\n")
                     .append("            dataIndex: '");
+            StringBuilder rowKey = new StringBuilder();
             if ("Date".equals(column.getType()) || !Cools.isEmpty(column.getEnums()) || !Cools.isEmpty(column.getForeignKeyMajor())){
                 // 鏃堕棿銆佹灇涓�  鏍煎紡鍖�  涓婚敭淇グ
-                sb.append(column.getHumpName()).append("\\$");
+                rowKey.append(column.getHumpName()).append("\\$");
             } else {
-                sb.append(column.getHumpName());
+                rowKey.append(column.getHumpName());
             }
+            sb.append(rowKey);
             sb.append("',\n")
                     .append("            width: 140,\n")
-                    .append("            ellipsis: true,\n");
+                    .append("            ellipsis: true,\n")
+                    .append("            ...getColumnSearchProps('").append(rowKey).append("'),\n");
 //            if (!Cools.isEmpty(column.getEnums())) {
 //                sb.append("                customRender: (column) => {\n");
 //                sb.append("                  let typeMap = {");

--
Gitblit v1.9.1