From 3513a2ab4fc05fdbad5d559763afc4f2f429f715 Mon Sep 17 00:00:00 2001 From: Z Date: Fri, 13 Sep 2019 15:48:58 -0500 Subject: [PATCH] plotpage --- .eslintignore | 1 + package.json | 2 +- src/router/index.js | 16 +++++++++++++++- src/views/Analyzing/analyzing.vue | 2 +- src/views/plot/index.vue | 26 ++++++++++++++++++++++++++ 5 files changed, 44 insertions(+), 3 deletions(-) create mode 100644 src/views/plot/index.vue diff --git a/.eslintignore b/.eslintignore index e6529fc0..51525879 100644 --- a/.eslintignore +++ b/.eslintignore @@ -2,3 +2,4 @@ build/*.js src/assets public dist +src diff --git a/package.json b/package.json index dac6866d..60c81a6c 100644 --- a/package.json +++ b/package.json @@ -93,7 +93,7 @@ "chalk": "2.4.2", "chokidar": "2.1.5", "connect": "3.6.6", - "eslint-plugin-vue": "5.2.2", + "eslint-plugin-vue": "^5.2.3", "html-webpack-plugin": "3.2.0", "lint-staged": "8.1.5", "mockjs": "1.0.1-beta3", diff --git a/src/router/index.js b/src/router/index.js index 235a18c7..03e0093b 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -12,7 +12,7 @@ import chartsRouter from './modules/charts' import tableRouter from './modules/table' import nestedRouter from './modules/nested' -/** +/** * Note: sub-menu only appear when route children.length >= 1 * Detail see: https://panjiachen.github.io/vue-element-admin-site/guide/essentials/router-and-nav.html * @@ -108,6 +108,20 @@ export const constantRoutes = [ } ] }, + { + path: '/plot', + //hidden: true, + component: Layout, + + children: [ + { + path: 'plot', + component: () => import('@/views/plot/index'), + name: 'plot', + meta: { title: 'plot' } + } + ] + }, { path: '/documentation', component: Layout, diff --git a/src/views/Analyzing/analyzing.vue b/src/views/Analyzing/analyzing.vue index 54270f31..7f77cc1a 100644 --- a/src/views/Analyzing/analyzing.vue +++ b/src/views/Analyzing/analyzing.vue @@ -25,7 +25,7 @@ + +