统一前台GroupConfig,RoleConfig,UserConfig中保存提交的按钮的名称

This commit is contained in:
summer853300975 2016-10-31 11:13:46 +08:00
parent c6803b4c54
commit 6ee4048bbd
7 changed files with 10 additions and 15 deletions

View File

@ -28,7 +28,7 @@
});
}
}, {
id: 'btnSubmitUserRole',
id: 'btnSubmitRole',
click: function (row) {
var groupId = row.ID;
@ -38,7 +38,7 @@
Role.saveRolesByGroupId(groupId, roleIds, { modal: 'dialogRole' });
}
},{
id: 'btnSubmitRoleUser',
id: 'btnSubmitUser',
click: function (row) {
var groupId = row.ID;
var userIds = $('#dialogUser :checked').map(function (index, element) {
@ -47,11 +47,6 @@
User.saveUsersByGroupId(groupId, userIds, { modal: 'dialogUser' });
}
}]
},
success: function (src, data) {
if (src === 'save' && data.ID === $('#userId').val()) {
$('.username').text(data.DisplayName);
}
}
});

View File

@ -23,7 +23,7 @@
});
}
}, {
id: 'btnSubmitUserRole',
id: 'btnSubmitRole',
click: function (row) {
var menuId = row.ID;
var roleIds = $('#dialogRole :checked').map(function (index, element) {

View File

@ -28,7 +28,7 @@
})
}
}, {
id: 'btnSubmitRoleUser',
id: 'btnSubmitUser',
click: function (row) {
var roleId = row.ID;
var userIds = $('#dialogUser :checked').map(function (index, element) {
@ -38,7 +38,7 @@
}
},
{
id: 'btnSubmitUserGroup',
id: 'btnSubmitGroup',
click: function (row) {
var roleId = row.ID;
var groupIds = $('#dialogGroup :checked').map(function (index, element) {

View File

@ -29,7 +29,7 @@
});
}
}, {
id: 'btnSubmitUserRole',
id: 'btnSubmitRole',
click: function (row) {
var userId = row.ID;
var roleIds = $('#dialogRole :checked').map(function (index, element) {
@ -38,7 +38,7 @@
Role.saveRolesByUserId(userId, roleIds, { modal: 'dialogRole' });
}
}, {
id: 'btnSubmitUserGroup',
id: 'btnSubmitGroup',
click: function (row) {
var userId = row.ID;
var groupIds = $('#dialogGroup :checked').map(function (index, element) {

View File

@ -10,7 +10,7 @@
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
<button type="button" class="btn btn-primary" id="btnSubmitUserGroup">保存</button>
<button type="button" class="btn btn-primary" id="btnSubmitGroup">保存</button>
</div>
</div>
</div>

View File

@ -11,7 +11,7 @@
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
<button type="button" class="btn btn-primary" id="btnSubmitUserRole">保存</button>
<button type="button" class="btn btn-primary" id="btnSubmitRole">保存</button>
</div>
</div>
</div>

View File

@ -10,7 +10,7 @@
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
<button type="button" class="btn btn-primary" id="btnSubmitRoleUser">保存</button>
<button type="button" class="btn btn-primary" id="btnSubmitUser">保存</button>
</div>
</div>
</div>