Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
qq_45598856
white-jotter
提交
a17566c0
W
white-jotter
项目概览
qq_45598856
/
white-jotter
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
W
white-jotter
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
a17566c0
编写于
8月 12, 2019
作者:
E
Evan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: 修复点击封面修改内容时不能显示分类的 BUG
上级
47a9e22e
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
17 addition
and
12 deletion
+17
-12
wj-vue/src/components/library/Books.vue
wj-vue/src/components/library/Books.vue
+8
-1
wj-vue/src/components/library/EditForm.vue
wj-vue/src/components/library/EditForm.vue
+8
-9
wj-vue/src/components/library/SideMenu.vue
wj-vue/src/components/library/SideMenu.vue
+0
-1
wj-vue/src/components/library/ViewSwitch.vue
wj-vue/src/components/library/ViewSwitch.vue
+1
-1
未找到文件。
wj-vue/src/components/library/Books.vue
浏览文件 @
a17566c0
...
...
@@ -44,6 +44,7 @@
import
EditForm
from
'
./EditForm
'
import
SearchBar
from
'
./SearchBar
'
import
ViewSwitch
from
'
./ViewSwitch
'
export
default
{
name
:
'
Books
'
,
components
:
{
EditForm
,
SearchBar
,
ViewSwitch
},
...
...
@@ -112,8 +113,14 @@
date
:
item
.
date
,
press
:
item
.
press
,
abs
:
item
.
abs
,
cid
:
item
.
cid
category
:
{
id
:
item
.
category
.
id
.
toString
(),
name
:
item
.
category
.
name
}
}
// this.$refs.edit.category = {
// id: item.category.id.toString()
// }
}
}
}
...
...
wj-vue/src/components/library/EditForm.vue
浏览文件 @
a17566c0
...
...
@@ -26,7 +26,7 @@
<el-input
type=
"textarea"
v-model=
"form.abs"
autocomplete=
"off"
></el-input>
</el-form-item>
<el-form-item
label=
"分类"
:label-width=
"formLabelWidth"
prop=
"cid"
>
<el-select
v-model=
"form.cid"
placeholder=
"请选择分类"
>
<el-select
v-model=
"form.c
ategory.
id"
placeholder=
"请选择分类"
>
<el-option
label=
"文学"
value=
"1"
></el-option>
<el-option
label=
"流行"
value=
"2"
></el-option>
<el-option
label=
"文化"
value=
"3"
></el-option>
...
...
@@ -63,11 +63,11 @@
press
:
''
,
cover
:
''
,
abs
:
''
,
cid
:
''
},
category
:
{
id
:
''
,
name
:
''
cid
:
''
,
category
:
{
id
:
''
,
name
:
''
}
},
formLabelWidth
:
'
120px
'
}
...
...
@@ -83,11 +83,10 @@
press
:
''
,
cover
:
''
,
abs
:
''
,
c
id
:
''
c
ategory
:
''
}
},
onSubmit
()
{
this
.
category
.
id
=
this
.
form
.
cid
this
.
$axios
.
post
(
'
/books
'
,
{
id
:
this
.
form
.
id
,
...
...
@@ -97,7 +96,7 @@
date
:
this
.
form
.
date
,
press
:
this
.
form
.
press
,
abs
:
this
.
form
.
abs
,
category
:
this
.
category
category
:
this
.
form
.
category
}).
then
(
resp
=>
{
if
(
resp
&&
resp
.
status
===
200
)
{
this
.
dialogFormVisible
=
false
...
...
wj-vue/src/components/library/SideMenu.vue
浏览文件 @
a17566c0
...
...
@@ -48,7 +48,6 @@
// console.log(key, keyPath)
// },
handleSelect
(
key
,
keyPath
)
{
console
.
log
(
key
,
keyPath
)
this
.
cid
=
key
this
.
$emit
(
'
indexSelect
'
)
}
...
...
wj-vue/src/components/library/ViewSwitch.vue
浏览文件 @
a17566c0
...
...
@@ -7,7 +7,7 @@
<
script
>
export
default
{
name
:
'
Switch
'
,
name
:
'
View
Switch
'
,
data
()
{
return
{
value
:
true
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录