import request from '@/utils/request'
export const org_list_tree = (data = {}) =>
    request({
        url: '/user/org/list_tree',
        data: {}
    })
export const org_users = (data = {}) =>
    request({
        url: '/user/main/index',
        data: {
            dept_id:data.dept_id,
            all:'1',
            page: data.page,
            limit:data.limit

        }
    })
export const nav_tree = (data = {}) =>
    request({
        url: '/user/org_menu/left',
        data: {
            cpm_id:data.cpm_id

        }
    })
export const org_add = (data = {}) =>
    request({
        url: '/user/org/add',
        data: {
            issubmit:'1',
            user_org:{
                uo_pid:data.uo_pid,
                uo_name:data.uo_name,
                uo_sort: data.uo_sort
            }

        }
    })

