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.
54 lines
818 B
54 lines
818 B
import request from '@/utils/request'
|
|
|
|
// list
|
|
export function getEnterpriseList(query) {
|
|
return request({
|
|
url: '/shian/enterprise/list',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
// export
|
|
export function exportEnterprise(query) {
|
|
return request({
|
|
url: '/shian/enterprise/export',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
// DELETE
|
|
export function deleteEnterprise(ids) {
|
|
return request({
|
|
url: `/shian/enterprise/${ids}`,
|
|
method: 'DELETE'
|
|
})
|
|
}
|
|
|
|
// info
|
|
export function getinfo(id) {
|
|
return request({
|
|
url: `/shian/enterprise/${id}`,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// add
|
|
export function addEnterprise(data) {
|
|
return request({
|
|
url: '/shian/enterprise',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
// update
|
|
export function updataEnterprise(data) {
|
|
return request({
|
|
url: '/shian/enterprise',
|
|
method: 'put',
|
|
data
|
|
})
|
|
}
|