diff --git a/src/main/java/com/tools/module/app/web/GenController.java b/src/main/java/com/tools/module/app/web/GenController.java index a720a8e2c3403a0ba61b590490c7a413dece235e..d1711777f6ab9389660b87bf499de50b4799fc23 100644 --- a/src/main/java/com/tools/module/app/web/GenController.java +++ b/src/main/java/com/tools/module/app/web/GenController.java @@ -72,7 +72,7 @@ public class GenController { * @throws TemplateException */ @PostMapping("/create") - public Result create(@RequestBody AppGen gen) throws IOException, TemplateException { + public Result create(@RequestBody AppGen gen){ /** * 获取表字段以及注释 */ @@ -140,7 +140,7 @@ public class GenController { * 生成后端代码 controller 实现 */ createCode("java/controller.ftl", gen,controllerFile); - return Result.ok(); + return Result.ok(filePath); } /** diff --git a/src/main/resources/templates/app/gen/form.html b/src/main/resources/templates/app/gen/form.html index 97ed9452a2567cfc1cb8d57ca9a8403d2e944171..7eadc7bf8cccac56d71c376dad3c76bbe6960df4 100644 --- a/src/main/resources/templates/app/gen/form.html +++ b/src/main/resources/templates/app/gen/form.html @@ -43,7 +43,7 @@ var vm = new Vue({ param : vm.gen, json:true, success : function(result) { - + vm.okLayer.msg.greenLaugh("代码生成路径:"+result.msg) } }); }, diff --git a/src/main/resources/templates/weChat/user/list.html b/src/main/resources/templates/weChat/user/list.html index 3ac210eaabab515364aa917a3f7c69e836929c25..4878b97fa0b35de2a48d296fe402101a88e907a1 100644 --- a/src/main/resources/templates/weChat/user/list.html +++ b/src/main/resources/templates/weChat/user/list.html @@ -80,26 +80,10 @@ layui.use(["okUtils", "okLayer"], function () { },{ title : '操作', key : 'action', - minWidth : 300, + minWidth : 100, align : 'center', render : function(h, params) { var functionList = []; - var edit = h('Button', { - props : { - type : 'primary', - size : 'small', - icon : 'md-create' - }, - style : { - marginRight : '8px' - }, - on : { - click : function() { - vm.edit(params.row); - } - } - }, '修改'); - functionList.push(edit); var remove = h('Button', { props : { type : 'primary',