Commit f0825ef1 authored by 王玉鑫's avatar 王玉鑫

feat: 开发区详情

parent c28bbd73
...@@ -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: '/',
......
...@@ -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',
/** 开发区详情 */ /** 开发区详情 */
......
/**
* 开发区详情
*/
export interface DevelopZoneDetailResp {
name: string;
}
<!-- 开发区详情 -->
<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>
...@@ -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);
......
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