From 8473e7a4e41b827576bed432f578235182e9ac91 Mon Sep 17 00:00:00 2001 From: "20932067@zju.edu.cn" Date: Fri, 22 Jan 2021 21:51:38 +0800 Subject: [PATCH] 11 --- hchyun-ui/package.json | 1 + hchyun-ui/src/views/tool/gen/editTable.vue | 7 +- hchyun-ui/src/views/tool/gen/genInfoForm.vue | 179 ++++++++++++------ hchyun-ui/src/views/tool/gen/index.vue | 32 +++- .../hchyun/common/core/entity/BaseEntity.java | 9 +- 5 files changed, 165 insertions(+), 63 deletions(-) diff --git a/hchyun-ui/package.json b/hchyun-ui/package.json index 59170c9..b0200c2 100644 --- a/hchyun-ui/package.json +++ b/hchyun-ui/package.json @@ -47,6 +47,7 @@ "fuse.js": "3.4.4", "js-cookie": "2.2.0", "jsencrypt": "3.0.0-rc.1", + "highlight.js": "9.18.5", "normalize.css": "7.0.0", "nprogress": "0.2.0", "path-to-regexp": "2.4.0", diff --git a/hchyun-ui/src/views/tool/gen/editTable.vue b/hchyun-ui/src/views/tool/gen/editTable.vue index 0cb18d8..5b01b46 100644 --- a/hchyun-ui/src/views/tool/gen/editTable.vue +++ b/hchyun-ui/src/views/tool/gen/editTable.vue @@ -99,6 +99,8 @@ + + @@ -120,7 +122,7 @@ - + @@ -152,6 +154,8 @@ export default { activeName: "cloum", // 表格的高度 tableHeight: document.documentElement.scrollHeight - 245 + "px", + // 表信息 + tables: [], // 表列信息 cloumns: [], // 字典信息 @@ -170,6 +174,7 @@ export default { getGenTable(tableId).then(res => { this.cloumns = res.data.rows; this.info = res.data.info; + this.tables = res.data.tables; }); /** 查询字典下拉列表 */ getDictOptionselect().then(response => { diff --git a/hchyun-ui/src/views/tool/gen/genInfoForm.vue b/hchyun-ui/src/views/tool/gen/genInfoForm.vue index bd4a2d8..9d36b9d 100644 --- a/hchyun-ui/src/views/tool/gen/genInfoForm.vue +++ b/hchyun-ui/src/views/tool/gen/genInfoForm.vue @@ -4,9 +4,10 @@ 生成模板 - + + @@ -126,8 +127,8 @@ @@ -144,8 +145,8 @@ @@ -162,8 +163,47 @@ + + + + + +

关联信息

+ + + + 关联子表的表名 + + + + + + + + + + + + + 子表关联的外键名 + + + + + + @@ -174,56 +214,87 @@
diff --git a/hchyun-ui/src/views/tool/gen/index.vue b/hchyun-ui/src/views/tool/gen/index.vue index 732ee64..8e9b513 100644 --- a/hchyun-ui/src/views/tool/gen/index.vue +++ b/hchyun-ui/src/views/tool/gen/index.vue @@ -32,7 +32,7 @@ > - 搜索 + 搜索 重置 @@ -41,6 +41,7 @@ - +