From 4064c74f70c6a121ac60326a5e7d3efbabbc864f Mon Sep 17 00:00:00 2001
From: aaron <>
Date: Wed, 8 Jan 2025 10:16:18 +0800
Subject: [PATCH] =?UTF-8?q?=E6=95=B4=E4=BD=93=E5=B8=83=E5=B1=80=E8=B0=83?=
=?UTF-8?q?=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
public/index.html | 2 +-
src/components/PageContainer.vue | 15 ++
src/layouts/TabsLayout.vue | 282 ++++++++++++++++++++++++++
src/main.js | 4 +-
src/router/index.js | 22 +-
src/views/community/BuildingList.vue | 174 ++++++++--------
src/views/community/CommunityList.vue | 230 ++++++++++-----------
src/views/dashboard/Dashboard.vue | 127 ++++++++++++
src/views/user/UserList.vue | 54 +++--
9 files changed, 678 insertions(+), 232 deletions(-)
create mode 100644 src/components/PageContainer.vue
create mode 100644 src/layouts/TabsLayout.vue
create mode 100644 src/views/dashboard/Dashboard.vue
diff --git a/public/index.html b/public/index.html
index 8476fd8..156b105 100644
--- a/public/index.html
+++ b/public/index.html
@@ -4,7 +4,7 @@
-
DM Admin
+ 闪兔到家后台管理系统
+
+
\ No newline at end of file
diff --git a/src/main.js b/src/main.js
index c7d3467..abe5ade 100644
--- a/src/main.js
+++ b/src/main.js
@@ -18,7 +18,8 @@ import {
Modal,
Select,
InputNumber,
- AutoComplete
+ AutoComplete,
+ Tabs
} from 'ant-design-vue'
import 'ant-design-vue/dist/antd.css'
@@ -43,5 +44,6 @@ app.use(Modal)
app.use(Select)
app.use(InputNumber)
app.use(AutoComplete)
+app.use(Tabs)
app.mount('#app')
\ No newline at end of file
diff --git a/src/router/index.js b/src/router/index.js
index 7b2217e..530fc9d 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -1,24 +1,30 @@
import { createRouter, createWebHistory } from 'vue-router'
-import BasicLayout from '../layouts/BasicLayout.vue'
+import TabsLayout from '../layouts/TabsLayout.vue'
const routes = [
{
path: '/',
- component: BasicLayout,
+ component: TabsLayout,
children: [
{
path: '',
- redirect: '/user/list'
+ redirect: '/dashboard'
+ },
+ {
+ path: '/dashboard',
+ name: 'Dashboard',
+ component: () => import('../views/dashboard/Dashboard.vue'),
+ meta: { title: '工作台' }
},
{
path: '/user/list',
- name: 'userList',
+ name: 'UserList',
component: () => import('../views/user/UserList.vue'),
meta: { title: '用户列表' }
},
{
path: '/community/list',
- name: 'communityList',
+ name: 'CommunityList',
component: () => import('../views/community/CommunityList.vue'),
meta: { title: '小区列表' }
},
@@ -27,12 +33,6 @@ const routes = [
name: 'BuildingList',
component: () => import('../views/community/BuildingList.vue'),
meta: { title: '楼栋管理' }
- },
- {
- path: '/community/station',
- name: 'stationList',
- component: () => import('../views/community/StationList.vue'),
- meta: { title: '驿站列表' }
}
]
},
diff --git a/src/views/community/BuildingList.vue b/src/views/community/BuildingList.vue
index c181720..6f1d7bd 100644
--- a/src/views/community/BuildingList.vue
+++ b/src/views/community/BuildingList.vue
@@ -1,92 +1,94 @@
-
-
-
-
-
-
-
-
- 全部
-
+
+
+
+
+
+
+
+
- {{ item.name }}
-
-
-
-
-
-
-
-
-
- {{ formatDateTime(record.create_time) }}
-
-
-
-
-
-
-
-
- 取消
-
- 保存
-
-
-
-
- 全部
+
+ {{ item.name }}
+
+
+
+
+
+
+
-
-
-
+
+
+ {{ formatDateTime(record.create_time) }}
+
+
+
-
-
-
+
+
+
+
+ 取消
+
+ 保存
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/user/UserList.vue b/src/views/user/UserList.vue
index 9f9cb82..53b0aed 100644
--- a/src/views/user/UserList.vue
+++ b/src/views/user/UserList.vue
@@ -1,35 +1,41 @@
-
-
+