From 7a07799c68e511a33929c77afb9699bc64d8246b Mon Sep 17 00:00:00 2001 From: "@fawn-nine" <1271023382@qq.com> Date: Tue, 26 Sep 2023 13:56:34 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=B2=E4=B9=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 1 + src/views/modules/book/book-add-or-update.vue | 23 +++++++++++++-- src/views/modules/book/book.vue | 28 ++++++++++++++++--- .../book/bookchapter-add-or-update.vue | 2 +- 4 files changed, 46 insertions(+), 8 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index 223cfca..b554a6a 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -50,6 +50,7 @@ const mainRoutes = { { 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 } }, + { path: '/talkBook', component: _import('modules/book/talkBook'), name: 'talkBook', 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 191e86a..f7d9bf9 100644 --- a/src/views/modules/book/book-add-or-update.vue +++ b/src/views/modules/book/book-add-or-update.vue @@ -20,7 +20,7 @@ --> - + + + @@ -118,6 +121,14 @@ + + + + 参与 + 不参与 + + + @@ -219,6 +230,7 @@ export default { dataForm: { id: 0, name: '', + publisherName:'', splits:0, authorId: [], description: '', @@ -241,7 +253,8 @@ export default { delFlag: '', novel: '', canListen: false, - clockIn:0, + clockIn: 0, + teachIn: '0', }, splitsTypeList:[], dataRule: { @@ -318,6 +331,7 @@ export default { }).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 @@ -340,6 +354,7 @@ export default { this.dataForm.delFlag = data.book.delFlag this.dataForm.novel = data.book.novel this.dataForm.clockIn = data.book.clockIn + this.dataForm.teachIn = data.book.teachIn var checklist = data.book.type var authorList = data.book.authorId var publisherlish = data.book.publisherId @@ -382,6 +397,7 @@ export default { 'authorId': this.dataForm.authorId.join(','), 'description': this.dataForm.description, 'title': this.dataForm.title, + 'publisherName': this.dataForm.publisherName, 'content': this.dataForm.content, 'type': this.dataForm.type.join(','), // 'price': this.dataForm.price, @@ -401,7 +417,8 @@ export default { 'novel': this.dataForm.novel, 'splits': this.dataForm.splits, 'canListen': this.dataForm.canListen, - 'clockIn': this.dataForm.clockIn + 'clockIn': this.dataForm.clockIn, + 'teachIn': this.dataForm.teachIn }) }).then(({ data }) => { if (data && data.code === 0) { diff --git a/src/views/modules/book/book.vue b/src/views/modules/book/book.vue index 9a9461a..3dca10a 100644 --- a/src/views/modules/book/book.vue +++ b/src/views/modules/book/book.vue @@ -118,20 +118,40 @@ --> diff --git a/src/views/modules/book/bookchapter-add-or-update.vue b/src/views/modules/book/bookchapter-add-or-update.vue index 2d312d9..8418e34 100644 --- a/src/views/modules/book/bookchapter-add-or-update.vue +++ b/src/views/modules/book/bookchapter-add-or-update.vue @@ -34,7 +34,7 @@ 上传文件 - +