增加四个授权页面的Title提示功能

This commit is contained in:
Argo-Lenovo 2016-12-26 13:16:13 +08:00
parent ffd7c1e1f3
commit ab82113134
5 changed files with 22 additions and 8 deletions

View File

@ -118,7 +118,7 @@
url: this.url,
data: {},
method: "POST",
htmlTemplate: '<div class="form-group checkbox col-md-3 col-sm-4 col-xs-6"><label class="tooltips" data-placement="top" data-original-title="{3}" title="{3}"><input type="checkbox" value="{0}" {2}/>{1}</label></div>',
htmlTemplate: '<div class="form-group checkbox col-md-3 col-sm-4 col-xs-6"><label class="tipso_style" title="{3}"><input type="checkbox" value="{0}" {2}/>{1}</label></div>',
title: this.title,
swal: true,
modal: null,

View File

@ -27,7 +27,9 @@
return $.format(htmlTemplate, element.ID, element.RoleName, element.Checked, element.Description);
}).join('')
$dialogRoleHeader.text($.format('{0}-角色授权窗口', row.GroupName));
$dialogRoleForm.html(html);
$dialogRoleForm.html(html).find('.tipso_style').each(function (index, label) {
if (label.title == "") label.title = "未设置";
}).tipso();
$dialogRole.modal('show');
}
});
@ -43,7 +45,9 @@
return $.format(htmlTemplate, element.ID, element.DisplayName, element.Checked, element.UserName);
}).join('');
$dialogUserHeader.text($.format('{0}-用户授权窗口', row.GroupName));
$dialogUserForm.html(html);
$dialogUserForm.html(html).find('.tipso_style').each(function (index, label) {
if (label.title == "") label.title = "未设置";
}).tipso();
$dialogUser.modal('show');
}
});

View File

@ -49,7 +49,9 @@
return $.format(htmlTemplate, element.ID, element.RoleName, element.Checked, element.Description);
}).join('')
$dialogRoleHeader.text($.format('{0}-角色授权窗口', row.Name));
$dialogRoleForm.html(html);
$dialogRoleForm.html(html).find('.tipso_style').each(function (index, label) {
if (label.title == "") label.title = "未设置";
}).tipso();
$dialogRole.modal('show');
}
});

View File

@ -33,7 +33,9 @@
return $.format(htmlTemplate, element.ID, element.DisplayName, element.Checked, element.UserName);
}).join('');
$dialogUserHeader.text($.format('{0}-用户授权窗口', row.RoleName));
$dialogUserForm.html(html);
$dialogUserForm.html(html).find('.tipso_style').each(function (index, label) {
if (label.title == "") label.title = "未设置";
}).tipso();
$dialogUser.modal('show');
}
});
@ -49,7 +51,9 @@
return $.format(htmlTemplate, element.ID, element.GroupName, element.Checked, element.Description);
}).join('');
$dialogGroupHeader.text($.format('{0}-部门授权窗口', row.RoleName));
$dialogGroupForm.html(html);
$dialogGroupForm.html(html).find('.tipso_style').each(function (index, label) {
if (label.title == "") label.title = "未设置";
}).tipso();
$dialogGroup.modal('show');
}
});

View File

@ -29,7 +29,9 @@
return $.format(htmlTemplate, element.ID, element.RoleName, element.Checked, element.Description);
}).join('')
$dialogRoleHeader.text($.format('{0}-角色授权窗口', row.DisplayName));
$dialogRoleForm.html(html);
$dialogRoleForm.html(html).find('.tipso_style').each(function (index, label) {
if (label.title == "") label.title = "未设置";
}).tipso();
$dialogRole.modal('show');
}
});
@ -45,7 +47,9 @@
return $.format(htmlTemplate, element.ID, element.GroupName, element.Checked, element.Description);
}).join('');
$dialogGroupHeader.text($.format('{0}-部门授权窗口', row.DisplayName));
$dialogGroupForm.html(html);
$dialogGroupForm.html(html).find('.tipso_style').each(function (index, label) {
if (label.title == "") label.title = "未设置";
}).tipso();
$dialogGroup.modal('show');
}
});