Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bms-vue-obear
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
daywrite
bms-vue-obear
Commits
66c7d7fa
Commit
66c7d7fa
authored
May 19, 2019
by
daywrite
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
文档管理
parent
74a6b1cd
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
8 deletions
+11
-8
documentHome.vue
src/components/document_list/documentHome.vue
+7
-3
documentItem.vue
src/components/document_list/documentItem.vue
+4
-5
No files found.
src/components/document_list/documentHome.vue
View file @
66c7d7fa
...
@@ -41,14 +41,14 @@
...
@@ -41,14 +41,14 @@
type=
"primary"
type=
"primary"
size=
"mini"
size=
"mini"
@
click
.
prevent
.
stop=
"deleteSch(item.id)"
@
click
.
prevent
.
stop=
"deleteSch(item.id)"
:disabled=
"
!
item.can_delete"
>
:disabled=
"item.can_delete"
>
<i
class=
"fa fa-trash-o animated-hove"
></i>
删除
<i
class=
"fa fa-trash-o animated-hove"
></i>
删除
</el-button>
</el-button>
<el-button
<el-button
type=
"primary"
type=
"primary"
size=
"mini"
size=
"mini"
@
click
.
prevent
.
stop=
"d
eleteSch(item.id
)"
@
click
.
prevent
.
stop=
"d
ownloadSch(item
)"
:disabled=
"
!
item.can_delete"
>
:disabled=
"item.can_delete"
>
<i
class=
"fa fa-fw fa-download"
></i>
下载
<i
class=
"fa fa-fw fa-download"
></i>
下载
</el-button>
</el-button>
</span>
</span>
...
@@ -251,6 +251,10 @@ export default {
...
@@ -251,6 +251,10 @@ export default {
})
})
},
},
downloadSch
(
item
)
{
window
.
open
(
item
.
attachment
.
name
,
'_self'
)
},
// 8.留言
// 8.留言
leaveMessageSch
(
item
)
{
leaveMessageSch
(
item
)
{
this
.
$refs
.
leaveMessage
.
btnShow
(
item
)
this
.
$refs
.
leaveMessage
.
btnShow
(
item
)
...
...
src/components/document_list/documentItem.vue
View file @
66c7d7fa
...
@@ -4,9 +4,8 @@
...
@@ -4,9 +4,8 @@
<el-col
:span=
"4"
:xs=
"24"
class=
"obear-schedule-left"
:style=
"
{background: item.bgcolor}">
<el-col
:span=
"4"
:xs=
"24"
class=
"obear-schedule-left"
:style=
"
{background: item.bgcolor}">
<el-row
:gutter=
"10"
>
<el-row
:gutter=
"10"
>
<el-col
:span=
"24"
>
<el-col
:span=
"24"
>
<a>
<i
class=
"fa fa-star"
aria-hidden=
"true"
></i>
<i
class=
"fa fa-star"
aria-hidden=
"true"
></i>
{{
isNullTitle
?
'(未设置)'
:
item
.
title
}}
<a
href=
"/attachment/view?name="
>
{{
isNullTitle
?
'(未设置)'
:
item
.
title
}}
</a>
</a>
</el-col>
</el-col>
<el-col
:span=
"24"
style=
"padding-left: 3px;"
>
<el-col
:span=
"24"
style=
"padding-left: 3px;"
>
<span>
<span>
...
@@ -29,7 +28,7 @@
...
@@ -29,7 +28,7 @@
<span>
是否为模板:
</span><span
class=
"obear-schedule-right__content"
>
{{
item
.
is_template_display
}}
</span>
<span>
是否为模板:
</span><span
class=
"obear-schedule-right__content"
>
{{
item
.
is_template_display
}}
</span>
</el-col>
</el-col>
<el-col
:span=
"6"
:xs=
"24"
>
<el-col
:span=
"6"
:xs=
"24"
>
<span>
文档:
</span>
<span>
文档:
<
a
:href=
"item.attachment.name"
target=
"_self"
><i
class=
"fa fa-fw fa-file-text-o"
></i></a><
/span>
</el-col>
</el-col>
<el-col
:span=
"6"
:xs=
"24"
>
<el-col
:span=
"6"
:xs=
"24"
>
<span>
文档类型:
{{
item
.
attachment
.
extension
}}
</span>
<span>
文档类型:
{{
item
.
attachment
.
extension
}}
</span>
...
@@ -81,7 +80,7 @@ export default {
...
@@ -81,7 +80,7 @@ export default {
computed
:
{
computed
:
{
isNullTitle
()
{
isNullTitle
()
{
return
!
!
this
.
item
.
title
return
!
this
.
item
.
title
}
}
},
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment