diff --git a/src/router/modules/order.js b/src/router/modules/order.js new file mode 100644 index 0000000..d28741e --- /dev/null +++ b/src/router/modules/order.js @@ -0,0 +1,27 @@ +/** When your routing table is too long, you can split it into small modules**/ + +import Layout from '@/layout' + +const orderRouter = { + path: '/orders', + component: Layout, + redirect: '/order/page', + alwaysShow: true, // will always show the root menu + name: 'Order', + meta: { + title: 'orders', + icon: 'shopping', + roles: ['admin', 'assistant', 'runner', 'shoper'] // you can set roles in root nav + }, + children: [{ + path: 'page', + component: () => import('@/views/order/list'), + name: 'OrderList', + meta: { + title: 'OrderList', + roles: ['admin', 'assistant', 'runner', 'shoper'] // or you can only set roles in sub nav + } + }] +} + +export default orderRouter diff --git a/src/router/modules/sites.js b/src/router/modules/sites.js new file mode 100644 index 0000000..6ce6943 --- /dev/null +++ b/src/router/modules/sites.js @@ -0,0 +1,26 @@ +import Layout from '@/layout' + +const sitesRouter = { + path: '/sites', + component: Layout, + redirect: '/site/page', + alwaysShow: true, // will always show the root menu + name: 'Site', + meta: { + title: 'sites', + icon: 'people', + roles: ['admin', 'assistant', 'runner'] // you can set roles in root nav + }, + children: [{ + path: 'page', + component: () => import('@/views/site/list'), + name: 'SiteList', + meta: { + title: '站点列表', + roles: ['admin', 'runner'] + + } + }] +} + +export default sitesRouter diff --git a/src/views/dashboard/runner/index.vue b/src/views/dashboard/runner/index.vue new file mode 100755 index 0000000..e2085a6 --- /dev/null +++ b/src/views/dashboard/runner/index.vue @@ -0,0 +1,72 @@ + + + + + diff --git a/src/views/order/list.vue b/src/views/order/list.vue new file mode 100755 index 0000000..f67b8cf --- /dev/null +++ b/src/views/order/list.vue @@ -0,0 +1,621 @@ + + + diff --git a/src/views/prod/list.vue b/src/views/prod/list.vue new file mode 100755 index 0000000..02cb401 --- /dev/null +++ b/src/views/prod/list.vue @@ -0,0 +1,203 @@ + + + + + + + diff --git a/src/views/site/list.vue b/src/views/site/list.vue new file mode 100644 index 0000000..a3fe0b7 --- /dev/null +++ b/src/views/site/list.vue @@ -0,0 +1,191 @@ + + + + +