提交 dbf21160 authored 作者: 翟畅's avatar 翟畅

zc纸质书编辑

上级 1a11017d
......@@ -180,7 +180,6 @@
<div>
<el-form-item label="商品图片:" class="clear img_list">
<el-upload
:class="{hidePlay:dataForm.imgList.length>3}"
:action="`${fileUrl}upload`"
list-type="picture-card"
:file-list="playFileList"
......@@ -258,7 +257,6 @@ export default {
diyTypeCode: [],
id: null,
author: null,
authorList: [],
bookCatalog: null,
realPrice: '',
translator: null,
......@@ -357,14 +355,6 @@ export default {
translatorList: [],
labelWidth: '140px',
authors: [],
authorForm: {
authorList: [
{
author: null,
authorId: null
}
]
},
}
},
created() {
......@@ -399,7 +389,7 @@ export default {
}
isbnGetBookAPI(this.book_isbn).then(res => {
if(res.data.code == 0){
let {id,name,isbn,publisher,publishTime,keywords,cover,authorList,translator,executiveEditor,bookSeries,revision,fontCount,synopsis,productRecommendation,editRecommendation,digest,bookCatalog} = res.data.data
let {id,name,isbn,publisher,publishTime,keywords,cover,author,translator,executiveEditor,bookSeries,revision,fontCount,synopsis,productRecommendation,editRecommendation,digest,bookCatalog} = res.data.data
this.dataForm.ebookId = id
this.dataForm.name = name
this.dataForm.isbn = isbn
......@@ -408,10 +398,7 @@ export default {
this.dataForm.publishTime = publishTime
this.dataForm.keywords = keywords
this.dataForm.cover = cover
this.dataForm.authorList = authorList
if(authorList && authorList.length > 0) {
this.authorForm.authorList = authorList
}
this.dataForm.author = author
this.dataForm.translator = translator
this.dataForm.executiveEditor = executiveEditor
this.dataForm.bookSeries = bookSeries
......@@ -446,10 +433,6 @@ export default {
})
this.dataForm.diyTypeCode = arr
}
if(this.dataForm.authorList.length > 0) {
this.authorForm.authorList = res.data.data.authorList
this.dataForm.author = res.data.data.authorList[0].author
}
let imgList = []
this.playFileList = []
let arrImg = [1,2,3,4,5]
......@@ -486,14 +469,14 @@ export default {
})
},
choiceAuthor(authorList) { //选择作者
this.authors = []
authorList.forEach(item => {
if(item.author){
this.authors.push(item)
}
})
},
// choiceAuthor(authorList) { //选择作者
// this.authors = []
// authorList.forEach(item => {
// if(item.author){
// this.authors.push(item)
// }
// })
// },
tabClick(key,value) { //tab切换
this.tabId = value
},
......@@ -512,15 +495,6 @@ export default {
return
}
}
if(this.dataForm.author){
let author = {
author:this.dataForm.author,
}
this.dataForm.authorList = [author]
}else{
this.dataForm.authorList = []
}
if(this.createdFlag){ //新建
bookSaveAPI(this.dataForm).then(res =>{
if (res.data.code === 0) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论