From 473afbb8346af833b2f284b206fd59d00b38cab7 Mon Sep 17 00:00:00 2001 From: "20932067@zju.edu.cn" Date: Wed, 27 Jan 2021 18:02:42 +0800 Subject: [PATCH] 11 --- hchyun-ui/src/api/tool/interTable.js | 8 ++++ hchyun-ui/src/views/tool/apiclass/index.vue | 41 +++++++++++++++- .../hchyun/web/core/config/SwaggerConfig.java | 33 ++++++------- .../service/impl/InterTableServiceImpl.java | 5 +- .../generator/util/InterTableUtils.java | 15 +++++- .../mapper/generator/InterTableMapper.xml | 17 ++++++- .../src/main/resources/vm/java/class.java.vm | 47 +++++++++++++++++++ 7 files changed, 144 insertions(+), 22 deletions(-) diff --git a/hchyun-ui/src/api/tool/interTable.js b/hchyun-ui/src/api/tool/interTable.js index 6aa1820..7d7ec01 100644 --- a/hchyun-ui/src/api/tool/interTable.js +++ b/hchyun-ui/src/api/tool/interTable.js @@ -17,6 +17,14 @@ export function getIntertable(id) { }) } +// 查询接口信息详细 +export function getClassPreview(id) { + return request({ + url: 'generator/intertable/classpreview/' + id, + method: 'get' + }) +} + // 新增接口信息 export function addIntertable(data) { return request({ diff --git a/hchyun-ui/src/views/tool/apiclass/index.vue b/hchyun-ui/src/views/tool/apiclass/index.vue index 616acb4..fadd015 100644 --- a/hchyun-ui/src/views/tool/apiclass/index.vue +++ b/hchyun-ui/src/views/tool/apiclass/index.vue @@ -118,7 +118,7 @@ type="text" size="small" icon="el-icon-view" - @click="handlePreview(scope.row)" + @click="handlePreview(scope.row.id)" v-hasPermi="['tool:apiclass:preview']" >预览 取 消 + + + + +
+
+
+