示例#1
0
def department_user_delete(ret, content, *args, **kwargs):
    '''
    删除某部门账户
    :param ret:
    :param content:icon-cog101
    :param args:
    :param kwargs:
    :return:
    '''
    User_Con_Department_content = {}
    User_Con_Role_content = {}

    User_Con_Department_content['uuid'] = content.pop('User_Con_Department_id')
    User_Con_Role_content['uuid'] = content.pop('User_Con_Role_id')
    views.action_delete(ret, 'User_Con_Role', User_Con_Role_content)
    return views.action_delete(ret, 'User_Con_Department',
                               User_Con_Department_content)
示例#2
0
def delete_role(ret, content, *args, **kwargs):
    '''
    删除岗位
    :param ret:
    :param content:
    :param args:
    :param kwargs:
    :return:
    '''
    return views.action_delete(ret, 'Role', content)
示例#3
0
def delete_department(ret, content, *args, **kwargs):
    '''
    删除部门
    :param ret:
    :param content:
    :param args:
    :param kwargs:
    :return:
    '''
    return views.action_delete(ret, 'Department', content)
示例#4
0
def delete_authority_user(ret, content, *args, **kwargs):
    '''
    删除用户权限
    :param ret:
    :param content:
    :param args:
    :param kwargs:
    :return:
    '''
    return views.action_delete(ret, 'AuthorityUser', content)
示例#5
0
def delete_authority_department(ret, content, *args, **kwargs):
    '''
    删除岗位权限
    :param ret:
    :param content:
    :param args:
    :param kwargs:
    :return:
    '''
    return views.action_delete(ret, 'AuthorityDepartment', content)
示例#6
0
def delete_authority_role(ret, content, *args, **kwargs):
    '''
    删除角色权限
    :param ret:
    :param content:
    :param args:
    :param kwargs:
    :return:
    '''
    return views.action_delete(ret, 'AuthorityRole', content)
示例#7
0
def delete_authority_company(ret, content, *args, **kwargs):
    '''
    删除公司权限
    :param ret:
    :param content:
    :param args:
    :param kwargs:
    :return:
    '''
    return views.action_delete(ret, 'AuthorityCompany', content)
示例#8
0
def delete_department_con(ret, content, *args, **kwargs):
    '''
    删除组织机构
    :param ret:
    :param content:
    :param args:
    :param kwargs:
    :return:
    '''
    return views.action_delete(ret, 'Department_Con', content)
示例#9
0
def user_role_delete(ret, content, *args, **kwargs):
    '''
    删除账户角色
    :param ret:
    :param content:
    :param args:
    :param kwargs:
    :return:
    '''
    return views.action_delete(ret, 'User_Con_Role', content)
示例#10
0
def role_department_delete(ret, content, *args, **kwargs):
    '''
    删除部门岗位
    :param ret:
    :param content:
    :param args:
    :param kwargs:
    :return:
    '''
    return views.action_delete(ret, 'Role_Con_Department', content)