Commit 7c71c06e authored by 李家智's avatar 李家智
Browse files
parents d10e72c0 37606d65
......@@ -9,12 +9,12 @@ layui.define([ 'form', 'laydate', 'table','${entity.code}Api'], function(exports
},
initSubmit:function(){
$("#addButton").click(function(){
form.on('submit(form)', function(){
${entity.code}Api.add${upperFirst(entity.code)}($('#addForm'),function(){
parent.window.dataReload();
Common.info("添加成功");
Lib.closeFrame();
});
form.on('submit(form)', function(){
${entity.code}Api.add${upperFirst(entity.code)}($('#addForm'),function(){
parent.window.dataReload();
Common.info("添加成功");
Lib.closeFrame();
});
});
});
......
......@@ -9,12 +9,12 @@ layui.define([ 'form', 'laydate', 'table','${entity.code}Api'], function(exports
},
initSubmit:function(){
$("#updateButton").click(function(){
form.on('submit(form)', function(){
${entity.code}Api.update${upperFirst(entity.code)}($('#updateForm'),function(){
parent.window.dataReload();
Common.info("更新成功");
Lib.closeFrame();
});
form.on('submit(form)', function(){
${entity.code}Api.update${upperFirst(entity.code)}($('#updateForm'),function(
parent.window.dataReload();
Common.info("更新成功");
Lib.closeFrame();
});
});
});
$("#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