Commit 37606d65 authored by ykb's avatar ykb
Browse files

优化显示样式

parent ec708bba
...@@ -9,12 +9,12 @@ layui.define([ 'form', 'laydate', 'table','${entity.code}Api'], function(exports ...@@ -9,12 +9,12 @@ layui.define([ 'form', 'laydate', 'table','${entity.code}Api'], function(exports
}, },
initSubmit:function(){ initSubmit:function(){
$("#addButton").click(function(){ $("#addButton").click(function(){
form.on('submit(form)', function(){ form.on('submit(form)', function(){
${entity.code}Api.add${upperFirst(entity.code)}($('#addForm'),function(){ ${entity.code}Api.add${upperFirst(entity.code)}($('#addForm'),function(){
parent.window.dataReload(); parent.window.dataReload();
Common.info("添加成功"); Common.info("添加成功");
Lib.closeFrame(); Lib.closeFrame();
}); });
}); });
}); });
......
...@@ -9,12 +9,12 @@ layui.define([ 'form', 'laydate', 'table','${entity.code}Api'], function(exports ...@@ -9,12 +9,12 @@ layui.define([ 'form', 'laydate', 'table','${entity.code}Api'], function(exports
}, },
initSubmit:function(){ initSubmit:function(){
$("#updateButton").click(function(){ $("#updateButton").click(function(){
form.on('submit(form)', function(){ form.on('submit(form)', function(){
${entity.code}Api.update${upperFirst(entity.code)}($('#updateForm'),function(){ ${entity.code}Api.update${upperFirst(entity.code)}($('#updateForm'),function(
parent.window.dataReload(); parent.window.dataReload();
Common.info("更新成功"); Common.info("更新成功");
Lib.closeFrame(); Lib.closeFrame();
}); });
}); });
}); });
$("#updateButton-cancel").click(function(){ $("#updateButton-cancel").click(function(){
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment