This commit is contained in:
@fawn-nine
2023-09-26 13:56:34 +08:00
parent bc111c4abe
commit 7a07799c68
4 changed files with 46 additions and 8 deletions

View File

@@ -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) {

View File

@@ -20,7 +20,7 @@
</el-row> -->
<el-row>
<el-col :span="12">
<el-form-item label="作者" prop="authorId">
<!-- <el-form-item label="作者" prop="authorId">
<el-select
v-model="dataForm.authorId"
multiple
@@ -36,6 +36,9 @@
:value="item.id + ''">
</el-option>
</el-select>
</el-form-item> -->
<el-form-item label="作者" prop="publisherName">
<el-input v-model="dataForm.publisherName" placeholder="请输入作者" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
@@ -118,6 +121,14 @@
</el-radio-group>
</el-form-item>
<el-form-item label="是否参与讲书" prop="teachIn" label-width="250">
<el-radio-group v-model="dataForm.teachIn">
<!-- <el-radio :label="3">听书</el-radio> -->
<el-radio :label="1">参与</el-radio>
<el-radio :label="0">不参与</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item label="付费类型" prop="isVip">
<el-radio-group v-model="dataForm.isVip">
<!-- <el-radio :label="3">听书</el-radio> -->
@@ -219,6 +230,7 @@ export default {
dataForm: {
id: 0,
name: '',
publisherName:'',
splits:0,
authorId: [],
description: '',
@@ -242,6 +254,7 @@ export default {
novel: '',
canListen: false,
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) {

View File

@@ -118,20 +118,40 @@
</el-table-column> -->
<el-table-column fixed="right" header-align="center" align="center" width="150" label="操作">
<template slot-scope="scope">
<el-dropdown style="border: 1px solid #17B3A3; border-radius: 5px; padding: 4px;">
<span class="el-dropdown-link" style="color:#17B3A3">
操作管理<i class="el-icon-arrow-down el-icon--right"></i>
</span>
<el-dropdown-menu slot="dropdown">
<el-dropdown-item>
<router-link :to="{path: 'book-comments' , query:{ id : scope.row.id} }">
<el-button type="text" size="small">书评管理</el-button>
</router-link>
</el-dropdown-item>
<el-dropdown-item>
<router-link :to="{path: 'clock' , query:{ id : scope.row.id} }">
<el-button type="text" size="small">打卡管理</el-button>
</router-link>
</el-dropdown-item>
<el-dropdown-item>
<router-link :to="{path: 'book-bookchapter' , query:{ id : scope.row.id , pageIndex} }">
<el-button type="text" size="small">章节列表</el-button>
<el-button type="text" size="small">章节管理</el-button>
</router-link>
</el-dropdown-item>
<el-dropdown-item>
<router-link :to="{path: 'talkBook' , query:{ id : scope.row.id , pageIndex} }">
<el-button type="text" size="small">讲书管理</el-button>
</router-link>
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
<!-- <el-button v-if="scope.row.chapterStatus == '未处理' || scope.row.chapterStatus == '失败'" type="text" size="small" @click="chapterHandle(scope.row.id,scope.row)">章节拆分</el-button> -->
<!-- <el-button v-if="scope.row.chapterStatus == '成功' && (scope.row.contentStatus == '未处理' || scope.row.contentStatus == '失败') " type="text" size="small" @click="contentHandle(scope.row.id)">单句拆分</el-button> -->
<!-- <el-button v-if="scope.row.contentStatus == '成功' && (scope.row.voicesStatus == '未处理' || scope.row.voicesStatus == '失败') " type="text" size="small" @click="voicesHandle(scope.row.id)">音频处理</el-button> -->
<div>
<el-button type="text" size="small" @click="addOrUpdateHandle(scope.row.id)">修改</el-button>
<el-button type="text" size="small" @click="deleteHandle(scope.row.id)">删除</el-button>
</div>
</template>
</el-table-column>
</el-table>

View File

@@ -34,7 +34,7 @@
<el-button slot="trigger" size="small" type="primary">上传文件</el-button>
</el-upload>
<!-- 进度条 -->
<el-progress v-show="progressFlag" :percentage="progressPercent"></el-progress>
<!-- <el-progress v-show="progressFlag" :percentage="progressPercent"></el-progress> -->
<!-- <audio controls="controls" hidden src="./static/audio/tsy.wav" ref="audio"></audio> -->
<audio id="resource" :src="dataForm.voices" controls v-show='true'></audio>
</el-form-item>