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
a8fa6992
Commit
a8fa6992
authored
Nov 29, 2023
by
王玉鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 开发区图片占位名称修改
parent
dfc81cfa
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
3 deletions
+21
-3
ParkItem.vue
src/components/list/ParkItem.vue
+7
-3
enum.ts
src/types/enum.ts
+10
-0
DevelopZoneList.vue
src/views/develop/DevelopZoneList.vue
+2
-0
IndustrialParkList.vue
src/views/industrial-park/IndustrialParkList.vue
+2
-0
No files found.
src/components/list/ParkItem.vue
View file @
a8fa6992
...
...
@@ -5,7 +5,7 @@
<img
class=
"h-[156px] w-[208px] cursor-pointer rounded-sm"
:src=
"item.imgUrl"
alt=
"产业园
"
:alt=
"isDevelop ? '开发区' : '产业园'
"
/>
</div>
<div
class=
"ml-4 flex-1 py-2"
>
...
...
@@ -31,8 +31,6 @@
{{
filterAddress
(
item
)
}}
</div>
<div
class=
"mt-4"
>
<!--
<div
class=
"flex min-w-[99px] justify-center"
>
{{
item
.
levelName
}}
</div>
<div
class=
"flex min-w-[94px] justify-center"
>
{{
item
.
planArea
}}
亩
</div>
-->
<ListInfo
:infos=
"infos"
></ListInfo>
</div>
<div
class=
"mt-[17px] flex flex-wrap gap-[13px]"
>
...
...
@@ -51,11 +49,13 @@ import type { IndustrialParkItem } from '@/types/api/industrialParkList.ts';
import
{
filterAddress
}
from
'@/utils/filters.ts'
;
import
{
computed
}
from
'vue'
;
import
type
{
DevelopZoneItem
}
from
'@/types/api/developZoneList'
;
import
{
ParkItemType
}
from
'@/types/enum.ts'
;
import
ListInfo
from
'./ListInfo.vue'
;
const
props
=
withDefaults
(
defineProps
<
{
item
:
Partial
<
IndustrialParkItem
&
DevelopZoneItem
>
;
type
:
ParkItemType
;
}
>
(),
{},
);
...
...
@@ -69,6 +69,10 @@ const { currentStatusTag, superTag } = useItemStatus(props.item);
/** 最大展示招商方向数量 */
const
MAX_DIRECTION_COUNT
=
3
;
const
isDevelop
=
computed
(()
=>
{
return
props
.
type
===
ParkItemType
.
develop
;
});
const
infos
=
computed
(()
=>
{
const
{
levelName
,
planArea
,
type
}
=
props
.
item
||
{};
return
[
levelName
,
type
,
planArea
?
`
${
planArea
}
亩`
:
''
];
...
...
src/types/enum.ts
View file @
a8fa6992
...
...
@@ -25,3 +25,13 @@ export enum AuthStatus {
/** 已回退 */
back
=
9
,
}
/**
* 园区详情类型
*/
export
enum
ParkItemType
{
/** 开发区 */
develop
=
'develop'
,
/** 产业原 */
industrial
=
'industrial'
,
}
src/views/develop/DevelopZoneList.vue
View file @
a8fa6992
...
...
@@ -6,6 +6,7 @@
v-for=
"item in datas"
:key=
"item.id"
:item=
"item"
:type=
"ParkItemType.develop"
@
to-detail=
"handleDetail(RouteName.developZoneDetail, item)"
></ParkItem>
...
...
@@ -25,6 +26,7 @@ import { RouteName } from '@/router/router.ts';
import
ListPagination
from
'@/components/list/ListPagination.vue'
;
import
{
RequestUrl
}
from
'@/types/api.ts'
;
import
type
{
DevelopZoneItem
,
DevelopZoneListCondition
}
from
'@/types/api/developZoneList'
;
import
{
ParkItemType
}
from
'@/types/enum.ts'
;
const
{
pageNum
,
pageSize
,
totalCount
,
datas
,
handleDetail
}
=
useListView
<
DevelopZoneItem
,
...
...
src/views/industrial-park/IndustrialParkList.vue
View file @
a8fa6992
...
...
@@ -7,6 +7,7 @@
v-for=
"item in datas"
:key=
"item.id"
:item=
"item"
:type=
"ParkItemType.industrial"
@
to-detail=
"handleDetail(RouteName.industrialParkDetail, item)"
></ParkItem>
</div>
...
...
@@ -31,6 +32,7 @@ import type {
IndustrialParkItem
,
IndustrialParkListCondition
,
}
from
'@/types/api/industrialParkList.ts'
;
import
{
ParkItemType
}
from
'@/types/enum.ts'
;
const
{
pageNum
,
pageSize
,
totalCount
,
datas
,
handleDetail
}
=
useListView
<
IndustrialParkItem
,
...
...
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