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