行政区划级联 懒加载
This commit is contained in:
		
							parent
							
								
									23041368c2
								
							
						
					
					
						commit
						a35abcd9cd
					
				|  | @ -50,7 +50,11 @@ const administrativeDivisionByParentCode = async (code: string = '0'): Promise<T | ||||||
|   const resp = await api.get<TreeNodeVo<string>[]>('/common/administrativeDivisionByParentCode', { |   const resp = await api.get<TreeNodeVo<string>[]>('/common/administrativeDivisionByParentCode', { | ||||||
|     parentCode: code |     parentCode: code | ||||||
|   }) |   }) | ||||||
|   return resp.data; |   //解决点击无加载提示 | ||||||
|  |   return resp.data.map(item => { | ||||||
|  |     delete item.children | ||||||
|  |     return item | ||||||
|  |   }); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| onMounted(async () => { | onMounted(async () => { | ||||||
|  |  | ||||||
|  | @ -1,12 +1,5 @@ | ||||||
| <template> | <template> | ||||||
|   <administrative-division-tree/> |   <administrative-division-tree style="width: 500px" :value='[ "430000"]'/> | ||||||
|   123123 |  | ||||||
|   <a-image width="100" height="100" |  | ||||||
|            :src="'https://www.hnjinglian.cn:9002'+objUrl"/> |  | ||||||
|   <a-image width="100" height="100" |  | ||||||
|            :src="'https://www.hnjinglian.cn:2563/minio_9000'+objUrl"/> |  | ||||||
|   <a-image width="100" height="100" |  | ||||||
|            :src="'http://118.253.177.137:9000'+objUrl"/> |  | ||||||
| </template> | </template> | ||||||
| 
 | 
 | ||||||
| <script setup lang="ts"> | <script setup lang="ts"> | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue