提交 7b64f4c6 编写于 作者: Z zhipeng.zhang

优化信息提示

上级 2b485dae
......@@ -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);
}
/**
......
......@@ -43,7 +43,7 @@ var vm = new Vue({
param : vm.gen,
json:true,
success : function(result) {
vm.okLayer.msg.greenLaugh("代码生成路径:"+result.msg)
}
});
},
......
......@@ -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',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册