authority.js 1.33 KB
Newer Older
lxyang committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
import request from '@/utils/request'

/**
 * 客户下拉列表
 */
export function getCustomerList() {
    return request({
        method: 'POST',
        url: '/system/customer/select',
    })
}

/**
 * 新增&修改 配置
 * @param {*} param0 
 */
export function addConfig({ customerId, module, key, value }) {
    return request({
        url: '/system/customer/fee/config',
        method: 'POST',
        data: { customerId, module, key, value }
    })
}
/**
 * 删除配置
 * @param {*} param0 
 */
export function deleteConfig({ id }) {
    return request({
        url: '/user/yun_jing/apply/delete',
        method: 'POST',
        data: { id}
    })
}

/**
 * 系统权限配置 list 查询
 * @param {String} param0 - 父级 id
 */
export function getCustomerDict({ parentId, parentCode }) {
    return request({
        url: '/system/customer/dict/list',
        method: 'POST',
        data: { parentId, parentCode }
    })
}

/**
 * 获取用户权限列表
 * @param {Object} param0 
 */
export function getConfigSearch({ current, size, name  }) {
    return request({
        url: '/user/yun_jing/apply/search',
        method: 'POST',
        data: { current, size, name }
    })
}
export function changeStatus({ ids	  }) {
    return request({
        url: '/user/yun_jing/apply/mark',
        method: 'POST',
        data: { ids	 }
    })
}