diff --git a/src/router/index.js b/src/router/index.js
index 973b448..7ab703c 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -61,6 +61,8 @@ const mainRoutes = {
{ path: '/commentsList', component: _import('modules/book/commentsList'), name: 'commentsList', meta: { title: '评论管理', isTab: true } },
{ path: '/course-courseList', component: _import('modules/course/courseList'), name: 'course-courseList', meta: { title: '课程列表', isTab: true } },
{ path: '/course-courseCatalogue', component: _import('modules/course/courseCatalogue'), name: 'course-courseCatalogue', meta: { title: '课程目录列表', isTab: true } },
+ { path: '/course-courseChapter', component: _import('modules/course/courseChapter'), name: 'course-courseChapter', meta: { title: '课程目录章节列表', isTab: true } },
+ { path: '/course-courseVideo', component: _import('modules/course/courseVideo'), name: 'course-courseVideo', meta: { title: '课程目录章节视频列表', isTab: true } },
],
beforeEnter (to, from, next) {
let token = Vue.cookie.get('token')
diff --git a/src/views/modules/course/chapter-add-or-update.vue b/src/views/modules/course/chapter-add-or-update.vue
new file mode 100644
index 0000000..eebb6d3
--- /dev/null
+++ b/src/views/modules/course/chapter-add-or-update.vue
@@ -0,0 +1,318 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/modules/course/course-add-or-update.vue b/src/views/modules/course/course-add-or-update.vue
index 0cff523..6de733f 100644
--- a/src/views/modules/course/course-add-or-update.vue
+++ b/src/views/modules/course/course-add-or-update.vue
@@ -281,99 +281,21 @@
}
},
created() {
- this.getBookList()
- this.loadAll()
},
mounted() {
// this.restaurants = this.loadAll();
},
methods: {
- init(id) {
- this.dataForm.id = id || 0
+ init(row) {
+ console.log('11111', row)
+ this.dataForm = row || {}
+ // this.dataForm.id = row.id || 0
+ // this.dataForm.title = row.title || ''
this.visible = true
- // this.$nextTick(() => {
- // this.$refs['dataForm'].resetFields()
- // if (this.dataForm.id) {
- // this.$http({
- // url: this.$http.adornUrl(`/book/book/info/${this.dataForm.id}`),
- // method: 'get',
- // params: this.$http.adornParams()
- // }).then(({
- // data
- // }) => {
- // if (data && data.code === 0) {
- // this.dataForm.name = data.book.name
- // this.dataForm.publisherName = data.book.dataForm
- // // this.dataForm.authorId = data.book.authorId
- // this.dataForm.description = data.book.description
- // this.dataForm.title = data.book.title
- // this.dataForm.bookType = data.book.bookType
- // this.dataForm.content = data.book.content
- // // this.dataForm.type = data.book.type
- // // this.dataForm.price = data.book.price
- // // this.dataForm.salePrice = data.book.salePrice
- // // this.dataForm.istop = data.book.istop
- // this.dataForm.isVip = data.book.isVip
- // // this.dataForm.isSale = data.book.isSale
- // this.dataForm.freeChapterCount = data.book.freeChapterCount
- // this.dataForm.splits = data.book.splits
- // // this.dataForm.publisherId = data.book.publisherId
- // this.dataForm.images = data.book.images
- // this.dataForm.pid = data.book.pid
- // this.dataForm.level = data.book.level
- // this.dataForm.createTime = data.book.createTime
- // this.dataForm.updateTime = data.book.updateTime
- // this.dataForm.sort = data.book.sort
- // this.dataForm.delFlag = data.book.delFlag
- // this.dataForm.novel = data.book.novel
- // this.dataForm.clockIn = data.book.clockIn
- // this.dataForm.teachIn = data.book.teachIn
- // this.dataForm.canListen = data.book.canListen
- // this.dataForm.relationId = data.book.relationId
- // var checklist = data.book.type
- // var medicaldeschecklist = data.book.medicaldesBookType
- // var authorList = data.book.authorId
- // var publisherlish = data.book.publisherId
- // if (data.book.authorId != "") {
- // this.dataForm.authorId = authorList.split(',')
- // }
- // if (data.book.publisherId != "") {
- // this.dataForm.publisherId = publisherlish.split(',')
- // }
-
- // this.dataForm.type = checklist.split(',')
- // this.dataForm.medicaldesBookType = medicaldeschecklist.split(',')
- // for (let i = 0; i < this.dataForm.medicaldesBookType.length; i++) {
- // this.dataForm.medicaldesBookType[i] = parseInt(this.dataForm.medicaldesBookType[i]);
- // }
- // console.log(this.dataForm.type)
- // console.log('2222222222', this.dataForm.medicaldesBookType)
- // if (data.book.images != "") {
- // var img = {
- // name: '',
- // url: data.book.images
- // }
- // var attr = []
- // attr.push(img)
- // this.fileList = attr
- // }
- // if (data.book.novel != "" && data.book.novel != null && data.book.novel != 'undefined') {
- // var novel = {
- // name: '电子书文件',
- // url: data.book.novel
- // }
- // var attr = []
- // attr.push(novel)
- // this.fileListNovel = attr
- // }
- // }
- // })
- // }
- // })
},
// 表单提交
dataFormSubmit() {
- console.log('11111', this.dataForm.medicaldesBookType)
+ // console.log('11111', this.dataForm.medicaldesBookType)
// if (this.dataForm.medicaldesBookType.length == 0) {
// this.$message.error("请选择图书类型");
// return
@@ -439,43 +361,6 @@
this.$message.error("上传失败");
}
},
- //图书分类
- getBookList() {
- this.$http({
- url: this.$http.adornUrl('/book/sysdictdata/selectByType/book_type'),
- method: 'get',
- // params: this.$http.adornParams({
- // 'type': 'book_type',
- // })
- }).then(({
- data
- }) => {
- console.log(data)
- // this.bookList = data.dataList
- })
-
- // 获取图书拆分类型
- this.$http({
- url: this.$http.adornUrl('/book/sysdictdata/selectByType/splitsType'),
- method: 'get',
- }).then(({
- data
- }) => {
- this.splitsTypeList = data.dataList
- })
-
-
- // 获取古书
- this.$http({
- url: this.$http.adornUrl('/book/book/getAncientBooks'),
- method: 'post',
- }).then(({
- data
- }) => {
- this.gushuList= data.books
- })
-
- },
handleRemove(file) {
this.dataForm.images = '';
},
@@ -518,25 +403,6 @@
// return (restaurant.value.toLowerCase().indexOf(queryString.toLowerCase()) === 0);
// };
// },
- loadAll() {
- this.$http({
- url: this.$http.adornUrl('/book/author/bookAuthorList'),
- method: 'get',
- }).then(({
- data
- }) => {
- this.authorList = data.list
- })
- this.$http({
- url: this.$http.adornUrl('/book/publisher/publisherList'),
- method: 'get',
- }).then(({
- data
- }) => {
- this.publisherList = data.list
- })
-
- },
// handleSelect(item) {
// this.dataForm.authorId = item.id
// console.log(item);
diff --git a/src/views/modules/course/courseCatalogue.vue b/src/views/modules/course/courseCatalogue.vue
index 59b5164..308f82d 100644
--- a/src/views/modules/course/courseCatalogue.vue
+++ b/src/views/modules/course/courseCatalogue.vue
@@ -1,12 +1,12 @@
-
+
查询
- 新增
+ 新增
-
+
章节管理
修改
diff --git a/src/views/modules/course/courseChapter.vue b/src/views/modules/course/courseChapter.vue
new file mode 100644
index 0000000..51d906a
--- /dev/null
+++ b/src/views/modules/course/courseChapter.vue
@@ -0,0 +1,252 @@
+
+
+
+
+
+ 查询
+ 新增
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 视频管理
+
+ 修改
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/modules/course/courseList.vue b/src/views/modules/course/courseList.vue
index 1f0b0f0..55f5d65 100644
--- a/src/views/modules/course/courseList.vue
+++ b/src/views/modules/course/courseList.vue
@@ -12,7 +12,7 @@
-->
查询
- 新增
+ 新增
@@ -157,7 +157,7 @@
目录管理
- 修改
+ 修改
删除
@@ -248,10 +248,10 @@ export default {
this.dataListSelections = val
},
// 新增 / 修改
- addOrUpdateHandle(id) {
+ addOrUpdateHandle(row) {
this.addOrUpdateVisible = true
this.$nextTick(() => {
- this.$refs.addOrUpdate.init(id)
+ this.$refs.addOrUpdate.init(row)
})
},
// 删除
diff --git a/src/views/modules/course/courseVideo.vue b/src/views/modules/course/courseVideo.vue
new file mode 100644
index 0000000..9b4c87b
--- /dev/null
+++ b/src/views/modules/course/courseVideo.vue
@@ -0,0 +1,253 @@
+
+
+
+
+
+ 查询
+ 新增
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 视频管理
+
+ 修改
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/modules/course/video-add-or-update.vue b/src/views/modules/course/video-add-or-update.vue
new file mode 100644
index 0000000..b34046a
--- /dev/null
+++ b/src/views/modules/course/video-add-or-update.vue
@@ -0,0 +1,360 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+