diff --git a/dist.zip b/dist.zip new file mode 100644 index 0000000..340d723 Binary files /dev/null and b/dist.zip differ diff --git a/src/router/index.js b/src/router/index.js index bcb9e87..223cfca 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -48,6 +48,8 @@ const mainRoutes = { { path: '/user-point-memery', component: _import('modules/user/user-point-memery'), name: 'user-point-memery', meta: { title: '充/扣记录', isTab: true } }, { path: '/order-epay', component: _import('modules/order/order-errorpay'), name: 'order-epay', meta: { title: '充值异常列表', isTab: true } }, { path: '/xieyi_list', component: _import('modules/xieyi/xieyi'), name: 'xieyi_list', meta: { title: '协议管理', isTab: true } }, + { path: '/book-comments', component: _import('modules/book/bookComments'), name: 'book-comments', meta: { title: '书评管理', isTab: true } }, + { path: '/clock', component: _import('modules/book/clock'), name: 'clock', meta: { title: '打卡管理', isTab: true } }, ], beforeEnter (to, from, next) { diff --git a/src/views/modules/book/book-add-or-update.vue b/src/views/modules/book/book-add-or-update.vue index 9d36d18..cd774d9 100644 --- a/src/views/modules/book/book-add-or-update.vue +++ b/src/views/modules/book/book-add-or-update.vue @@ -64,6 +64,11 @@ + + + {{item.dictValue}} + + @@ -90,13 +95,36 @@ + + + + + + + + + + + 参与打卡 + 不参与打卡 + + + + 付费 会免 免费 + @@ -191,6 +219,7 @@ export default { dataForm: { id: 0, name: '', + splits:0, authorId: [], description: '', title: '', @@ -199,7 +228,7 @@ export default { price: '', salePrice:'', istop: '', - isVip:'', + isVip:0, freeChapterCount:0, isSale: '', publisherId: [], @@ -210,9 +239,13 @@ export default { updateTime: '', sort: '', delFlag: '', - novel : '' + novel: '', + canListen: false, + clockIn:0, }, + splitsTypeList:[], dataRule: { + // name: [ // { required: true, message: '书名不能为空', trigger: 'blur' } // ], @@ -258,9 +291,9 @@ export default { // sort: [ // { required: true, message: '排序不能为空', trigger: 'blur' } // ], - // delFlag: [ - // { required: true, message: '删除标记不能为空', trigger: 'blur' } - // ] + // splits: [ + // { required: true, message: '拆分类类型不能为空', trigger: 'blur' } + // ] } } }, @@ -296,6 +329,7 @@ export default { 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 @@ -305,6 +339,7 @@ export default { this.dataForm.sort = data.book.sort this.dataForm.delFlag = data.book.delFlag this.dataForm.novel = data.book.novel + this.dataForm.clockIn = data.book.clockIn var checklist = data.book.type var authorList = data.book.authorId var publisherlish = data.book.publisherId @@ -363,7 +398,10 @@ export default { 'updateTime': this.dataForm.updateTime, 'sort': this.dataForm.sort, 'delFlag': this.dataForm.delFlag, - 'novel' : this.dataForm.novel + 'novel': this.dataForm.novel, + 'splits': this.dataForm.splits, + 'canListen': this.dataForm.canListen, + 'clockIn': this.dataForm.clockIn }) }).then(({ data }) => { if (data && data.code === 0) { @@ -403,6 +441,14 @@ export default { 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 + }) }, handleRemove(file) { this.dataForm.images = ''; diff --git a/src/views/modules/book/book.vue b/src/views/modules/book/book.vue index 6a40a7e..3a75e1b 100644 --- a/src/views/modules/book/book.vue +++ b/src/views/modules/book/book.vue @@ -124,11 +124,17 @@ -->