From 926f5881ac9da7b50307fa3a7428f076593084dc Mon Sep 17 00:00:00 2001 From: RuoYi Date: Tue, 22 Dec 2020 14:13:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E7=94=A8widthUnit=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E9=80=89=E9=A1=B9=E5=8D=95=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/templates/demo/table/print.html | 2 +- .../resources/templates/system/menu/menu.html | 21 ++++++++++++------- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/ruoyi-admin/src/main/resources/templates/demo/table/print.html b/ruoyi-admin/src/main/resources/templates/demo/table/print.html index 2c8edc71..85c0c409 100644 --- a/ruoyi-admin/src/main/resources/templates/demo/table/print.html +++ b/ruoyi-admin/src/main/resources/templates/demo/table/print.html @@ -83,7 +83,7 @@ } // 自定义打印页面模板 - function printPageBuilder(table){ + function printPageBuilder(table) { return ` diff --git a/ruoyi-admin/src/main/resources/templates/system/menu/menu.html b/ruoyi-admin/src/main/resources/templates/system/menu/menu.html index 68e15d27..45baba91 100644 --- a/ruoyi-admin/src/main/resources/templates/system/menu/menu.html +++ b/ruoyi-admin/src/main/resources/templates/system/menu/menu.html @@ -72,7 +72,8 @@ { title: '菜单名称', field: 'menuName', - width: '20%', + width: '20', + widthUnit: '%', formatter: function(value, row, index) { if ($.common.isEmpty(row.icon)) { return row.menuName; @@ -84,13 +85,15 @@ { field: 'orderNum', title: '排序', - width: '10%', + width: '10', + widthUnit: '%', align: "left" }, { field: 'url', title: '请求地址', - width: '15%', + width: '15', + widthUnit: '%', align: "left", formatter: function(value, row, index) { return $.table.tooltip(value); @@ -99,7 +102,8 @@ { title: '类型', field: 'menuType', - width: '10%', + width: '10', + widthUnit: '%', align: "left", formatter: function(value, item, index) { if (item.menuType == 'M') { @@ -116,7 +120,8 @@ { field: 'visible', title: '可见', - width: '10%', + width: '10', + widthUnit: '%', align: "left", formatter: function(value, row, index) { if (row.menuType == 'F') { @@ -128,7 +133,8 @@ { field: 'perms', title: '权限标识', - width: '15%', + width: '15', + widthUnit: '%', align: "left", formatter: function(value, row, index) { return $.table.tooltip(value); @@ -136,7 +142,8 @@ }, { title: '操作', - width: '20%', + width: '20', + widthUnit: '%', align: "left", formatter: function(value, row, index) { var actions = [];