Browse Source

优化菜单管理类型为按钮状态可选(I7VZEJ)

RuoYi 2 years ago
parent
commit
f05195d373

+ 0 - 3
ruoyi-admin/src/main/resources/templates/system/menu/add.html

@@ -154,21 +154,18 @@
                     $("#perms").parents(".form-group").hide();
                     $("#icon").parents(".form-group").show();
                     $("#target").parents(".form-group").hide();
-                    $("input[name='visible']").parents(".form-group").show();
                     $(".is-refresh").hide();
                 } else if (menuType == "C") {
                 	$("#url").parents(".form-group").show();
                     $("#perms").parents(".form-group").show();
                     $("#icon").parents(".form-group").show();
                     $("#target").parents(".form-group").show();
-                    $("input[name='visible']").parents(".form-group").show();
                     $(".is-refresh").show();
                 } else if (menuType == "F") {
                 	$("#url").parents(".form-group").hide();
                     $("#perms").parents(".form-group").show();
                     $("#icon").parents(".form-group").hide();
                     $("#target").parents(".form-group").hide();
-                    $("input[name='visible']").parents(".form-group").hide();
                     $(".is-refresh").hide();
                 }
         	});  

+ 0 - 3
ruoyi-admin/src/main/resources/templates/system/menu/edit.html

@@ -170,21 +170,18 @@
                 $("#perms").parents(".form-group").hide();
                 $("#icon").parents(".form-group").show();
                 $("#target").parents(".form-group").hide();
-                $("input[name='visible']").parents(".form-group").show();
                 $(".is-refresh").hide();
             } else if (menuType == "C") {
                 $("#url").parents(".form-group").show();
                 $("#perms").parents(".form-group").show();
                 $("#icon").parents(".form-group").show();
                 $("#target").parents(".form-group").show();
-                $("input[name='visible']").parents(".form-group").show();
                 $(".is-refresh").show();
             } else if (menuType == "F") {
                 $("#url").parents(".form-group").hide();
                 $("#perms").parents(".form-group").show();
                 $("#icon").parents(".form-group").hide();
                 $("#target").parents(".form-group").hide();
-                $("input[name='visible']").parents(".form-group").hide();
                 $(".is-refresh").hide();
             }
         }