From bc68f4393cafe39c4fce614c8128936067ea25f7 Mon Sep 17 00:00:00 2001
From: 刘帅 <rr.iii@qq.com>
Date: 星期二, 22 九月 2026 17:18:17 +0800
Subject: [PATCH] bug:登录问题和操作日志
---
cloud-server-management/src/main/webapp/static/modular/system/user/user.js | 19 +------------------
1 files changed, 1 insertions(+), 18 deletions(-)
diff --git a/cloud-server-management/src/main/webapp/static/modular/system/user/user.js b/cloud-server-management/src/main/webapp/static/modular/system/user/user.js
index d5e4a31..1ba8abc 100644
--- a/cloud-server-management/src/main/webapp/static/modular/system/user/user.js
+++ b/cloud-server-management/src/main/webapp/static/modular/system/user/user.js
@@ -120,25 +120,8 @@
}
};
-/** The button is rendered only for admin; the API repeats the permission check and records an audit event. */
MgrUser.viewSensitiveData = function () {
- if (!this.check()) return;
- layer.confirm('查看完整手机号和身份证号将记录审计日志,是否继续?', {icon: 3, title: '敏感信息查看'}, function (index) {
- $.ajax({
- url: Feng.ctxPath + '/system/sensitive/employee/' + MgrUser.seItem.id,
- type: 'GET',
- success: function (data) {
- if (!data) { Feng.info('未查询到员工信息'); return; }
- var html = '<div style="padding:20px;line-height:28px">'
- + '<div>姓名:' + (data.name || '') + '</div>'
- + '<div>手机号:' + (data.phone || '') + '</div>'
- + '<div>身份证号:' + (data.idCard || '') + '</div></div>';
- layer.open({type: 1, title: '员工敏感信息(已记录审计日志)', area: ['420px', '260px'], content: html});
- },
- error: function () { Feng.error('无权查看敏感信息或查询失败'); }
- });
- layer.close(index);
- });
+ if (this.check()) SensitiveInfo.view('/system/sensitive/employee/' + this.seItem.id, true);
};
/**
--
Gitblit v1.7.1