"eladmin-tools/git@ustchcs.com:gujinli1118/eladmin.git" did not exist on "a71243d9eba30bca63aff56f02f3fc8601fe8495"
Commit a8052c76 authored by ykb's avatar ykb
Browse files

fix

parent 6e493261
......@@ -15,9 +15,6 @@ layui.define([ 'form', 'laydate', 'table','menuApi'], function(exports) {
if(!$('#parentMenuId').val()){
$('#parentMenuId').val(0);
}
if(!$('#seq').val()){
$('#seq').val(1);
}
menuApi.addMenu(function(){
Common.info("添加成功");
......
......@@ -9,6 +9,11 @@ layui.define([ 'form', 'laydate', 'table','menuApi'], function(exports) {
},
initSubmit:function(){
$("#saveMenu").click(function(){
//默认值
if(!$('#parentMenuId').val()){
$('#parentMenuId').val(0);
}
menuApi.updateMenu(function(){
Common.info("更新成功");
Lib.closeFrame();
......
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