From 8a934ca93dc38643e6d6332633fb937addd5cc55 Mon Sep 17 00:00:00 2001 From: aaron <> Date: Wed, 29 Jan 2025 13:52:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20=E6=8F=90=E7=8E=B0?= =?UTF-8?q?=E5=88=97=E8=A1=A8=20=E9=A1=B5=E9=9D=A2=20=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=B0=83=E6=95=B4=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layouts/BasicLayout.vue | 72 ++++--- src/router/index.js | 11 + src/views/dashboard/Dashboard.vue | 123 +++-------- src/views/finance/WithdrawList.vue | 316 +++++++++++++++++++++++++++++ 4 files changed, 404 insertions(+), 118 deletions(-) create mode 100644 src/views/finance/WithdrawList.vue diff --git a/src/layouts/BasicLayout.vue b/src/layouts/BasicLayout.vue index a821e84..2c6a0ed 100644 --- a/src/layouts/BasicLayout.vue +++ b/src/layouts/BasicLayout.vue @@ -27,6 +27,26 @@ + + + + + 订单管理 + + 配送订单 + + + + + + + + 财务管理 + + 提现管理 + + + @@ -43,16 +63,6 @@ - - - - - 订单管理 - - 配送订单 - - - @@ -131,6 +141,7 @@ import { ShopOutlined, SettingOutlined, ShoppingOutlined, + MoneyCollectOutlined } from '@ant-design/icons-vue' import { useRouter } from 'vue-router' @@ -147,12 +158,13 @@ export default defineComponent({ ShopOutlined, SettingOutlined, ShoppingOutlined, + MoneyCollectOutlined }, setup() { const router = useRouter() const collapsed = ref(false) const selectedKeys = ref(['dashboard']) - const openKeys = ref(['user', 'community', 'merchant', 'system']) + const openKeys = ref([]) const userInfo = ref(JSON.parse(localStorage.getItem('userInfo') || '{}')) @@ -187,6 +199,30 @@ export default defineComponent({ } ] }, + { + key: 'order', + icon: () => h(ShoppingOutlined), + title: '订单管理', + children: [ + { + key: 'order-delivery', + title: '配送订单', + path: '/order/delivery' + } + ] + }, + { + key: 'finance', + icon: () => h(MoneyCollectOutlined), + title: '财务管理', + children: [ + { + key: 'finance-withdraw', + title: '提现管理', + path: '/finance/withdraw' + } + ] + }, { key: 'community', icon: () => h(HomeOutlined), @@ -209,18 +245,6 @@ export default defineComponent({ } ] }, - { - key: 'order', - icon: () => h(ShoppingOutlined), - title: '订单管理', - children: [ - { - key: 'order-delivery', - title: '配送订单', - path: '/order/delivery' - } - ] - }, { key: 'merchant', icon: () => h(ShopOutlined), @@ -254,7 +278,7 @@ export default defineComponent({ path: '/system/logs' } ] - } + }, ]) return { diff --git a/src/router/index.js b/src/router/index.js index f908cf1..1e5a6b4 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -89,6 +89,17 @@ const routes = [ meta: { title: '配送订单' } } ] + }, + { + path: '/finance', + component: BasicLayout, + children: [ + { + path: 'withdraw', + component: () => import('@/views/finance/WithdrawList.vue'), + meta: { title: '提现管理' } + } + ] } ] diff --git a/src/views/dashboard/Dashboard.vue b/src/views/dashboard/Dashboard.vue index a6de5f2..cb53748 100644 --- a/src/views/dashboard/Dashboard.vue +++ b/src/views/dashboard/Dashboard.vue @@ -1,81 +1,37 @@ - 欢迎使用后台管理系统 - {{ currentTime }} - - - - 小区总数 - {{ stats.communityCount }} - - - 楼栋总数 - {{ stats.buildingCount }} - - - 用户总数 - {{ stats.userCount }} - - - 今日活跃 - {{ stats.activeCount }} + + + 欢迎使用蜂快运营管理系统 + {{ greeting }} + + \ No newline at end of file
{{ currentTime }}
{{ greeting }}