Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
liyeyun
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cfld-frontend
liyeyun
Commits
cda3181c
Commit
cda3181c
authored
Dec 14, 2023
by
王玉鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 列表信息面积数字修改
parent
427b355b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
ParkItem.vue
src/components/list/ParkItem.vue
+3
-2
No files found.
src/components/list/ParkItem.vue
View file @
cda3181c
...
...
@@ -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
(()
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment