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
68e308e3
Commit
68e308e3
authored
Dec 01, 2023
by
王玉鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 产业园详情跳转载体id修正
parent
84794d0e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
21 deletions
+6
-21
components.d.ts
components.d.ts
+0
-18
MiniListItem.vue
src/components/detail/MiniListItem.vue
+1
-0
industrialParkDetail.ts
src/types/api/industrialParkDetail.ts
+1
-0
IndustrialParkDetail.vue
src/views/industrial-park/IndustrialParkDetail.vue
+4
-3
No files found.
components.d.ts
View file @
68e308e3
...
@@ -12,33 +12,15 @@ declare module 'vue' {
...
@@ -12,33 +12,15 @@ declare module 'vue' {
DetailInfoCell
:
typeof
import
(
'./src/components/detail/DetailInfoCell.vue'
)[
'default'
]
DetailInfoCell
:
typeof
import
(
'./src/components/detail/DetailInfoCell.vue'
)[
'default'
]
DetailInfoTab
:
typeof
import
(
'./src/components/detail/DetailInfoTab.vue'
)[
'default'
]
DetailInfoTab
:
typeof
import
(
'./src/components/detail/DetailInfoTab.vue'
)[
'default'
]
DetailMain
:
typeof
import
(
'./src/components/detail/DetailMain.vue'
)[
'default'
]
DetailMain
:
typeof
import
(
'./src/components/detail/DetailMain.vue'
)[
'default'
]
ElButton
:
typeof
import
(
'element-plus/es'
)[
'ElButton'
]
ElCheckbox
:
typeof
import
(
'element-plus/es'
)[
'ElCheckbox'
]
ElCheckboxGroup
:
typeof
import
(
'element-plus/es'
)[
'ElCheckboxGroup'
]
ElCol
:
typeof
import
(
'element-plus/es'
)[
'ElCol'
]
ElContainer
:
typeof
import
(
'element-plus/es'
)[
'ElContainer'
]
ElContainer
:
typeof
import
(
'element-plus/es'
)[
'ElContainer'
]
ElDatePicker
:
typeof
import
(
'element-plus/es'
)[
'ElDatePicker'
]
ElFooter
:
typeof
import
(
'element-plus/es'
)[
'ElFooter'
]
ElFooter
:
typeof
import
(
'element-plus/es'
)[
'ElFooter'
]
ElForm
:
typeof
import
(
'element-plus/es'
)[
'ElForm'
]
ElFormItem
:
typeof
import
(
'element-plus/es'
)[
'ElFormItem'
]
ElHeader
:
typeof
import
(
'element-plus/es'
)[
'ElHeader'
]
ElHeader
:
typeof
import
(
'element-plus/es'
)[
'ElHeader'
]
ElInput
:
typeof
import
(
'element-plus/es'
)[
'ElInput'
]
ElMain
:
typeof
import
(
'element-plus/es'
)[
'ElMain'
]
ElMain
:
typeof
import
(
'element-plus/es'
)[
'ElMain'
]
ElMenu
:
typeof
import
(
'element-plus/es'
)[
'ElMenu'
]
ElMenu
:
typeof
import
(
'element-plus/es'
)[
'ElMenu'
]
ElMenuItem
:
typeof
import
(
'element-plus/es'
)[
'ElMenuItem'
]
ElMenuItem
:
typeof
import
(
'element-plus/es'
)[
'ElMenuItem'
]
ElOption
:
typeof
import
(
'element-plus/es'
)[
'ElOption'
]
ElPagination
:
typeof
import
(
'element-plus/es'
)[
'ElPagination'
]
ElPagination
:
typeof
import
(
'element-plus/es'
)[
'ElPagination'
]
ElRadio
:
typeof
import
(
'element-plus/es'
)[
'ElRadio'
]
ElRadioGroup
:
typeof
import
(
'element-plus/es'
)[
'ElRadioGroup'
]
ElSelect
:
typeof
import
(
'element-plus/es'
)[
'ElSelect'
]
ElSubMenu
:
typeof
import
(
'element-plus/es'
)[
'ElSubMenu'
]
ElSubMenu
:
typeof
import
(
'element-plus/es'
)[
'ElSubMenu'
]
ElSwitch
:
typeof
import
(
'element-plus/es'
)[
'ElSwitch'
]
ElTimePicker
:
typeof
import
(
'element-plus/es'
)[
'ElTimePicker'
]
IndustrialParkItem
:
typeof
import
(
'./src/components/list/IndustrialParkItem.vue'
)[
'default'
]
ItemStatus
:
typeof
import
(
'./src/components/list/ItemStatus.vue'
)[
'default'
]
ListIndustryCategory
:
typeof
import
(
'./src/components/list/list-industryCategory.vue'
)[
'default'
]
ListInfo
:
typeof
import
(
'./src/components/list/ListInfo.vue'
)[
'default'
]
ListInfo
:
typeof
import
(
'./src/components/list/ListInfo.vue'
)[
'default'
]
ListLand
:
typeof
import
(
'./src/components/list/list-land.vue'
)[
'default'
]
ListPagination
:
typeof
import
(
'./src/components/list/ListPagination.vue'
)[
'default'
]
ListPagination
:
typeof
import
(
'./src/components/list/ListPagination.vue'
)[
'default'
]
MiniListItem
:
typeof
import
(
'./src/components/detail/MiniListItem.vue'
)[
'default'
]
MiniListItem
:
typeof
import
(
'./src/components/detail/MiniListItem.vue'
)[
'default'
]
ParkItem
:
typeof
import
(
'./src/components/list/ParkItem.vue'
)[
'default'
]
ParkItem
:
typeof
import
(
'./src/components/list/ParkItem.vue'
)[
'default'
]
...
...
src/components/detail/MiniListItem.vue
View file @
68e308e3
...
@@ -17,6 +17,7 @@ export interface MiniDetail {
...
@@ -17,6 +17,7 @@ export interface MiniDetail {
imgUrl
:
string
;
imgUrl
:
string
;
name
:
string
;
name
:
string
;
info
:
string
;
info
:
string
;
id
:
number
;
}
}
withDefaults
(
withDefaults
(
defineProps
<
{
defineProps
<
{
...
...
src/types/api/industrialParkDetail.ts
View file @
68e308e3
...
@@ -66,6 +66,7 @@ export interface IndustrialParkDetailResp {
...
@@ -66,6 +66,7 @@ export interface IndustrialParkDetailResp {
/** 载体类型 */
/** 载体类型 */
type
:
string
;
type
:
string
;
name
:
string
;
name
:
string
;
id
:
number
;
}[];
}[];
/** 产业政策 */
/** 产业政策 */
parkPolicy
:
ListInfo
<
Policy
>
[];
parkPolicy
:
ListInfo
<
Policy
>
[];
...
...
src/views/industrial-park/IndustrialParkDetail.vue
View file @
68e308e3
...
@@ -71,7 +71,7 @@
...
@@ -71,7 +71,7 @@
v-for=
"item of carriers.slice(0, 4)"
v-for=
"item of carriers.slice(0, 4)"
:key=
"item.name"
:key=
"item.name"
:detail=
"item"
:detail=
"item"
@
to-detail=
"toCarrierDetail(item
as any
)"
@
to-detail=
"toCarrierDetail(item)"
></MiniListItem>
></MiniListItem>
</div>
</div>
</DetailInfoCell>
</DetailInfoCell>
...
@@ -240,11 +240,12 @@ const enterprises = computed(() => {
...
@@ -240,11 +240,12 @@ const enterprises = computed(() => {
/** 产业园内载体列表 */
/** 产业园内载体列表 */
const
carriers
=
computed
<
MiniDetail
[]
>
(()
=>
{
const
carriers
=
computed
<
MiniDetail
[]
>
(()
=>
{
if
(
detail
.
value
)
{
if
(
detail
.
value
)
{
return
detail
.
value
.
parkCarrier
.
map
(({
imgUrl
,
type
,
area
,
name
})
=>
{
return
detail
.
value
.
parkCarrier
.
map
(({
imgUrl
,
type
,
area
,
name
,
id
})
=>
{
return
{
return
{
imgUrl
,
imgUrl
,
name
,
name
,
info
:
[
area
?
`
${
area
}
㎡`
:
''
,
type
].
filter
(
haveValue
).
join
(
' | '
),
info
:
[
area
?
`
${
area
}
㎡`
:
''
,
type
].
filter
(
haveValue
).
join
(
' | '
),
id
,
};
};
});
});
}
else
{
}
else
{
...
@@ -259,7 +260,7 @@ const toCarrierList = () => {
...
@@ -259,7 +260,7 @@ const toCarrierList = () => {
/**
/**
* 载体详情
* 载体详情
*/
*/
const
toCarrierDetail
=
({
id
}:
{
id
:
string
})
=>
{
const
toCarrierDetail
=
({
id
}:
{
id
:
number
})
=>
{
open
({
open
({
name
:
RouteName
.
carrierDetail
,
name
:
RouteName
.
carrierDetail
,
query
:
{
query
:
{
...
...
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