Commit 68e308e3 authored by 王玉鑫's avatar 王玉鑫

fix: 产业园详情跳转载体id修正

parent 84794d0e
...@@ -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']
......
...@@ -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<{
......
...@@ -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>[];
......
...@@ -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: {
......
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