From 7b029187e5fef863d6d5f6640c3db9488fbb1aa4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A3=E5=9C=A3=E5=8D=8E?= <852955+jishenghua@users.noreply.gitee.com> Date: Fri, 5 Apr 2019 17:40:05 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E6=BC=94=E7=A4=BA=E5=B9=B3?= =?UTF-8?q?=E5=8F=B0=E7=9A=84=E7=94=A8=E6=88=B7=E8=A7=92=E8=89=B2=E8=A2=AB?= =?UTF-8?q?=E8=AF=AF=E6=94=B9=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- erp_web/pages/manage/user.html | 11 +++++++++-- src/main/resources/mapper_xml/UserMapperEx.xml | 2 +- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/erp_web/pages/manage/user.html b/erp_web/pages/manage/user.html index 2e4543c8..b74c3c54 100644 --- a/erp_web/pages/manage/user.html +++ b/erp_web/pages/manage/user.html @@ -182,8 +182,8 @@ + 'AaBb' + rec.orgAbr + 'AaBb' + rec.email + 'AaBb' + rec.phonenum + 'AaBb' + rec.ismanager + 'AaBb' + rec.isystem + 'AaBb' + rec.description+'AaBb'+rec.orgaId+'AaBb'+rec.orgaUserRelId +'AaBb' + rec.userBlngOrgaDsplSeq ; - if (0 == value) { - str += ' 编辑  '; + str += ' 编辑  '; + if (rec.id != rec.tenantId) { str += ' 删除  '; } else { @@ -312,6 +312,9 @@ if(row[i].loginame == "jsh"){ $.messager.alert('提示', '管理员jsh不能删除!', 'warning'); return; + } else if(row[i].id == row[i].tenantId) { + $.messager.alert('提示', '不能删除自己!', 'warning'); + return; } else { $.ajax({ type: "post", @@ -525,6 +528,10 @@ $.messager.alert('提示',"请选择一条数据再操作!",'warning'); return false; } + if (currentRow.id == currentRow.tenantId) { + $.messager.alert('提示',"不能给自己配置角色!",'warning'); + return false; + } this.href = "/pages/user/userRole.html?id=" + currentRow.id; }); diff --git a/src/main/resources/mapper_xml/UserMapperEx.xml b/src/main/resources/mapper_xml/UserMapperEx.xml index f34247ec..778ed9d5 100644 --- a/src/main/resources/mapper_xml/UserMapperEx.xml +++ b/src/main/resources/mapper_xml/UserMapperEx.xml @@ -37,7 +37,7 @@