Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
R
rs-admin
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
注册表
注册表
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
翟畅
rs-admin
Commits
dbf21160
提交
dbf21160
authored
10月 18, 2022
作者:
翟畅
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
zc纸质书编辑
上级
1a11017d
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
10 行增加
和
36 行删除
+10
-36
component.vue
src/views/resource_manage/book_module/component.vue
+0
-0
component.vue
src/views/resource_manage/paperbook_module/component.vue
+10
-36
没有找到文件。
src/views/resource_manage/book_module/component.vue
浏览文件 @
dbf21160
src/views/resource_manage/paperbook_module/component.vue
浏览文件 @
dbf21160
...
@@ -180,7 +180,6 @@
...
@@ -180,7 +180,6 @@
<div>
<div>
<el-form-item
label=
"商品图片:"
class=
"clear img_list"
>
<el-form-item
label=
"商品图片:"
class=
"clear img_list"
>
<el-upload
<el-upload
:class=
"
{hidePlay:dataForm.imgList.length>3}"
:action=
"`$
{fileUrl}upload`"
:action=
"`$
{fileUrl}upload`"
list-type="picture-card"
list-type="picture-card"
:file-list="playFileList"
:file-list="playFileList"
...
@@ -258,7 +257,6 @@ export default {
...
@@ -258,7 +257,6 @@ export default {
diyTypeCode
:
[],
diyTypeCode
:
[],
id
:
null
,
id
:
null
,
author
:
null
,
author
:
null
,
authorList
:
[],
bookCatalog
:
null
,
bookCatalog
:
null
,
realPrice
:
''
,
realPrice
:
''
,
translator
:
null
,
translator
:
null
,
...
@@ -357,14 +355,6 @@ export default {
...
@@ -357,14 +355,6 @@ export default {
translatorList
:
[],
translatorList
:
[],
labelWidth
:
'140px'
,
labelWidth
:
'140px'
,
authors
:
[],
authors
:
[],
authorForm
:
{
authorList
:
[
{
author
:
null
,
authorId
:
null
}
]
},
}
}
},
},
created
()
{
created
()
{
...
@@ -399,7 +389,7 @@ export default {
...
@@ -399,7 +389,7 @@ export default {
}
}
isbnGetBookAPI
(
this
.
book_isbn
).
then
(
res
=>
{
isbnGetBookAPI
(
this
.
book_isbn
).
then
(
res
=>
{
if
(
res
.
data
.
code
==
0
){
if
(
res
.
data
.
code
==
0
){
let
{
id
,
name
,
isbn
,
publisher
,
publishTime
,
keywords
,
cover
,
author
List
,
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
.
ebookId
=
id
this
.
dataForm
.
name
=
name
this
.
dataForm
.
name
=
name
this
.
dataForm
.
isbn
=
isbn
this
.
dataForm
.
isbn
=
isbn
...
@@ -408,10 +398,7 @@ export default {
...
@@ -408,10 +398,7 @@ export default {
this
.
dataForm
.
publishTime
=
publishTime
this
.
dataForm
.
publishTime
=
publishTime
this
.
dataForm
.
keywords
=
keywords
this
.
dataForm
.
keywords
=
keywords
this
.
dataForm
.
cover
=
cover
this
.
dataForm
.
cover
=
cover
this
.
dataForm
.
authorList
=
authorList
this
.
dataForm
.
author
=
author
if
(
authorList
&&
authorList
.
length
>
0
)
{
this
.
authorForm
.
authorList
=
authorList
}
this
.
dataForm
.
translator
=
translator
this
.
dataForm
.
translator
=
translator
this
.
dataForm
.
executiveEditor
=
executiveEditor
this
.
dataForm
.
executiveEditor
=
executiveEditor
this
.
dataForm
.
bookSeries
=
bookSeries
this
.
dataForm
.
bookSeries
=
bookSeries
...
@@ -446,10 +433,6 @@ export default {
...
@@ -446,10 +433,6 @@ export default {
})
})
this
.
dataForm
.
diyTypeCode
=
arr
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
=
[]
let
imgList
=
[]
this
.
playFileList
=
[]
this
.
playFileList
=
[]
let
arrImg
=
[
1
,
2
,
3
,
4
,
5
]
let
arrImg
=
[
1
,
2
,
3
,
4
,
5
]
...
@@ -486,14 +469,14 @@ export default {
...
@@ -486,14 +469,14 @@ export default {
})
})
},
},
choiceAuthor
(
authorList
)
{
//选择作者
//
choiceAuthor(authorList) { //选择作者
this
.
authors
=
[]
//
this.authors = []
authorList
.
forEach
(
item
=>
{
//
authorList.forEach(item => {
if
(
item
.
author
){
//
if(item.author){
this
.
authors
.
push
(
item
)
//
this.authors.push(item)
}
//
}
})
//
})
},
//
},
tabClick
(
key
,
value
)
{
//tab切换
tabClick
(
key
,
value
)
{
//tab切换
this
.
tabId
=
value
this
.
tabId
=
value
},
},
...
@@ -512,15 +495,6 @@ export default {
...
@@ -512,15 +495,6 @@ export default {
return
return
}
}
}
}
if
(
this
.
dataForm
.
author
){
let
author
=
{
author
:
this
.
dataForm
.
author
,
}
this
.
dataForm
.
authorList
=
[
author
]
}
else
{
this
.
dataForm
.
authorList
=
[]
}
if
(
this
.
createdFlag
){
//新建
if
(
this
.
createdFlag
){
//新建
bookSaveAPI
(
this
.
dataForm
).
then
(
res
=>
{
bookSaveAPI
(
this
.
dataForm
).
then
(
res
=>
{
if
(
res
.
data
.
code
===
0
)
{
if
(
res
.
data
.
code
===
0
)
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论