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.
33 lines
571 B
33 lines
571 B
import request from '@/utils/request'
|
|
|
|
// 新增单位
|
|
export function postUnit(method,data) {
|
|
return request({
|
|
url: '/tc/unit',
|
|
method: method,
|
|
data,
|
|
})
|
|
}
|
|
// 查询单位列表
|
|
export function listUnit(query) {
|
|
return request({
|
|
url: '/tc/unit/list',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
// 删除单位
|
|
export function delUnit(unitId) {
|
|
return request({
|
|
url: '/tc/unit/' + unitId,
|
|
method: 'delete'
|
|
})
|
|
}
|
|
// 单位详情
|
|
export function lookUnit(unitId) {
|
|
return request({
|
|
url: '/tc/unit/' + unitId,
|
|
method: 'get'
|
|
})
|
|
} |