From ca7b21e61e8004cb78dc8afa72671b60351797ef Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Thu, 15 Aug 2019 09:04:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=89=A7=E6=9C=AC=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 30 ++++- src/views/scriptManage/category/tree.vue | 105 +++++++++++++++ src/views/scriptManage/detail/index.vue | 36 +++++ src/views/scriptManage/home.vue | 124 ++++++++++++++++++ src/views/scriptManage/index.vue | 59 +++++++++ .../scriptmanage/create.vue | 0 .../scriptmanage/list.vue | 0 7 files changed, 351 insertions(+), 3 deletions(-) create mode 100644 src/views/scriptManage/category/tree.vue create mode 100644 src/views/scriptManage/detail/index.vue create mode 100644 src/views/scriptManage/home.vue create mode 100644 src/views/scriptManage/index.vue rename src/views/{lesson => scriptManage}/scriptmanage/create.vue (100%) rename src/views/{lesson => scriptManage}/scriptmanage/list.vue (100%) diff --git a/src/router/index.js b/src/router/index.js index 04f01f7eb..9e431c4c6 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -36,7 +36,12 @@ import TrainingRuleList from '@/views/lesson/trainingRule/list'; import TrainingRuleEdit from '@/views/lesson/trainingRule/detail/index'; import Trainingmanage from '@/views/lesson/trainingmanage/index'; import Lessoncategory from '@/views/lesson/lessoncategory/index'; -import Scriptmanage from '@/views/lesson/scriptmanage/list'; +// import Scriptmanage from '@/views/lesson/scriptmanage/list'; + +import Scriptmanage from '@/views/scriptManage/index'; +import ScriptmanageHome from '@/views/scriptManage/home'; + +import ScriptDetail from '@/views/scriptManage/detail/index'; import Teach from '@/views/teach/index'; import TeachHome from '@/views/teach/home'; import TeachDetail from '@/views/teach/detail/index'; @@ -203,6 +208,10 @@ export const UrlConfig = { authorDraft: '/orderauthor/author/draft', transferDetail: '/orderauthor/transfer/detail', trainferPackage: '/orderauthor/transfer/package' + }, + script: { + prefix: '/script', + detail: '/script/detail' } }; @@ -445,11 +454,26 @@ export const asyncRouter = [ }, children: [ { - path: 'scriptManage', + path: '', + redirect: '/script/home', component: Scriptmanage, meta: { i18n: 'router.scriptManage' - } + }, + children: [ + { + path: 'home', + component: ScriptmanageHome, + meta: { + i18n: 'router.scriptManage' + } + }, + { + path: 'detail/:scriptId', + component: ScriptDetail, + hidden: true + } + ] } ] }, diff --git a/src/views/scriptManage/category/tree.vue b/src/views/scriptManage/category/tree.vue new file mode 100644 index 000000000..e6833ae19 --- /dev/null +++ b/src/views/scriptManage/category/tree.vue @@ -0,0 +1,105 @@ + + + \ No newline at end of file diff --git a/src/views/scriptManage/detail/index.vue b/src/views/scriptManage/detail/index.vue new file mode 100644 index 000000000..fae83fdb5 --- /dev/null +++ b/src/views/scriptManage/detail/index.vue @@ -0,0 +1,36 @@ + + \ No newline at end of file diff --git a/src/views/scriptManage/home.vue b/src/views/scriptManage/home.vue new file mode 100644 index 000000000..01ec730b2 --- /dev/null +++ b/src/views/scriptManage/home.vue @@ -0,0 +1,124 @@ + + + + diff --git a/src/views/scriptManage/index.vue b/src/views/scriptManage/index.vue new file mode 100644 index 000000000..c3f5ba921 --- /dev/null +++ b/src/views/scriptManage/index.vue @@ -0,0 +1,59 @@ + + + \ No newline at end of file diff --git a/src/views/lesson/scriptmanage/create.vue b/src/views/scriptManage/scriptmanage/create.vue similarity index 100% rename from src/views/lesson/scriptmanage/create.vue rename to src/views/scriptManage/scriptmanage/create.vue diff --git a/src/views/lesson/scriptmanage/list.vue b/src/views/scriptManage/scriptmanage/list.vue similarity index 100% rename from src/views/lesson/scriptmanage/list.vue rename to src/views/scriptManage/scriptmanage/list.vue