mirror of
				https://gitee.com/hhyykk/ipms-sjy-ui.git
				synced 2025-10-31 18:28:44 +08:00 
			
		
		
		
	运费模板性能优化。区域选择使用懒加载
This commit is contained in:
		| @@ -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 对应的地区名 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 jason
					jason