Commit cda3181c authored by 王玉鑫's avatar 王玉鑫

feat: 列表信息面积数字修改

parent 427b355b
......@@ -49,7 +49,7 @@
<script setup lang="ts">
import { useItemStatus } from '@/composable/useItemStatus.ts';
import type { IndustrialParkItem } from '@/types/api/industrialParkList.ts';
import { filterAddress } from '@/utils/filters.ts';
import { filterAddress, formatNumber } from '@/utils/filters.ts';
import { computed } from 'vue';
import type { DevelopZoneItem } from '@/types/api/developZoneList';
import { ParkItemType } from '@/types/enum.ts';
......@@ -80,7 +80,8 @@ const isDevelop = computed(() => {
const infos = computed(() => {
const unit = props.type === ParkItemType.develop ? '平方公里' : '亩';
const { levelName, planArea, type, coverArea } = props.item || {};
return [levelName, type, planArea || coverArea ? `${planArea || coverArea}${unit}` : ''];
const area = formatNumber(planArea || coverArea);
return [levelName, type, area ? `${area}${unit}` : ''];
});
const directions = computed(() => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment