运费模板性能优化。区域选择使用懒加载

(cherry picked from commit af2fb4bf5f)
This commit is contained in:
jason
2023-05-22 23:10:22 +08:00
committed by shizhong
parent 90ccc11006
commit bbe9e667c4
4 changed files with 157 additions and 43 deletions

View File

@ -1,8 +1,16 @@
import request from '@/config/axios'
// 获得地区树
export const getAreaTree = async (id: number) => {
return await request.get({ url: '/system/area/tree?id=' + id })
export const getAreaTree = async () => {
return await request.get({ url: '/system/area/tree' })
}
export const getChildrenArea = async (id: number) => {
return await request.get({ url: '/system/area/getChildrenArea?id=' + id })
}
export const getAreaListByIds = async (data) => {
return await request.post({ url: '/system/area/list', data })
}
// 获得 IP 对应的地区名