diff --git a/shandan-system/src/main/resources/static/js/sys/user/user.js b/shandan-system/src/main/resources/static/js/sys/user/user.js index 2813267..472630e 100644 --- a/shandan-system/src/main/resources/static/js/sys/user/user.js +++ b/shandan-system/src/main/resources/static/js/sys/user/user.js @@ -42,6 +42,16 @@ layui.use(['element', 'form', 'dropdown', 'table', 'layer', 'laydate', 'tree', ' {id: 'del', title: '删除用户'}, {id: 'sync', title: '用户同步'} ], + ready: function(panelElem, elem){ + let userId = $(elem).data('userId') + if(userId === user.userId){ + panelElem.find('ul > li').each((index, item)=>{ + if("配置角色|配置客户端|删除用户|用户同步".includes($(item).text())){ + $(item).off('click').css('color', '#cacaca'); + } + }) + } + }, click(data, othis) { let userId = $(this.elem).data('userId') switch (data.id) {