From 0e23a62b392af5b63d6b5844c130339bb59ddcc9 Mon Sep 17 00:00:00 2001 From: fan <18706759286@163.com> Date: Tue, 22 Oct 2019 16:05:58 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E8=B0=83=E6=95=B4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 23 ++- src/views/approval/lesson/detail.vue | 179 +++++++++--------- src/views/lesson/details.vue | 106 +++++++++-- src/views/lesson/home.vue | 1 + .../lessoncategory/edit/lesson/index.vue | 16 +- src/views/lesson/lessoncategory/index.vue | 50 +++-- 6 files changed, 226 insertions(+), 149 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index 0ff6e27a3..0c38f881b 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -37,6 +37,7 @@ import TrainingRuleEdit from '@/views/lesson/trainingRule/detail/index'; import Trainingmanage from '@/views/lesson/trainingmanage/index'; import LessonEdit from '@/views/lesson/lessoncategory/index'; import LessonHome from '@/views/lesson/home'; +import LessonDetail from '@/views/lesson/details'; import ScriptmanageHome from '@/views/scriptManage/home'; import ScriptDisplay from '@/views/scriptManage/display/index'; @@ -358,11 +359,11 @@ export const asyncRouter = [ component: Mapedit, hidden: true }, - { - path: 'lesson/edit/:type', - component: LessonEdit, - hidden: true - }, + // { + // path: 'lesson/edit/:type', + // component: LessonEdit, + // hidden: true + // }, { path: 'runPlan/detail/:mapId', component: PlanMonitorDetail, @@ -381,6 +382,18 @@ export const asyncRouter = [ component: LessonHome, hidden: true }, + { + path: 'lesson/details', + component: LessonDetail, + hidden: true, + children: [ + { + path: 'edit/:type', + component: LessonEdit, + hidden: true + } + ] + }, { path: 'lesson/training/:trainingId/:trainingName', component: TrainingrecordManage, diff --git a/src/views/approval/lesson/detail.vue b/src/views/approval/lesson/detail.vue index 299666776..f17d8e1b8 100644 --- a/src/views/approval/lesson/detail.vue +++ b/src/views/approval/lesson/detail.vue @@ -1,100 +1,101 @@ diff --git a/src/views/lesson/details.vue b/src/views/lesson/details.vue index 7ab1ebdfe..60fc6aea4 100644 --- a/src/views/lesson/details.vue +++ b/src/views/lesson/details.vue @@ -1,31 +1,50 @@ + diff --git a/src/views/lesson/home.vue b/src/views/lesson/home.vue index 3b429005b..9a9e49b91 100644 --- a/src/views/lesson/home.vue +++ b/src/views/lesson/home.vue @@ -342,6 +342,7 @@ export default { }, goDetail(index, row) { // this.$refs.lessonDetail.show(row.id); + this.$router.push({path: `/design/lesson/details`, query: {lessonId: row.id, skinCode: this.$route.params.skinCode}}); } } }; diff --git a/src/views/lesson/lessoncategory/edit/lesson/index.vue b/src/views/lesson/lessoncategory/edit/lesson/index.vue index 1d50075fd..145c7fd30 100644 --- a/src/views/lesson/lessoncategory/edit/lesson/index.vue +++ b/src/views/lesson/lessoncategory/edit/lesson/index.vue @@ -44,12 +44,12 @@
@@ -178,7 +178,7 @@ export default { this.courseModel = { id: data.id, skinCode: this.$route.query.skinCode, - prdCode: data.prdCode, + prdCode: data.prdCode, name: data.name, remarks: data.remarks }; @@ -187,9 +187,9 @@ export default { }); } }, - back() { - this.$router.back(); - } + back() { + this.$router.back(); + } } }; diff --git a/src/views/lesson/lessoncategory/index.vue b/src/views/lesson/lessoncategory/index.vue index 505804f80..5c6a63fda 100644 --- a/src/views/lesson/lessoncategory/index.vue +++ b/src/views/lesson/lessoncategory/index.vue @@ -1,7 +1,7 @@ From 2282f27239f77f067faeac9211064239ab57fcf2 Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Tue, 22 Oct 2019 16:10:39 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E8=AE=BE=E8=AE=A1=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E8=BF=90=E8=A1=8C=E5=9B=BE=E6=A0=B7=E5=BC=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/planMonitor/detail.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/planMonitor/detail.vue b/src/views/planMonitor/detail.vue index ea5874fa4..3b148e9b8 100644 --- a/src/views/planMonitor/detail.vue +++ b/src/views/planMonitor/detail.vue @@ -1,6 +1,6 @@