解决admin会被误删的bug
This commit is contained in:
@@ -174,10 +174,10 @@
|
||||
{
|
||||
title: '操作', field: 'isystem', align: "center", width: 80, formatter: function (value, rec, index) {
|
||||
var str = '';
|
||||
if(rec.loginame != "jsh") {
|
||||
if(rec.loginName != "jsh") {
|
||||
str += '<img src="/js/easyui/themes/icons/pencil.png" style="cursor: pointer;" onclick="editUser(\'' + index + '\');"/> ';
|
||||
}
|
||||
if (rec.id != rec.tenantId) {
|
||||
if (rec.id != rec.tenantId && rec.loginName != "admin") {
|
||||
str += '<img src="/js/easyui/themes/icons/edit_remove.png" style="cursor: pointer;" onclick="deleteUser(' + rec.id + ');"/>';
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user