大区列表

This commit is contained in:
刘召雪
2020-11-20 09:19:57 +08:00
parent 91c8de961b
commit 38512c153e
2 changed files with 241 additions and 0 deletions

View File

@ -7,6 +7,9 @@ export function list() {
method: 'get',
})
}
// 获取大区下拉列表
export function areaSelect() {
return request({
url: '/system/area/select',
@ -14,15 +17,53 @@ export function areaSelect() {
})
}
// 更新和保存
export function save(data) {
return request({
url: '/system/area/save',
method: 'post',
data
})
}
// 删除
export function del(ids) {
return request({
url: '/system/area/' + ids,
method: 'delete'
})
}
// 保存大区地区信息
export function saveProvince(data) {
return request({
url: '/system/area/saveProvince',
method: 'post',
data
})
}
// 根据大区ID获取地区列表
export function getProvinceByArea(id) {
return request({
url: '/system/province/getProvinceByArea?areaId=' + id,
method: 'get',
})
}
// 根据parentCode获取地区列表
export function getProvinceByParent(id) {
return request({
url: '/system/province/getProvinceByParent?parent=' + id,
method: 'get',
})
}
// 获取省份地区列表
export function province() {
return request({
url: '/system/province/list',
method: 'get',
})
}