系统管理中的地区管理页面

This commit is contained in:
gexinzhineng/gxzn27
2023-03-16 13:51:54 +08:00
parent 629c177c99
commit b583be5465
3 changed files with 164 additions and 0 deletions

View File

@ -0,0 +1,15 @@
import request from '@/config/axios/request'
// 获得地区树
export const getAreaTree = async (content?: any) => {
return await request.get({
url: '/system/area/tree',
params: content
})
}
// 获得 IP 对应的地区名
export const getAreaByIp = async (ip) => {
return await request.get({
url: '/system/area/get-by-ip?ip=' + ip
})
}