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
f0825ef1
Commit
f0825ef1
authored
Nov 23, 2023
by
王玉鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 开发区详情
parent
c28bbd73
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
62 additions
and
3 deletions
+62
-3
index.ts
src/router/index.ts
+10
-1
api.ts
src/types/api.ts
+2
-0
developZoneDetail.ts
src/types/api/developZoneDetail.ts
+6
-0
DevelopZoneDetail.vue
src/views/develop/DevelopZoneDetail.vue
+37
-0
DevelopZoneList.vue
src/views/develop/DevelopZoneList.vue
+7
-2
No files found.
src/router/index.ts
View file @
f0825ef1
...
@@ -25,8 +25,10 @@ const MapSelection = () => import('@/views/map/MapSelection.vue');
...
@@ -25,8 +25,10 @@ const MapSelection = () => import('@/views/map/MapSelection.vue');
const
AboutUs
=
()
=>
import
(
'@/views/about/AboutUs.vue'
);
const
AboutUs
=
()
=>
import
(
'@/views/about/AboutUs.vue'
);
/** 合伙人招募 */
/** 合伙人招募 */
const
PartnerEnlist
=
()
=>
import
(
'@/views/partner/PartnerEnlist.vue'
);
const
PartnerEnlist
=
()
=>
import
(
'@/views/partner/PartnerEnlist.vue'
);
/** 产业园
列表
*/
/** 产业园
详情
*/
const
IndustrialParkDetail
=
()
=>
import
(
'@/views/industrial-park/IndustrialParkDetail.vue'
);
const
IndustrialParkDetail
=
()
=>
import
(
'@/views/industrial-park/IndustrialParkDetail.vue'
);
/** 开发区详情 */
const
DevelopZoneDetail
=
()
=>
import
(
'@/views/develop/DevelopZoneDetail.vue'
);
export
const
enum
RouteName
{
export
const
enum
RouteName
{
home
=
'home'
,
home
=
'home'
,
...
@@ -54,6 +56,8 @@ export const enum RouteName {
...
@@ -54,6 +56,8 @@ export const enum RouteName {
partnerEnlist
=
'partnerEnlist'
,
partnerEnlist
=
'partnerEnlist'
,
/** 产业园详情 */
/** 产业园详情 */
industrialParkDetail
=
'industrial-park-detail'
,
industrialParkDetail
=
'industrial-park-detail'
,
/** 开发区详情 */
developZoneDetail
=
'develop-zone-detail'
,
}
}
function
gen
(
name
:
RouteName
)
{
function
gen
(
name
:
RouteName
)
{
...
@@ -157,6 +161,11 @@ const routes: readonly RouteRecordRaw[] = [
...
@@ -157,6 +161,11 @@ const routes: readonly RouteRecordRaw[] = [
...
gen
(
RouteName
.
industrialParkDetail
),
...
gen
(
RouteName
.
industrialParkDetail
),
component
:
IndustrialParkDetail
,
component
:
IndustrialParkDetail
,
},
},
{
// 开发区详情
...
gen
(
RouteName
.
developZoneDetail
),
component
:
DevelopZoneDetail
,
},
{
{
path
:
'/:pathMatch(.*)*'
,
path
:
'/:pathMatch(.*)*'
,
redirect
:
'/'
,
redirect
:
'/'
,
...
...
src/types/api.ts
View file @
f0825ef1
...
@@ -5,6 +5,8 @@ export enum RequestUrl {
...
@@ -5,6 +5,8 @@ export enum RequestUrl {
login
=
'/login'
,
login
=
'/login'
,
/** 产业园列表 */
/** 产业园列表 */
industrialParkList
=
'/lyy/parkInfo/v1.0/page'
,
industrialParkList
=
'/lyy/parkInfo/v1.0/page'
,
/** 产业园详情 */
industrialParkDetal
=
'/lyy/api/parkInfo/v1.0/detail'
,
/** 开发区列表 */
/** 开发区列表 */
developZoneList
=
'/lyy/api/developmentInfo/v1.0/page'
,
developZoneList
=
'/lyy/api/developmentInfo/v1.0/page'
,
/** 开发区详情 */
/** 开发区详情 */
...
...
src/types/api/developZoneDetail.ts
0 → 100644
View file @
f0825ef1
/**
* 开发区详情
*/
export
interface
DevelopZoneDetailResp
{
name
:
string
;
}
src/views/develop/DevelopZoneDetail.vue
0 → 100644
View file @
f0825ef1
<!-- 开发区详情 -->
<
template
>
<div
v-if=
"detail"
>
<div>
{{
detail
.
name
}}
</div>
<div
class=
"space-y-4"
>
<DetailInfoCell>
<DetailMain></DetailMain>
</DetailInfoCell>
<DetailInfoCell
title=
"开发区简介"
></DetailInfoCell>
<DetailInfoCell
title=
"产业情况"
></DetailInfoCell>
<DetailInfoCell
title=
"基本信息"
></DetailInfoCell>
<DetailInfoCell
title=
"要素成本"
></DetailInfoCell>
<DetailInfoCell
title=
"入驻要求"
></DetailInfoCell>
<DetailInfoCell
title=
"重点企业"
></DetailInfoCell>
<DetailInfoCell
title=
"产业政策"
></DetailInfoCell>
<DetailInfoCell
title=
"产业基金"
></DetailInfoCell>
<DetailInfoCell
title=
"配套设施"
></DetailInfoCell>
<DetailInfoCell
title=
"开发区内产业园"
to-list-text=
"更多产业园"
></DetailInfoCell>
<DetailInfoCell
title=
"开发区内土地"
to-list-text=
"更多土地"
></DetailInfoCell>
</div>
</div>
</
template
>
<
script
lang=
"ts"
setup
>
import
DetailInfoCell
from
'@/components/detail/DetailInfoCell.vue'
;
import
DetailMain
from
'@/components/detail/DetailMain.vue'
;
import
{
useDetail
}
from
'@/composable/useDetail.ts'
;
import
{
RequestUrl
}
from
'@/types/api.ts'
;
import
type
{
DevelopZoneDetailResp
}
from
'@/types/api/developZoneDetail'
;
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const
{
detail
,
detailId
,
initDetail
}
=
useDetail
<
DevelopZoneDetailResp
>
(
RequestUrl
.
developZoneDetail
,
);
initDetail
();
</
script
>
src/views/develop/DevelopZoneList.vue
View file @
f0825ef1
...
@@ -2,7 +2,11 @@
...
@@ -2,7 +2,11 @@
<
template
>
<
template
>
<div>
<div>
<div>
<div>
<div
v-for=
"item in datas"
:key=
"item.id"
>
<div
v-for=
"item in datas"
:key=
"item.id"
@
click=
"handleDetail(RouteName.developZoneDetail, item)"
>
<div>
{{
item
.
name
}}
</div>
<div>
{{
item
.
name
}}
</div>
</div>
</div>
...
@@ -18,10 +22,11 @@
...
@@ -18,10 +22,11 @@
<
script
lang=
"ts"
setup
>
<
script
lang=
"ts"
setup
>
import
{
useListView
}
from
'@/composable/useListView.ts'
;
import
{
useListView
}
from
'@/composable/useListView.ts'
;
import
{
RouteName
}
from
'@/router/index.ts'
;
import
{
RequestUrl
}
from
'@/types/api.ts'
;
import
{
RequestUrl
}
from
'@/types/api.ts'
;
import
type
{
DevelopZoneItem
,
DevelopZoneListCondition
}
from
'@/types/api/developZoneList'
;
import
type
{
DevelopZoneItem
,
DevelopZoneListCondition
}
from
'@/types/api/developZoneList'
;
const
{
pageNum
,
pageSize
,
totalCount
,
datas
}
=
useListView
<
const
{
pageNum
,
pageSize
,
totalCount
,
datas
,
handleDetail
}
=
useListView
<
DevelopZoneItem
,
DevelopZoneItem
,
DevelopZoneListCondition
DevelopZoneListCondition
>
(
RequestUrl
.
developZoneList
);
>
(
RequestUrl
.
developZoneList
);
...
...
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