From 5cb37594009b8d245707447f26ee774ce0991401 Mon Sep 17 00:00:00 2001 From: "Adam.Gong" Date: Sun, 10 May 2020 03:06:44 +0800 Subject: [PATCH] auto commit the code by alias command --- src/router/modules/order.js | 27 ++ src/router/modules/sites.js | 26 ++ src/views/dashboard/runner/index.vue | 72 ++++ src/views/order/list.vue | 621 +++++++++++++++++++++++++++++++++++ src/views/prod/list.vue | 203 ++++++++++++ src/views/site/list.vue | 191 +++++++++++ 6 files changed, 1140 insertions(+) create mode 100644 src/router/modules/order.js create mode 100644 src/router/modules/sites.js create mode 100755 src/views/dashboard/runner/index.vue create mode 100755 src/views/order/list.vue create mode 100755 src/views/prod/list.vue create mode 100644 src/views/site/list.vue 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 @@ + + + + + -- 2.0.0