feat: 角色对用户授权页面用户显示名为空时显示登录用户名
This commit is contained in:
parent
7ef09fae6c
commit
36d71bfb89
|
@ -30,7 +30,9 @@ $(function () {
|
|||
callback: function (result) {
|
||||
var htmlTemplate = this.htmlTemplate;
|
||||
var html = $.map(result, function (element, index) {
|
||||
return $.format(htmlTemplate, element.Id, element.DisplayName, element.Checked, element.UserName);
|
||||
var displayName = element.DisplayName;
|
||||
if (displayName === "") displayName = element.UserName;
|
||||
return $.format(htmlTemplate, element.Id, displayName, element.Checked, element.UserName);
|
||||
}).join('');
|
||||
$dialogUserHeader.text($.format('{0}-用户授权窗口', row.RoleName));
|
||||
$dialogUserForm.html(html).find('[data-toggle="tooltip"]').each(function (index, label) {
|
||||
|
|
Loading…
Reference in New Issue