From 39c1dafced38faae3cc83679bd08dfd482ba08d3 Mon Sep 17 00:00:00 2001
From: RuoYi <yzz_ivy@163.com>
Date: Wed, 11 Mar 2026 14:38:42 +0800
Subject: [PATCH] update README.md
---
ruoyi-ui/src/views/tool/gen/index.vue | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/ruoyi-ui/src/views/tool/gen/index.vue b/ruoyi-ui/src/views/tool/gen/index.vue
index 972736b..d4dfa9b 100644
--- a/ruoyi-ui/src/views/tool/gen/index.vue
+++ b/ruoyi-ui/src/views/tool/gen/index.vue
@@ -87,9 +87,9 @@
<span>{{(queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1}}</span>
</template>
</el-table-column>
- <el-table-column label="表名称" align="center" prop="tableName" :show-overflow-tooltip="true" width="120" />
- <el-table-column label="表描述" align="center" prop="tableComment" :show-overflow-tooltip="true" width="120" />
- <el-table-column label="实体" align="center" prop="className" :show-overflow-tooltip="true" width="120" />
+ <el-table-column label="表名称" align="center" prop="tableName" :show-overflow-tooltip="true" width="140" />
+ <el-table-column label="表描述" align="center" prop="tableComment" :show-overflow-tooltip="true" width="140" />
+ <el-table-column label="实体" align="center" prop="className" :show-overflow-tooltip="true" width="140" />
<el-table-column label="创建时间" align="center" prop="createTime" sortable="custom" :sort-orders="['descending', 'ascending']" width="160" />
<el-table-column label="更新时间" align="center" prop="updateTime" sortable="custom" :sort-orders="['descending', 'ascending']" width="160" />
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
@@ -249,11 +249,12 @@
return
}
if(row.genType === "1") {
- genCode(row.tableName).then(response => {
+ genCode(row.tableName).then(() => {
this.$modal.msgSuccess("成功生成到自定义路径:" + row.genPath)
})
} else {
- this.$download.zip("/code/gen/batchGenCode?tables=" + tableNames, "ruoyi.zip")
+ const zipName = Array.isArray(tableNames) ? "ruoyi.zip" : tableNames + ".zip"
+ this.$download.zip("/code/gen/batchGenCode?tables=" + tableNames, zipName)
}
},
/** 同步数据库操作 */
--
Gitblit v1.9.3