From a10451b7573850914591ee405e090d041763003a Mon Sep 17 00:00:00 2001 From: aaron <> Date: Thu, 9 Jan 2025 00:12:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=A9=BF=E7=AB=99=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/station.js | 19 ++ src/layouts/TabsLayout.vue | 18 +- src/router/index.js | 8 +- src/views/community/CommunityList.vue | 30 +++ src/views/station/StationList.vue | 325 ++++++++++++++++++++++++++ 5 files changed, 396 insertions(+), 4 deletions(-) create mode 100644 src/api/station.js create mode 100644 src/views/station/StationList.vue diff --git a/src/api/station.js b/src/api/station.js new file mode 100644 index 0000000..1f4b8f2 --- /dev/null +++ b/src/api/station.js @@ -0,0 +1,19 @@ +import request from '@/utils/request' + +// 获取驿站列表 +export function getStationList(params) { + return request({ + url: '/api/station/', + method: 'get', + params + }) +} + +// 添加驿站 +export function createStation(data) { + return request({ + url: '/api/station/', + method: 'post', + data + }) +} \ No newline at end of file diff --git a/src/layouts/TabsLayout.vue b/src/layouts/TabsLayout.vue index 3ad05a4..098d711 100644 --- a/src/layouts/TabsLayout.vue +++ b/src/layouts/TabsLayout.vue @@ -50,7 +50,17 @@ 小区列表 - 楼栋管理 + 楼栋列表 + + + + + 驿站列表 @@ -92,7 +102,8 @@ import { QuestionCircleOutlined, DownOutlined, UserOutlined, - HomeOutlined + HomeOutlined, + ShopOutlined } from '@ant-design/icons-vue' export default defineComponent({ @@ -101,7 +112,8 @@ export default defineComponent({ QuestionCircleOutlined, DownOutlined, UserOutlined, - HomeOutlined + HomeOutlined, + ShopOutlined }, setup() { diff --git a/src/router/index.js b/src/router/index.js index 530fc9d..dc32b70 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -32,7 +32,13 @@ const routes = [ path: '/community/building', name: 'BuildingList', component: () => import('../views/community/BuildingList.vue'), - meta: { title: '楼栋管理' } + meta: { title: '楼栋列表' } + }, + { + path: '/station/list', + name: 'StationList', + component: () => import('../views/station/StationList.vue'), + meta: { title: '驿站列表' } } ] }, diff --git a/src/views/community/CommunityList.vue b/src/views/community/CommunityList.vue index 475efdb..6d4284b 100644 --- a/src/views/community/CommunityList.vue +++ b/src/views/community/CommunityList.vue @@ -832,4 +832,34 @@ export default defineComponent({ :deep(.anticon) { font-size: 12px; } + +/* 调整 Select 组件的样式 */ +:deep(.ant-select-selector) { + height: 32px !important; + + .ant-select-selection-item { + line-height: 30px !important; /* 调整文字行高 */ + padding-top: 0 !important; /* 移除顶部内边距 */ + padding-bottom: 0 !important; /* 移除底部内边距 */ + } +} + +/* 调整选项的样式 */ +:deep(.ant-select-dropdown) { + .ant-select-item { + padding: 5px 12px; /* 调整选项内边距 */ + line-height: 22px; /* 调整选项行高 */ + } +} + +/* 确保输入框内的文字垂直居中 */ +:deep(.ant-select-selection-search-input) { + height: 30px !important; + line-height: 30px !important; +} + +/* 确保占位符文字垂直居中 */ +:deep(.ant-select-selection-placeholder) { + line-height: 30px !important; +} \ No newline at end of file diff --git a/src/views/station/StationList.vue b/src/views/station/StationList.vue new file mode 100644 index 0000000..ad49400 --- /dev/null +++ b/src/views/station/StationList.vue @@ -0,0 +1,325 @@ + + + + + \ No newline at end of file