diff --git a/src/layouts/BasicLayout.vue b/src/layouts/BasicLayout.vue
index 699190a..a821e84 100644
--- a/src/layouts/BasicLayout.vue
+++ b/src/layouts/BasicLayout.vue
@@ -43,6 +43,16 @@
+
+
+
+
+ 订单管理
+
+ 配送订单
+
+
+
@@ -120,6 +130,7 @@ import {
DashboardOutlined,
ShopOutlined,
SettingOutlined,
+ ShoppingOutlined,
} from '@ant-design/icons-vue'
import { useRouter } from 'vue-router'
@@ -135,6 +146,7 @@ export default defineComponent({
DashboardOutlined,
ShopOutlined,
SettingOutlined,
+ ShoppingOutlined,
},
setup() {
const router = useRouter()
@@ -156,12 +168,102 @@ export default defineComponent({
router.push('/login')
}
+ const menuItems = ref([
+ {
+ key: 'dashboard',
+ icon: () => h(DashboardOutlined),
+ title: '工作台',
+ path: '/dashboard'
+ },
+ {
+ key: 'user',
+ icon: () => h(UserOutlined),
+ title: '用户管理',
+ children: [
+ {
+ key: 'user-list',
+ title: '用户列表',
+ path: '/user/list'
+ }
+ ]
+ },
+ {
+ key: 'community',
+ icon: () => h(HomeOutlined),
+ title: '小区管理',
+ children: [
+ {
+ key: 'community-list',
+ title: '小区列表',
+ path: '/community/list'
+ },
+ {
+ key: 'building-list',
+ title: '楼栋列表',
+ path: '/community/building'
+ },
+ {
+ key: 'station-list',
+ title: '驿站列表',
+ path: '/community/station'
+ }
+ ]
+ },
+ {
+ key: 'order',
+ icon: () => h(ShoppingOutlined),
+ title: '订单管理',
+ children: [
+ {
+ key: 'order-delivery',
+ title: '配送订单',
+ path: '/order/delivery'
+ }
+ ]
+ },
+ {
+ key: 'merchant',
+ icon: () => h(ShopOutlined),
+ title: '商家管理',
+ children: [
+ {
+ key: 'merchant-list',
+ title: '商家列表',
+ path: '/merchant/list'
+ },
+ {
+ key: 'merchant-categories',
+ title: '商家分类',
+ path: '/merchant/categories'
+ },
+ {
+ key: 'merchant-products',
+ title: '商品列表',
+ path: '/merchant/products'
+ }
+ ]
+ },
+ {
+ key: 'system',
+ icon: () => h(SettingOutlined),
+ title: '系统管理',
+ children: [
+ {
+ key: 'system-logs',
+ title: '日志查询',
+ path: '/system/logs'
+ }
+ ]
+ }
+ ])
+
return {
collapsed,
selectedKeys,
openKeys,
userInfo,
- handleLogout
+ handleLogout,
+ menuItems
}
},
})
diff --git a/src/router/index.js b/src/router/index.js
index a194d3a..f908cf1 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -78,6 +78,17 @@ const routes = [
meta: { title: '日志查询' }
}
]
+ },
+ {
+ path: '/order',
+ component: BasicLayout,
+ children: [
+ {
+ path: 'delivery',
+ component: () => import('@/views/order/DeliveryList.vue'),
+ meta: { title: '配送订单' }
+ }
+ ]
}
]
diff --git a/src/views/order/DeliveryList.vue b/src/views/order/DeliveryList.vue
new file mode 100644
index 0000000..b95b0a4
--- /dev/null
+++ b/src/views/order/DeliveryList.vue
@@ -0,0 +1,325 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 已创建
+ 未支付
+ 已接单
+ 配送中
+ 已完成
+ 已取消
+
+
+
+
+
+
+ 查询
+
+
+ 重置
+
+
+
+
+
+
+
+
+
+
+
+ {{ getStatusText(record.status) }}
+
+
+
+
+ ¥{{ record[column.dataIndex] }}
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file