Quellcode durchsuchen

左侧的菜单栏宽度调整

RuoYi vor 6 Jahren
Ursprung
Commit
17dd48e51d

+ 2 - 2
ruoyi-admin/src/main/resources/static/css/style.css

@@ -444,7 +444,7 @@ body.canvas-menu.mini-navbar #page-wrapper, body.canvas-menu.mini-navbar .footer
 
 body.fixed-sidebar .navbar-static-side, body.canvas-menu .navbar-static-side {
     position: fixed;
-    width: 220px;
+    width: 200px;
     z-index: 2001;
     height: 100%;
 }
@@ -3166,7 +3166,7 @@ video {
 #page-wrapper {
     padding: 0 15px;
     position: inherit;
-    margin: 0 0 0 220px;
+    margin: 0 0 0 200px;
 }
 
 .title-action {

+ 5 - 1
ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js

@@ -668,6 +668,10 @@
             openTab: function (title, url) {
             	createMenuItem(url, title);
             },
+            // 关闭选项卡
+            closeTab: function () {
+            	closeItem();
+            },
             // 禁用按钮
             disable: function() {
             	var doc = window.top == window.parent ? window.document : window.parent.document;
@@ -972,7 +976,7 @@
     	        	} else if ($contentWindow.$.table._option.type == table_type.bootstrapTreeTable) {
     	        		$contentWindow.$.treeTable.refresh();
                     }
-    	            closeItem();
+    	            $.modal.closeTab();
                 } else if (result.code == web_status.WARNING) {
                     $.modal.alertWarning(result.msg)
                 } else {