From 0cafd0c7f32c961ccf76dff2b813bf93f7fc049b Mon Sep 17 00:00:00 2001 From: fan <18706759286@163.com> Date: Tue, 22 Oct 2019 17:24:41 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E8=AE=A1=E5=B9=B3=E5=8F=B0=E8=AF=BE?= =?UTF-8?q?=E7=A8=8B=E7=B3=BB=E7=BB=9F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/baseUrl.js | 4 +- src/views/designPlatform/demonList.vue | 1 - src/views/lesson/details.vue | 48 ++++++-- src/views/lesson/home.vue | 30 ++--- .../lessoncategory/edit/chapter/index.vue | 12 +- .../lessoncategory/edit/lesson/index.vue | 9 +- src/views/lesson/lessoncategory/index.vue | 23 ++++ src/views/lesson/operateMenu.vue | 107 ++++++++++++++++++ src/views/teach/detail/index.vue | 1 + 9 files changed, 199 insertions(+), 36 deletions(-) create mode 100644 src/views/lesson/operateMenu.vue diff --git a/src/utils/baseUrl.js b/src/utils/baseUrl.js index 5935e41a6..871e8ec9c 100644 --- a/src/utils/baseUrl.js +++ b/src/utils/baseUrl.js @@ -3,9 +3,9 @@ export function getBaseUrl() { let BASE_API; if (process.env.NODE_ENV === 'development') { // BASE_API = 'https://joylink.club/jlcloud'; - // BASE_API = 'https://test.joylink.club/jlcloud'; + BASE_API = 'https://test.joylink.club/jlcloud'; // BASE_API = 'http://192.168.3.5:9000'; // 袁琪 - BASE_API = 'http://192.168.3.6:9000'; // 旭强 + // BASE_API = 'http://192.168.3.6:9000'; // 旭强 // BASE_API = 'http://192.168.3.41:9000'; // 王兴杰 } else { BASE_API = process.env.VUE_APP_BASE_API; diff --git a/src/views/designPlatform/demonList.vue b/src/views/designPlatform/demonList.vue index 3acbc2e59..098e8b2c1 100644 --- a/src/views/designPlatform/demonList.vue +++ b/src/views/designPlatform/demonList.vue @@ -29,7 +29,6 @@ diff --git a/src/views/lesson/lessoncategory/edit/lesson/index.vue b/src/views/lesson/lessoncategory/edit/lesson/index.vue index 145c7fd30..2d3342d5f 100644 --- a/src/views/lesson/lessoncategory/edit/lesson/index.vue +++ b/src/views/lesson/lessoncategory/edit/lesson/index.vue @@ -57,9 +57,10 @@ diff --git a/src/views/lesson/lessoncategory/index.vue b/src/views/lesson/lessoncategory/index.vue index 5c6a63fda..496b0030f 100644 --- a/src/views/lesson/lessoncategory/index.vue +++ b/src/views/lesson/lessoncategory/index.vue @@ -46,6 +46,28 @@ export default { return this.$store.state.app.height - 125; } }, + watch: { + $route() { + const data = this.$route.query; + switch (this.$route.params.type) { + case 'lessonCreate': + this.lessonCreate(data); + break; + case 'lessonEdit': + this.lessonEdit(data); + break; + case 'chapterCreate': + this.chapterCreate(data); + break; + case 'chapterEdit': + this.chapterEdit(data); + break; + case 'treeSort': + this.treeSort(data); + break; + } + } + }, mounted() { const data = this.$route.query; switch (this.$route.params.type) { @@ -112,6 +134,7 @@ export default { }); }, refresh(filterSelect) { + this.$emit('refresh'); } } }; diff --git a/src/views/lesson/operateMenu.vue b/src/views/lesson/operateMenu.vue new file mode 100644 index 000000000..1962045df --- /dev/null +++ b/src/views/lesson/operateMenu.vue @@ -0,0 +1,107 @@ + + + diff --git a/src/views/teach/detail/index.vue b/src/views/teach/detail/index.vue index 1f3805e19..3af7d8448 100644 --- a/src/views/teach/detail/index.vue +++ b/src/views/teach/detail/index.vue @@ -15,6 +15,7 @@ :props="defaultProps" :filter-node-method="filterNode" highlight-current + default-expand-all :default-expanded-keys="expandList" :span="22" @node-click="clickEvent"