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)
def delete_role(ret, content, *args, **kwargs): ''' 删除岗位 :param ret: :param content: :param args: :param kwargs: :return: ''' return views.action_delete(ret, 'Role', content)
def delete_department(ret, content, *args, **kwargs): ''' 删除部门 :param ret: :param content: :param args: :param kwargs: :return: ''' return views.action_delete(ret, 'Department', content)
def delete_authority_user(ret, content, *args, **kwargs): ''' 删除用户权限 :param ret: :param content: :param args: :param kwargs: :return: ''' return views.action_delete(ret, 'AuthorityUser', content)
def delete_authority_department(ret, content, *args, **kwargs): ''' 删除岗位权限 :param ret: :param content: :param args: :param kwargs: :return: ''' return views.action_delete(ret, 'AuthorityDepartment', content)
def delete_authority_role(ret, content, *args, **kwargs): ''' 删除角色权限 :param ret: :param content: :param args: :param kwargs: :return: ''' return views.action_delete(ret, 'AuthorityRole', content)
def delete_authority_company(ret, content, *args, **kwargs): ''' 删除公司权限 :param ret: :param content: :param args: :param kwargs: :return: ''' return views.action_delete(ret, 'AuthorityCompany', content)
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)
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)
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)