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 }}