You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
1.1 KiB

2 years ago
import request from '@/utils/request'
export default {
// list
enterpriseUserQueryByPage(data) {
return request({
url: '/oil-user/oilCustomerCompanyRelation/enterpriseUserQueryByPage',
method: 'post',
data
})
},
// 公司
companyGetByPage(data) {
return request({
url: '/oil-user/oilCompanyInfo/getLikeByName',
method: 'post',
data
})
},
// 权限
getByRoleType() {
return request({
// 此处参数传空 获取所有权限
url: `/oil-user/sysRole/getByRoleType/XOIL_COMS/`,
method: 'get',
})
},
// 新增
enterpriseUserSave(data) {
return request({
url: '/oil-user/oilCustomerCompanyRelation/enterpriseUserSave',
method: 'post',
data
})
},
// 修改
userPermissionUpdate(data) {
return request({
url: '/oil-user/oilCustomerCompanyRelation/userPermissionUpdate',
method: 'post',
data
})
},
// 详情
getByUserId(id) {
return request({
url: `/oil-user/oilCustomerCompanyRelation/getByUserId/${id}`,
method: 'get',
})
},
2 years ago
// 删除
deleteByUserId(data) {
2 years ago
return request({
2 years ago
url: '/oil-user/oilCustomerCompanyRelation/deleteByUserId',
2 years ago
method: 'post',
data
})
},
}