From ad6342a6e478e432a99f04d55b67b39271884903 Mon Sep 17 00:00:00 2001 From: RuoYi Date: Wed, 16 Apr 2025 12:52:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=A7=92=E8=89=B2=E7=A6=81?= =?UTF-8?q?=E7=94=A8=E4=B8=8D=E5=85=81=E8=AE=B8=E5=88=86=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/templates/system/user/authRole.html | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/ruoyi-admin/src/main/resources/templates/system/user/authRole.html b/ruoyi-admin/src/main/resources/templates/system/user/authRole.html index feaee5094..e66c1da32 100644 --- a/ruoyi-admin/src/main/resources/templates/system/user/authRole.html +++ b/ruoyi-admin/src/main/resources/templates/system/user/authRole.html @@ -63,11 +63,12 @@ columns: [{ checkbox: true, formatter:function (value, row, index) { - if($.common.isEmpty(value)) { - return { checked: row.flag }; - } else { - return { checked: value } - } + var state = row.status == '1' ? true : false; + if ($.common.isEmpty(value)) { + return { checked: row.flag, disabled: state }; + } else { + return { checked: value, disabled: state }; + } } }, {