bug
This commit is contained in:
		| @@ -178,10 +178,15 @@ export default { | ||||
|  | ||||
|   computed: { | ||||
|     ...mapState(['user']), | ||||
|     values() { | ||||
|       return this.data?.[this.data.dataType]?.map(e => { | ||||
|  | ||||
|     values () { | ||||
|       if (!this.data) { | ||||
|         return [] | ||||
|       } | ||||
|  | ||||
|       return this.data.type ==='map' ? this.data[this.data.dataType].map(e => { | ||||
|         return {...e, lng: e['经度'], lat: e['纬度'], label: e['地区名称']} | ||||
|       }) || [] | ||||
|       }) : this.data[this.data.dataType] | ||||
|     } | ||||
|   }, | ||||
|   methods: { | ||||
|   | ||||
| @@ -537,7 +537,10 @@ const components = [ | ||||
|               { | ||||
|                 content: '中卫慧通', | ||||
|                 lng: 117.1339399, | ||||
|                 lat: 36.7190487 | ||||
|                 lat: 36.7190487, | ||||
|                 地区: '中卫慧通', | ||||
|                 经度: 117.1339399, | ||||
|                 纬度: 36.7190487 | ||||
|               } | ||||
|             ], | ||||
|             api: '', | ||||
| @@ -613,11 +616,11 @@ const components = [ | ||||
|             dataType: 'staticData', | ||||
|             staticData: [ | ||||
|               { | ||||
|                 key: '个人服务办理', | ||||
|                 label: '个人服务办理', | ||||
|                 value: 247 | ||||
|               }, | ||||
|               { | ||||
|                 key: '同比上月', | ||||
|                 label: '同比上月', | ||||
|                 value: 247 | ||||
|               } | ||||
|             ] | ||||
|   | ||||
		Reference in New Issue
	
	Block a user