| | |
| | | layEvent = obj.event; |
| | | if (layEvent === 'del') { |
| | | febs.modal.confirm('删除资源', '确定删除该资源?', function () { |
| | | deleteUsers(data.userId); |
| | | deleteUsers(data.id); |
| | | }); |
| | | } |
| | | if (layEvent === 'edit') { |
| | |
| | | }; |
| | | } |
| | | |
| | | function deleteUsers(userIds) { |
| | | var currentUserId = currentUser.userId + ''; |
| | | if (('' + userIds).split(',').indexOf(currentUserId) !== -1) { |
| | | febs.alert.warn('所选资源包含当前登录资源,无法删除'); |
| | | return; |
| | | } |
| | | febs.get(ctx + 'user/delete/' + userIds, null, function () { |
| | | function deleteUsers(ids) { |
| | | febs.get(ctx + 'video/source/delete/' + ids, null, function () { |
| | | febs.alert.success('删除资源成功'); |
| | | $query.click(); |
| | | }); |