diff --git a/hchyun-ui/.env.development b/hchyun-ui/.env.development index a916e78..3246ca5 100644 --- a/hchyun-ui/.env.development +++ b/hchyun-ui/.env.development @@ -3,8 +3,8 @@ ENV = 'development' # 宏驰云管理系统/开发环境 #VUE_APP_BASE_API = '/dev-api' -#VUE_APP_BASE_API = 'http://localhost:8085/dev-api' -VUE_APP_BASE_API = 'http://apibase.hchyun.com/dev-api' +VUE_APP_BASE_API = 'http://localhost:8085/dev-api' +#VUE_APP_BASE_API = 'http://apibase.hchyun.com/dev-api' # 路由懒加载 VUE_CLI_BABEL_TRANSPILE_MODULES = true diff --git a/hchyun-ui/src/api/tool/interTable.js b/hchyun-ui/src/api/tool/interTable.js index 7d7ec01..180f3f8 100644 --- a/hchyun-ui/src/api/tool/interTable.js +++ b/hchyun-ui/src/api/tool/interTable.js @@ -25,6 +25,14 @@ export function getClassPreview(id) { }) } +// 查询接口信息详细 +export function getModulePreview(id) { + return request({ + url: 'generator/intertable/modulepreview/' + 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 fadd015..4efb8ef 100644 --- a/hchyun-ui/src/views/tool/apiclass/index.vue +++ b/hchyun-ui/src/views/tool/apiclass/index.vue @@ -206,8 +206,8 @@
@@ -263,7 +263,7 @@ open: false, title: "代码预览", data: {}, - activeName: "domain.java" + activeName: "" }, // 表单参数 form: {}, @@ -310,12 +310,13 @@ getClassPreview(3).then(res =>{ this.preview.data = res.data; this.preview.open = true; - console.log(res) + var keys = Object.keys(res.data) + this.preview.activeName = keys[0] }) }, /** 高亮显示 */ highlightedCode(code, key) { - const vmName = key.substring(key.lastIndexOf("/") + 1, key.indexOf(".vm")); + const vmName = key; var language = vmName.substring(vmName.indexOf(".") + 1, vmName.length); const result = hljs.highlight(language, code || "", true); return result.value || ' '; diff --git a/hchyun-ui/src/views/tool/module/index.vue b/hchyun-ui/src/views/tool/module/index.vue index 1913bef..524ffbb 100644 --- a/hchyun-ui/src/views/tool/module/index.vue +++ b/hchyun-ui/src/views/tool/module/index.vue @@ -165,12 +165,27 @@ 取 消 + + + + +
+
+
+