Commit c212ae6f authored by 季圣华's avatar 季圣华
Browse files

解决admin会被误删的bug

parent 753c865d
...@@ -174,10 +174,10 @@ ...@@ -174,10 +174,10 @@
{ {
title: '操作', field: 'isystem', align: "center", width: 80, formatter: function (value, rec, index) { title: '操作', field: 'isystem', align: "center", width: 80, formatter: function (value, rec, index) {
var str = ''; 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 + '\');"/>&nbsp;&nbsp;&nbsp;'; str += '<img src="/js/easyui/themes/icons/pencil.png" style="cursor: pointer;" onclick="editUser(\'' + index + '\');"/>&nbsp;&nbsp;&nbsp;';
} }
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 + ');"/>'; str += '<img src="/js/easyui/themes/icons/edit_remove.png" style="cursor: pointer;" onclick="deleteUser(' + rec.id + ');"/>';
} }
else { else {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment